ui: Stop converting Rect to RectF implicitly in native_theme_win.cc
[chromium-blink-merge.git] / chrome / common / resource_usage_reporter_type_converters.h
blob571a2e177a5d8721d24d6421f231a3a4c9fc093a
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"
12 namespace mojo {
14 template <>
15 struct TypeConverter<ResourceTypeStatsPtr, blink::WebCache::ResourceTypeStats> {
16 static ResourceTypeStatsPtr Convert(
17 const blink::WebCache::ResourceTypeStats& obj);
20 template <>
21 struct TypeConverter<blink::WebCache::ResourceTypeStats, ResourceTypeStats> {
22 static blink::WebCache::ResourceTypeStats Convert(
23 const ResourceTypeStats& obj);
26 } // namespace mojo
28 #endif // CHROME_COMMON_RESOURCE_USAGE_REPORTER_TYPE_CONVERTERS_H_