1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_COMMON_RESOURCE_USAGE_REPORTER_TYPE_CONVERTERS_H_
6 #define CHROME_COMMON_RESOURCE_USAGE_REPORTER_TYPE_CONVERTERS_H_
8 #include "chrome/common/resource_usage_reporter.mojom.h"
9 #include "third_party/WebKit/public/web/WebCache.h"
10 #include "third_party/mojo/src/mojo/public/cpp/bindings/type_converter.h"
15 struct TypeConverter
<ResourceTypeStatsPtr
, blink::WebCache::ResourceTypeStats
> {
16 static ResourceTypeStatsPtr
Convert(
17 const blink::WebCache::ResourceTypeStats
& obj
);
21 struct TypeConverter
<blink::WebCache::ResourceTypeStats
, ResourceTypeStats
> {
22 static blink::WebCache::ResourceTypeStats
Convert(
23 const ResourceTypeStats
& obj
);
28 #endif // CHROME_COMMON_RESOURCE_USAGE_REPORTER_TYPE_CONVERTERS_H_