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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 virtual void SetGpuInfo(const content::GPUInfo& gpu_info) = 0; | 87 virtual void SetGpuInfo(const content::GPUInfo& gpu_info) = 0; |
88 | 88 |
89 // Gives the embedder a chance to register its own pepper plugins. | 89 // Gives the embedder a chance to register its own pepper plugins. |
90 virtual void AddPepperPlugins( | 90 virtual void AddPepperPlugins( |
91 std::vector<content::PepperPluginInfo>* plugins) = 0; | 91 std::vector<content::PepperPluginInfo>* plugins) = 0; |
92 | 92 |
93 // Gives the embedder a chance to register its own internal NPAPI plugins. | 93 // Gives the embedder a chance to register its own internal NPAPI plugins. |
94 virtual void AddNPAPIPlugins( | 94 virtual void AddNPAPIPlugins( |
95 webkit::npapi::PluginList* plugin_list) = 0; | 95 webkit::npapi::PluginList* plugin_list) = 0; |
96 | 96 |
| 97 // Gives the embedder a chance to register its own standard and saveable |
| 98 // url schemes early on in the startup sequence. |
| 99 virtual void AddAdditionalSchemes( |
| 100 std::vector<std::string>* standard_schemes, |
| 101 std::vector<std::string>* savable_schemes) = 0; |
| 102 |
97 // 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 |
98 // WebUIControllerFactory::UseWebUIForURL in the browser process. | 104 // WebUIControllerFactory::UseWebUIForURL in the browser process. |
99 virtual bool HasWebUIScheme(const GURL& url) const = 0; | 105 virtual bool HasWebUIScheme(const GURL& url) const = 0; |
100 | 106 |
101 // 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 |
102 // behalf of a swapped out renderer. | 108 // behalf of a swapped out renderer. |
103 virtual bool CanHandleWhileSwappedOut(const IPC::Message& msg) = 0; | 109 virtual bool CanHandleWhileSwappedOut(const IPC::Message& msg) = 0; |
104 | 110 |
105 // Returns the user agent. | 111 // Returns the user agent. |
106 virtual std::string GetUserAgent() const = 0; | 112 virtual std::string GetUserAgent() const = 0; |
(...skipping 30 matching lines...) Expand all Loading... |
137 ContentPluginClient* plugin_; | 143 ContentPluginClient* plugin_; |
138 // The embedder API for participating in renderer logic. | 144 // The embedder API for participating in renderer logic. |
139 ContentRendererClient* renderer_; | 145 ContentRendererClient* renderer_; |
140 // The embedder API for participating in utility logic. | 146 // The embedder API for participating in utility logic. |
141 ContentUtilityClient* utility_; | 147 ContentUtilityClient* utility_; |
142 }; | 148 }; |
143 | 149 |
144 } // namespace content | 150 } // namespace content |
145 | 151 |
146 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 152 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
OLD | NEW |