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

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

Issue 11819050: Revert 175890: actually, looks like we want this to also help move chromeos webui pages out of src/… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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 WebUIControllerFactory;
74 struct MainFunctionParams; 71 struct MainFunctionParams;
75 struct ShowDesktopNotificationHostMsgParams; 72 struct ShowDesktopNotificationHostMsgParams;
76 73
77 // Embedder API (or SPI) for participating in browser logic, to be implemented 74 // Embedder API (or SPI) for participating in browser logic, to be implemented
78 // by the client of the content browser. See ChromeContentBrowserClient for the 75 // by the client of the content browser. See ChromeContentBrowserClient for the
79 // principal implementation. The methods are assumed to be called on the UI 76 // principal implementation. The methods are assumed to be called on the UI
80 // thread unless otherwise specified. Use this "escape hatch" sparingly, to 77 // thread unless otherwise specified. Use this "escape hatch" sparingly, to
81 // avoid the embedder interface ballooning and becoming very specific to Chrome. 78 // avoid the embedder interface ballooning and becoming very specific to Chrome.
82 // (Often, the call out to the client can happen in a different part of the code 79 // (Often, the call out to the client can happen in a different part of the code
83 // that either already has a hook out to the embedder, or calls out to one of 80 // that either already has a hook out to the embedder, or calls out to one of
(...skipping 26 matching lines...) Expand all
110 virtual void RenderViewHostCreated(RenderViewHost* render_view_host) {} 107 virtual void RenderViewHostCreated(RenderViewHost* render_view_host) {}
111 108
112 // Notifies that a RenderProcessHost has been created. This is called before 109 // Notifies that a RenderProcessHost has been created. This is called before
113 // the content layer adds its own BrowserMessageFilters, so that the 110 // the content layer adds its own BrowserMessageFilters, so that the
114 // embedder's IPC filters have priority. 111 // embedder's IPC filters have priority.
115 virtual void RenderProcessHostCreated(RenderProcessHost* host) {} 112 virtual void RenderProcessHostCreated(RenderProcessHost* host) {}
116 113
117 // Notifies that a BrowserChildProcessHost has been created. 114 // Notifies that a BrowserChildProcessHost has been created.
118 virtual void BrowserChildProcessHostCreated(BrowserChildProcessHost* host) {} 115 virtual void BrowserChildProcessHostCreated(BrowserChildProcessHost* host) {}
119 116
120 // Gets the WebUIControllerFactory which will be responsible for generating
121 // WebUIs. Can return NULL if the embedder doesn't need WebUI support.
122 virtual WebUIControllerFactory* GetWebUIControllerFactory();
123
124 // Get the effective URL for the given actual URL, to allow an embedder to 117 // Get the effective URL for the given actual URL, to allow an embedder to
125 // group different url schemes in the same SiteInstance. 118 // group different url schemes in the same SiteInstance.
126 virtual GURL GetEffectiveURL(BrowserContext* browser_context, 119 virtual GURL GetEffectiveURL(BrowserContext* browser_context,
127 const GURL& url); 120 const GURL& url);
128 121
129 // Returns whether all instances of the specified effective URL should be 122 // Returns whether all instances of the specified effective URL should be
130 // rendered by the same process, rather than using process-per-site-instance. 123 // rendered by the same process, rather than using process-per-site-instance.
131 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context, 124 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context,
132 const GURL& effective_url); 125 const GURL& effective_url);
133 126
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 // This is called on a worker thread. 462 // This is called on a worker thread.
470 virtual 463 virtual
471 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 464 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
472 const GURL& url); 465 const GURL& url);
473 #endif 466 #endif
474 }; 467 };
475 468
476 } // namespace content 469 } // namespace content
477 470
478 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 471 #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