Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(727)

Side by Side Diff: content/public/common/content_client.h

Issue 1703163002: Remove dependency on GURL from content/common/gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary include from gpu_command_buffer_stub Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | content/public/common/content_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | content/public/common/content_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698