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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 virtual bool CanSendWhileSwappedOut(const IPC::Message* message); | 122 virtual bool CanSendWhileSwappedOut(const IPC::Message* message); |
123 | 123 |
124 // Returns whether the given message should be processed in the browser on | 124 // Returns whether the given message should be processed in the browser on |
125 // behalf of a swapped out renderer. | 125 // behalf of a swapped out renderer. |
126 virtual bool CanHandleWhileSwappedOut(const IPC::Message& message); | 126 virtual bool CanHandleWhileSwappedOut(const IPC::Message& message); |
127 | 127 |
128 // Returns a string describing the embedder version. Used as part of the | 128 // Returns a string describing the embedder version. Used as part of the |
129 // user agent string. | 129 // user agent string. |
130 virtual std::string GetProduct() const; | 130 virtual std::string GetProduct() const; |
131 | 131 |
| 132 // Returns a string containing the SCM revision of the embedder. Used as |
| 133 // a more precise version string in protocol versions. |
| 134 virtual std::string GetProductSCMRevision() const; |
| 135 |
132 // Returns the user agent. | 136 // Returns the user agent. |
133 virtual std::string GetUserAgent() const; | 137 virtual std::string GetUserAgent() const; |
134 | 138 |
135 // Returns a string resource given its id. | 139 // Returns a string resource given its id. |
136 virtual string16 GetLocalizedString(int message_id) const; | 140 virtual string16 GetLocalizedString(int message_id) const; |
137 | 141 |
138 // Return the contents of a resource in a StringPiece given the resource id. | 142 // Return the contents of a resource in a StringPiece given the resource id. |
139 virtual base::StringPiece GetDataResource( | 143 virtual base::StringPiece GetDataResource( |
140 int resource_id, | 144 int resource_id, |
141 ui::ScaleFactor scale_factor) const; | 145 ui::ScaleFactor scale_factor) const; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 ContentPluginClient* plugin_; | 182 ContentPluginClient* plugin_; |
179 // The embedder API for participating in renderer logic. | 183 // The embedder API for participating in renderer logic. |
180 ContentRendererClient* renderer_; | 184 ContentRendererClient* renderer_; |
181 // The embedder API for participating in utility logic. | 185 // The embedder API for participating in utility logic. |
182 ContentUtilityClient* utility_; | 186 ContentUtilityClient* utility_; |
183 }; | 187 }; |
184 | 188 |
185 } // namespace content | 189 } // namespace content |
186 | 190 |
187 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 191 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
OLD | NEW |