| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 virtual void SetGpuInfo(const content::GPUInfo& gpu_info) = 0; | 82 virtual void SetGpuInfo(const content::GPUInfo& gpu_info) = 0; |
| 83 | 83 |
| 84 // Gives the embedder a chance to register its own pepper plugins. | 84 // Gives the embedder a chance to register its own pepper plugins. |
| 85 virtual void AddPepperPlugins( | 85 virtual void AddPepperPlugins( |
| 86 std::vector<content::PepperPluginInfo>* plugins) = 0; | 86 std::vector<content::PepperPluginInfo>* plugins) = 0; |
| 87 | 87 |
| 88 // Gives the embedder a chance to register its own internal NPAPI plugins. | 88 // Gives the embedder a chance to register its own internal NPAPI plugins. |
| 89 virtual void AddNPAPIPlugins( | 89 virtual void AddNPAPIPlugins( |
| 90 webkit::npapi::PluginList* plugin_list) = 0; | 90 webkit::npapi::PluginList* plugin_list) = 0; |
| 91 | 91 |
| 92 // Returns whether the given message should be allowed to be sent from a | |
| 93 // swapped out renderer. | |
| 94 virtual bool CanSendWhileSwappedOut(const IPC::Message* msg) = 0; | |
| 95 | |
| 96 // Returns whether the given message should be processed in the browser on | 92 // Returns whether the given message should be processed in the browser on |
| 97 // behalf of a swapped out renderer. | 93 // behalf of a swapped out renderer. |
| 98 virtual bool CanHandleWhileSwappedOut(const IPC::Message& msg) = 0; | 94 virtual bool CanHandleWhileSwappedOut(const IPC::Message& msg) = 0; |
| 99 | 95 |
| 100 // Returns the user agent and a flag indicating whether the returned | 96 // Returns the user agent and a flag indicating whether the returned |
| 101 // string should always be used (if false, callers may override the | 97 // string should always be used (if false, callers may override the |
| 102 // value as needed to work around various user agent sniffing bugs). | 98 // value as needed to work around various user agent sniffing bugs). |
| 103 virtual std::string GetUserAgent(bool *overriding) const = 0; | 99 virtual std::string GetUserAgent(bool *overriding) const = 0; |
| 104 | 100 |
| 105 // Returns a string resource given its id. | 101 // Returns a string resource given its id. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 134 ContentPluginClient* plugin_; | 130 ContentPluginClient* plugin_; |
| 135 // The embedder API for participating in renderer logic. | 131 // The embedder API for participating in renderer logic. |
| 136 ContentRendererClient* renderer_; | 132 ContentRendererClient* renderer_; |
| 137 // The embedder API for participating in utility logic. | 133 // The embedder API for participating in utility logic. |
| 138 ContentUtilityClient* utility_; | 134 ContentUtilityClient* utility_; |
| 139 }; | 135 }; |
| 140 | 136 |
| 141 } // namespace content | 137 } // namespace content |
| 142 | 138 |
| 143 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 139 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
| OLD | NEW |