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> |
11 | 11 |
12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
13 #include "base/strings/string_piece.h" | 13 #include "base/strings/string_piece.h" |
14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
16 #include "ui/base/layout.h" | 16 #include "ui/base/layout.h" |
| 17 #include "url/gurl.h" |
17 #include "url/url_util.h" | 18 #include "url/url_util.h" |
18 | 19 |
19 class GURL; | |
20 | |
21 namespace base { | 20 namespace base { |
22 class RefCountedStaticMemory; | 21 class RefCountedStaticMemory; |
23 } | 22 } |
24 | 23 |
25 namespace IPC { | 24 namespace IPC { |
26 class Message; | 25 class Message; |
27 } | 26 } |
28 | 27 |
29 namespace gfx { | 28 namespace gfx { |
30 class Image; | 29 class Image; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 virtual ~ContentClient(); | 72 virtual ~ContentClient(); |
74 | 73 |
75 ContentBrowserClient* browser() { return browser_; } | 74 ContentBrowserClient* browser() { return browser_; } |
76 ContentGpuClient* gpu() { return gpu_; } | 75 ContentGpuClient* gpu() { return gpu_; } |
77 ContentPluginClient* plugin() { return plugin_; } | 76 ContentPluginClient* plugin() { return plugin_; } |
78 ContentRendererClient* renderer() { return renderer_; } | 77 ContentRendererClient* renderer() { return renderer_; } |
79 ContentUtilityClient* utility() { return utility_; } | 78 ContentUtilityClient* utility() { return utility_; } |
80 | 79 |
81 // Sets the currently active URL. Use GURL() to clear the URL. | 80 // Sets the currently active URL. Use GURL() to clear the URL. |
82 virtual void SetActiveURL(const GURL& url) {} | 81 virtual void SetActiveURL(const GURL& url) {} |
| 82 void SetActiveURL(const std::string& url); |
83 | 83 |
84 // Sets the data on the current gpu. | 84 // Sets the data on the current gpu. |
85 virtual void SetGpuInfo(const gpu::GPUInfo& gpu_info) {} | 85 virtual void SetGpuInfo(const gpu::GPUInfo& gpu_info) {} |
86 | 86 |
87 // Gives the embedder a chance to register its own pepper plugins. | 87 // Gives the embedder a chance to register its own pepper plugins. |
88 virtual void AddPepperPlugins( | 88 virtual void AddPepperPlugins( |
89 std::vector<content::PepperPluginInfo>* plugins) {} | 89 std::vector<content::PepperPluginInfo>* plugins) {} |
90 | 90 |
91 // Gives the embedder a chance to register its own standard, referrer and | 91 // Gives the embedder a chance to register its own standard, referrer and |
92 // saveable url schemes early on in the startup sequence. | 92 // saveable url schemes early on in the startup sequence. |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 ContentPluginClient* plugin_; | 168 ContentPluginClient* plugin_; |
169 // The embedder API for participating in renderer logic. | 169 // The embedder API for participating in renderer logic. |
170 ContentRendererClient* renderer_; | 170 ContentRendererClient* renderer_; |
171 // The embedder API for participating in utility logic. | 171 // The embedder API for participating in utility logic. |
172 ContentUtilityClient* utility_; | 172 ContentUtilityClient* utility_; |
173 }; | 173 }; |
174 | 174 |
175 } // namespace content | 175 } // namespace content |
176 | 176 |
177 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ | 177 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ |
OLD | NEW |