| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
| 6 #define CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 6 #define CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
| 13 #include "base/strings/string_piece.h" | 13 #include "base/strings/string_piece.h" |
| 14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
| 16 #include "ui/base/layout.h" | 16 #include "ui/base/layout.h" |
| 17 #include "url/url_util.h" | 17 #include "url/url_util.h" |
| 18 | 18 |
| 19 class GURL; | 19 class GURL; |
| 20 | 20 |
| 21 namespace base { | 21 namespace base { |
| 22 class RefCountedStaticMemory; | 22 class RefCountedMemory; |
| 23 } | 23 } |
| 24 | 24 |
| 25 namespace IPC { | 25 namespace IPC { |
| 26 class Message; | 26 class Message; |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace gfx { | 29 namespace gfx { |
| 30 class Image; | 30 class Image; |
| 31 } | 31 } |
| 32 | 32 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 | 116 |
| 117 // Returns a string resource given its id. | 117 // Returns a string resource given its id. |
| 118 virtual base::string16 GetLocalizedString(int message_id) const; | 118 virtual base::string16 GetLocalizedString(int message_id) const; |
| 119 | 119 |
| 120 // Return the contents of a resource in a StringPiece given the resource id. | 120 // Return the contents of a resource in a StringPiece given the resource id. |
| 121 virtual base::StringPiece GetDataResource( | 121 virtual base::StringPiece GetDataResource( |
| 122 int resource_id, | 122 int resource_id, |
| 123 ui::ScaleFactor scale_factor) const; | 123 ui::ScaleFactor scale_factor) const; |
| 124 | 124 |
| 125 // Returns the raw bytes of a scale independent data resource. | 125 // Returns the raw bytes of a scale independent data resource. |
| 126 virtual base::RefCountedStaticMemory* GetDataResourceBytes( | 126 virtual base::RefCountedMemory* GetDataResourceBytes( |
| 127 int resource_id) const; | 127 int resource_id) const; |
| 128 | 128 |
| 129 // Returns a native image given its id. | 129 // Returns a native image given its id. |
| 130 virtual gfx::Image& GetNativeImageNamed(int resource_id) const; | 130 virtual gfx::Image& GetNativeImageNamed(int resource_id) const; |
| 131 | 131 |
| 132 // Called by content::GetProcessTypeNameInEnglish for process types that it | 132 // Called by content::GetProcessTypeNameInEnglish for process types that it |
| 133 // doesn't know about because they're from the embedder. | 133 // doesn't know about because they're from the embedder. |
| 134 virtual std::string GetProcessTypeNameInEnglish(int type); | 134 virtual std::string GetProcessTypeNameInEnglish(int type); |
| 135 | 135 |
| 136 #if defined(OS_MACOSX) | 136 #if defined(OS_MACOSX) |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 ContentGpuClient* gpu_; | 192 ContentGpuClient* gpu_; |
| 193 // The embedder API for participating in renderer logic. | 193 // The embedder API for participating in renderer logic. |
| 194 ContentRendererClient* renderer_; | 194 ContentRendererClient* renderer_; |
| 195 // The embedder API for participating in utility logic. | 195 // The embedder API for participating in utility logic. |
| 196 ContentUtilityClient* utility_; | 196 ContentUtilityClient* utility_; |
| 197 }; | 197 }; |
| 198 | 198 |
| 199 } // namespace content | 199 } // namespace content |
| 200 | 200 |
| 201 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 201 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
| OLD | NEW |