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

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

Issue 10827107: Allow transitions to WebUI pages which are extension urls (new tab page is the relevant example). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 class CONTENT_EXPORT ContentClient { 73 class CONTENT_EXPORT ContentClient {
74 public: 74 public:
75 ContentClient(); 75 ContentClient();
76 virtual ~ContentClient(); 76 virtual ~ContentClient();
77 77
78 ContentBrowserClient* browser() { return browser_; } 78 ContentBrowserClient* browser() { return browser_; }
79 ContentPluginClient* plugin() { return plugin_; } 79 ContentPluginClient* plugin() { return plugin_; }
80 ContentRendererClient* renderer() { return renderer_; } 80 ContentRendererClient* renderer() { return renderer_; }
81 ContentUtilityClient* utility() { return utility_; } 81 ContentUtilityClient* utility() { return utility_; }
82 82
83 virtual void CustomStreamReset() {}
84 virtual void CustomStreamAddURL(const GURL& url, bool top_level_resource) {}
Charlie Reis 2012/08/02 18:39:26 What are these for?
Cris Neckar 2012/08/02 19:08:26 A totally different change... oops
85
83 // Sets the currently active URL. Use GURL() to clear the URL. 86 // Sets the currently active URL. Use GURL() to clear the URL.
84 virtual void SetActiveURL(const GURL& url) {} 87 virtual void SetActiveURL(const GURL& url) {}
85 88
86 // Sets the data on the current gpu. 89 // Sets the data on the current gpu.
87 virtual void SetGpuInfo(const content::GPUInfo& gpu_info) {} 90 virtual void SetGpuInfo(const content::GPUInfo& gpu_info) {}
88 91
89 // Gives the embedder a chance to register its own pepper plugins. 92 // Gives the embedder a chance to register its own pepper plugins.
90 virtual void AddPepperPlugins( 93 virtual void AddPepperPlugins(
91 std::vector<content::PepperPluginInfo>* plugins) {} 94 std::vector<content::PepperPluginInfo>* plugins) {}
92 95
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 ContentPluginClient* plugin_; 160 ContentPluginClient* plugin_;
158 // The embedder API for participating in renderer logic. 161 // The embedder API for participating in renderer logic.
159 ContentRendererClient* renderer_; 162 ContentRendererClient* renderer_;
160 // The embedder API for participating in utility logic. 163 // The embedder API for participating in utility logic.
161 ContentUtilityClient* utility_; 164 ContentUtilityClient* utility_;
162 }; 165 };
163 166
164 } // namespace content 167 } // namespace content
165 168
166 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ 169 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698