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