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> |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 std::vector<std::string>* savable_schemes) {} | 105 std::vector<std::string>* savable_schemes) {} |
106 | 106 |
107 // Returns whether the given message should be sent in a swapped out renderer. | 107 // Returns whether the given message should be sent in a swapped out renderer. |
108 virtual bool CanSendWhileSwappedOut(const IPC::Message* message); | 108 virtual bool CanSendWhileSwappedOut(const IPC::Message* message); |
109 | 109 |
110 // Returns a string describing the embedder product name and version, | 110 // Returns a string describing the embedder product name and version, |
111 // of the form "productname/version", with no other slashes. | 111 // of the form "productname/version", with no other slashes. |
112 // Used as part of the user agent string. | 112 // Used as part of the user agent string. |
113 virtual std::string GetProduct() const; | 113 virtual std::string GetProduct() const; |
114 | 114 |
| 115 // Returns a string identifying the last v8 change revision. |
| 116 virtual std::string GetV8Version() const; |
| 117 |
115 // Returns the user agent. Content may cache this value. | 118 // Returns the user agent. Content may cache this value. |
116 virtual std::string GetUserAgent() const; | 119 virtual std::string GetUserAgent() const; |
117 | 120 |
118 // Returns a string resource given its id. | 121 // Returns a string resource given its id. |
119 virtual base::string16 GetLocalizedString(int message_id) const; | 122 virtual base::string16 GetLocalizedString(int message_id) const; |
120 | 123 |
121 // Return the contents of a resource in a StringPiece given the resource id. | 124 // Return the contents of a resource in a StringPiece given the resource id. |
122 virtual base::StringPiece GetDataResource( | 125 virtual base::StringPiece GetDataResource( |
123 int resource_id, | 126 int resource_id, |
124 ui::ScaleFactor scale_factor) const; | 127 ui::ScaleFactor scale_factor) const; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 ContentGpuClient* gpu_; | 196 ContentGpuClient* gpu_; |
194 // The embedder API for participating in renderer logic. | 197 // The embedder API for participating in renderer logic. |
195 ContentRendererClient* renderer_; | 198 ContentRendererClient* renderer_; |
196 // The embedder API for participating in utility logic. | 199 // The embedder API for participating in utility logic. |
197 ContentUtilityClient* utility_; | 200 ContentUtilityClient* utility_; |
198 }; | 201 }; |
199 | 202 |
200 } // namespace content | 203 } // namespace content |
201 | 204 |
202 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 205 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
OLD | NEW |