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

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

Issue 11783038: Allow multiple WebUIControllerFactory objects to be registered. This makes is possible to implement… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: reland after bogus revert of r175971 Created 7 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 | Annotate | Revision Log
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/content_browser_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_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 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/callback_forward.h" 12 #include "base/callback_forward.h"
13 #include "content/public/browser/file_descriptor_info.h" 13 #include "content/public/browser/file_descriptor_info.h"
14 #include "content/public/common/socket_permission_request.h" 14 #include "content/public/common/socket_permission_request.h"
15 #include "content/public/common/content_client.h" 15 #include "content/public/common/content_client.h"
16 #include "content/public/common/window_container_type.h" 16 #include "content/public/common/window_container_type.h"
17 #include "net/base/mime_util.h" 17 #include "net/base/mime_util.h"
18 #include "net/cookies/canonical_cookie.h" 18 #include "net/cookies/canonical_cookie.h"
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen ter.h" 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen ter.h"
20 20
21 #if defined(OS_POSIX) && !defined(OS_MACOSX) 21 #if defined(OS_POSIX) && !defined(OS_MACOSX)
22 #include "base/posix/global_descriptors.h" 22 #include "base/posix/global_descriptors.h"
23 #endif 23 #endif
24 24
25
26 class CommandLine; 25 class CommandLine;
27 class FilePath; 26 class FilePath;
28 class GURL; 27 class GURL;
29 28
30 namespace webkit_glue { 29 namespace webkit_glue {
31 struct WebPreferences; 30 struct WebPreferences;
32 } 31 }
33 32
34 namespace crypto { 33 namespace crypto {
35 class CryptoModuleBlockingPasswordDelegate; 34 class CryptoModuleBlockingPasswordDelegate;
(...skipping 22 matching lines...) Expand all
58 class BrowserMainParts; 57 class BrowserMainParts;
59 class BrowserPpapiHost; 58 class BrowserPpapiHost;
60 class BrowserURLHandler; 59 class BrowserURLHandler;
61 class MediaObserver; 60 class MediaObserver;
62 class QuotaPermissionContext; 61 class QuotaPermissionContext;
63 class RenderProcessHost; 62 class RenderProcessHost;
64 class RenderViewHost; 63 class RenderViewHost;
65 class RenderViewHostDelegateView; 64 class RenderViewHostDelegateView;
66 class ResourceContext; 65 class ResourceContext;
67 class SiteInstance; 66 class SiteInstance;
68 class SpeechInputManagerDelegate;
69 class SpeechRecognitionManagerDelegate; 67 class SpeechRecognitionManagerDelegate;
70 class WebContents; 68 class WebContents;
71 class WebContentsView; 69 class WebContentsView;
72 class WebContentsViewDelegate; 70 class WebContentsViewDelegate;
73 class WebRTCInternals; 71 class WebRTCInternals;
74 class WebUIControllerFactory;
75 struct MainFunctionParams; 72 struct MainFunctionParams;
76 struct ShowDesktopNotificationHostMsgParams; 73 struct ShowDesktopNotificationHostMsgParams;
77 74
78 // Embedder API (or SPI) for participating in browser logic, to be implemented 75 // Embedder API (or SPI) for participating in browser logic, to be implemented
79 // by the client of the content browser. See ChromeContentBrowserClient for the 76 // by the client of the content browser. See ChromeContentBrowserClient for the
80 // principal implementation. The methods are assumed to be called on the UI 77 // principal implementation. The methods are assumed to be called on the UI
81 // thread unless otherwise specified. Use this "escape hatch" sparingly, to 78 // thread unless otherwise specified. Use this "escape hatch" sparingly, to
82 // avoid the embedder interface ballooning and becoming very specific to Chrome. 79 // avoid the embedder interface ballooning and becoming very specific to Chrome.
83 // (Often, the call out to the client can happen in a different part of the code 80 // (Often, the call out to the client can happen in a different part of the code
84 // that either already has a hook out to the embedder, or calls out to one of 81 // that either already has a hook out to the embedder, or calls out to one of
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // the content layer adds its own BrowserMessageFilters, so that the 115 // the content layer adds its own BrowserMessageFilters, so that the
119 // embedder's IPC filters have priority. 116 // embedder's IPC filters have priority.
120 virtual void RenderProcessHostCreated(RenderProcessHost* host) {} 117 virtual void RenderProcessHostCreated(RenderProcessHost* host) {}
121 118
122 // Notifies that a RenderProcessHost is about to be deleted. 119 // Notifies that a RenderProcessHost is about to be deleted.
123 virtual void RenderProcessHostDeleted(RenderProcessHost* host) {} 120 virtual void RenderProcessHostDeleted(RenderProcessHost* host) {}
124 121
125 // Notifies that a BrowserChildProcessHost has been created. 122 // Notifies that a BrowserChildProcessHost has been created.
126 virtual void BrowserChildProcessHostCreated(BrowserChildProcessHost* host) {} 123 virtual void BrowserChildProcessHostCreated(BrowserChildProcessHost* host) {}
127 124
128 // Gets the WebUIControllerFactory which will be responsible for generating
129 // WebUIs. Can return NULL if the embedder doesn't need WebUI support.
130 virtual WebUIControllerFactory* GetWebUIControllerFactory();
131
132 // 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
133 // group different url schemes in the same SiteInstance. 126 // group different url schemes in the same SiteInstance.
134 virtual GURL GetEffectiveURL(BrowserContext* browser_context, 127 virtual GURL GetEffectiveURL(BrowserContext* browser_context,
135 const GURL& url); 128 const GURL& url);
136 129
137 // Returns whether all instances of the specified effective URL should be 130 // Returns whether all instances of the specified effective URL should be
138 // 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.
139 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context, 132 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context,
140 const GURL& effective_url); 133 const GURL& effective_url);
141 134
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 // This is called on a worker thread. 468 // This is called on a worker thread.
476 virtual 469 virtual
477 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 470 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
478 const GURL& url); 471 const GURL& url);
479 #endif 472 #endif
480 }; 473 };
481 474
482 } // namespace content 475 } // namespace content
483 476
484 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 477 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698