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

Side by Side Diff: content/public/browser/content_browser_client.h

Issue 8514004: Remove includes of worker_messages.h from chrome code, since that's an internal detail of content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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) 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_BROWSER_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // before the content layer adds its own BrowserMessageFilters, so that the 112 // before the content layer adds its own BrowserMessageFilters, so that the
113 // embedder's IPC filters have priority. 113 // embedder's IPC filters have priority.
114 virtual void BrowserRenderProcessHostCreated( 114 virtual void BrowserRenderProcessHostCreated(
115 BrowserRenderProcessHost* host) = 0; 115 BrowserRenderProcessHost* host) = 0;
116 116
117 // Notifies that a PluginProcessHost has been created. This is called 117 // Notifies that a PluginProcessHost has been created. This is called
118 // before the content layer adds its own message filters, so that the 118 // before the content layer adds its own message filters, so that the
119 // embedder's IPC filters have priority. 119 // embedder's IPC filters have priority.
120 virtual void PluginProcessHostCreated(PluginProcessHost* host) = 0; 120 virtual void PluginProcessHostCreated(PluginProcessHost* host) = 0;
121 121
122 // Notifies that a WorkerProcessHost has been created. This is called
123 // before the content layer adds its own message filters, so that the
124 // embedder's IPC filters have priority.
125 virtual void WorkerProcessHostCreated(WorkerProcessHost* host) = 0;
126
127 // Gets the WebUIFactory which will be responsible for generating WebUIs. 122 // Gets the WebUIFactory which will be responsible for generating WebUIs.
128 virtual WebUIFactory* GetWebUIFactory() = 0; 123 virtual WebUIFactory* GetWebUIFactory() = 0;
129 124
130 // Get the effective URL for the given actual URL, to allow an embedder to 125 // Get the effective URL for the given actual URL, to allow an embedder to
131 // group different url schemes in the same SiteInstance. 126 // group different url schemes in the same SiteInstance.
132 virtual GURL GetEffectiveURL(BrowserContext* browser_context, 127 virtual GURL GetEffectiveURL(BrowserContext* browser_context,
133 const GURL& url) = 0; 128 const GURL& url) = 0;
134 129
135 // Returns whether all instances of the specified effective URL should be 130 // Returns whether all instances of the specified effective URL should be
136 // rendered by the same process, rather than using process-per-site-instance. 131 // rendered by the same process, rather than using process-per-site-instance.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 const std::string& cookie_line, 194 const std::string& cookie_line,
200 const content::ResourceContext& context, 195 const content::ResourceContext& context,
201 int render_process_id, 196 int render_process_id,
202 int render_view_id, 197 int render_view_id,
203 net::CookieOptions* options) = 0; 198 net::CookieOptions* options) = 0;
204 199
205 // This is called on the IO thread. 200 // This is called on the IO thread.
206 virtual bool AllowSaveLocalState( 201 virtual bool AllowSaveLocalState(
207 const content::ResourceContext& context) = 0; 202 const content::ResourceContext& context) = 0;
208 203
204 // Allow the embedder to control if access to web database by a worker is
205 // allowed.
206 // This is called on the IO thread.
207 virtual bool AllowWorkerDatabase(int worker_route_id,
208 const GURL& url,
209 const string16& name,
210 const string16& display_name,
211 unsigned long estimated_size,
212 WorkerProcessHost* worker_process_host) = 0;
213
214 // Allow the embedder to control if access to file system by a worker is
215 // allowed.
216 // This is called on the IO thread.
217 virtual bool AllowWorkerFileSystem(
218 int worker_route_id,
219 const GURL& url,
220 WorkerProcessHost* worker_process_host) = 0;
221
209 // Allows the embedder to override the request context based on the URL for 222 // Allows the embedder to override the request context based on the URL for
210 // certain operations, like cookie access. Returns NULL to indicate the 223 // certain operations, like cookie access. Returns NULL to indicate the
211 // regular request context should be used. 224 // regular request context should be used.
212 // This is called on the IO thread. 225 // This is called on the IO thread.
213 virtual net::URLRequestContext* OverrideRequestContextForURL( 226 virtual net::URLRequestContext* OverrideRequestContextForURL(
214 const GURL& url, const content::ResourceContext& context) = 0; 227 const GURL& url, const content::ResourceContext& context) = 0;
215 228
216 // Create and return a new quota permission context. 229 // Create and return a new quota permission context.
217 virtual QuotaPermissionContext* CreateQuotaPermissionContext() = 0; 230 virtual QuotaPermissionContext* CreateQuotaPermissionContext() = 0;
218 231
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 // This is called on a worker thread. 363 // This is called on a worker thread.
351 virtual 364 virtual
352 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 365 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
353 const GURL& url) = 0; 366 const GURL& url) = 0;
354 #endif 367 #endif
355 }; 368 };
356 369
357 } // namespace content 370 } // namespace content
358 371
359 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 372 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698