| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 std::vector<std::string>* savable_schemes) {} | 101 std::vector<std::string>* savable_schemes) {} |
| 102 | 102 |
| 103 // Returns true if the url has a scheme for WebUI. See also | 103 // Returns true if the url has a scheme for WebUI. See also |
| 104 // WebUIControllerFactory::UseWebUIForURL in the browser process. | 104 // WebUIControllerFactory::UseWebUIForURL in the browser process. |
| 105 virtual bool HasWebUIScheme(const GURL& url) const; | 105 virtual bool HasWebUIScheme(const GURL& url) const; |
| 106 | 106 |
| 107 // Returns whether the given message should be processed in the browser on | 107 // Returns whether the given message should be processed in the browser on |
| 108 // behalf of a swapped out renderer. | 108 // behalf of a swapped out renderer. |
| 109 virtual bool CanHandleWhileSwappedOut(const IPC::Message& message); | 109 virtual bool CanHandleWhileSwappedOut(const IPC::Message& message); |
| 110 | 110 |
| 111 // Returns a string describing the embedder version. Used as part of the |
| 112 // user agent string. |
| 113 virtual std::string GetProduct() const; |
| 114 |
| 111 // Returns the user agent. | 115 // Returns the user agent. |
| 112 virtual std::string GetUserAgent() const; | 116 virtual std::string GetUserAgent() const; |
| 113 | 117 |
| 114 // Returns a string resource given its id. | 118 // Returns a string resource given its id. |
| 115 virtual string16 GetLocalizedString(int message_id) const; | 119 virtual string16 GetLocalizedString(int message_id) const; |
| 116 | 120 |
| 117 // Return the contents of a resource in a StringPiece given the resource id. | 121 // Return the contents of a resource in a StringPiece given the resource id. |
| 118 virtual base::StringPiece GetDataResource( | 122 virtual base::StringPiece GetDataResource( |
| 119 int resource_id, | 123 int resource_id, |
| 120 ui::ScaleFactor scale_factor) const; | 124 ui::ScaleFactor scale_factor) const; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 ContentPluginClient* plugin_; | 161 ContentPluginClient* plugin_; |
| 158 // The embedder API for participating in renderer logic. | 162 // The embedder API for participating in renderer logic. |
| 159 ContentRendererClient* renderer_; | 163 ContentRendererClient* renderer_; |
| 160 // The embedder API for participating in utility logic. | 164 // The embedder API for participating in utility logic. |
| 161 ContentUtilityClient* utility_; | 165 ContentUtilityClient* utility_; |
| 162 }; | 166 }; |
| 163 | 167 |
| 164 } // namespace content | 168 } // namespace content |
| 165 | 169 |
| 166 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 170 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
| OLD | NEW |