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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 111 |
112 // Returns a string describing the embedder product name and version, | 112 // Returns a string describing the embedder product name and version, |
113 // of the form "productname/version", with no other slashes. | 113 // of the form "productname/version", with no other slashes. |
114 // Used as part of the user agent string. | 114 // Used as part of the user agent string. |
115 virtual std::string GetProduct() const; | 115 virtual std::string GetProduct() const; |
116 | 116 |
117 // Returns the user agent. | 117 // Returns the user agent. |
118 virtual std::string GetUserAgent() const; | 118 virtual std::string GetUserAgent() const; |
119 | 119 |
120 // Returns a string resource given its id. | 120 // Returns a string resource given its id. |
121 virtual string16 GetLocalizedString(int message_id) const; | 121 virtual base::string16 GetLocalizedString(int message_id) const; |
122 | 122 |
123 // Return the contents of a resource in a StringPiece given the resource id. | 123 // Return the contents of a resource in a StringPiece given the resource id. |
124 virtual base::StringPiece GetDataResource( | 124 virtual base::StringPiece GetDataResource( |
125 int resource_id, | 125 int resource_id, |
126 ui::ScaleFactor scale_factor) const; | 126 ui::ScaleFactor scale_factor) const; |
127 | 127 |
128 // Returns the raw bytes of a scale independent data resource. | 128 // Returns the raw bytes of a scale independent data resource. |
129 virtual base::RefCountedStaticMemory* GetDataResourceBytes( | 129 virtual base::RefCountedStaticMemory* GetDataResourceBytes( |
130 int resource_id) const; | 130 int resource_id) const; |
131 | 131 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 ContentPluginClient* plugin_; | 163 ContentPluginClient* plugin_; |
164 // The embedder API for participating in renderer logic. | 164 // The embedder API for participating in renderer logic. |
165 ContentRendererClient* renderer_; | 165 ContentRendererClient* renderer_; |
166 // The embedder API for participating in utility logic. | 166 // The embedder API for participating in utility logic. |
167 ContentUtilityClient* utility_; | 167 ContentUtilityClient* utility_; |
168 }; | 168 }; |
169 | 169 |
170 } // namespace content | 170 } // namespace content |
171 | 171 |
172 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 172 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
OLD | NEW |