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

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

Issue 11828040: Revert 175971 (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
25 class CommandLine; 26 class CommandLine;
26 class FilePath; 27 class FilePath;
27 class GURL; 28 class GURL;
28 29
29 namespace webkit_glue { 30 namespace webkit_glue {
30 struct WebPreferences; 31 struct WebPreferences;
31 } 32 }
32 33
33 namespace crypto { 34 namespace crypto {
34 class CryptoModuleBlockingPasswordDelegate; 35 class CryptoModuleBlockingPasswordDelegate;
(...skipping 22 matching lines...) Expand all
57 class BrowserMainParts; 58 class BrowserMainParts;
58 class BrowserPpapiHost; 59 class BrowserPpapiHost;
59 class BrowserURLHandler; 60 class BrowserURLHandler;
60 class MediaObserver; 61 class MediaObserver;
61 class QuotaPermissionContext; 62 class QuotaPermissionContext;
62 class RenderProcessHost; 63 class RenderProcessHost;
63 class RenderViewHost; 64 class RenderViewHost;
64 class RenderViewHostDelegateView; 65 class RenderViewHostDelegateView;
65 class ResourceContext; 66 class ResourceContext;
66 class SiteInstance; 67 class SiteInstance;
68 class SpeechInputManagerDelegate;
67 class SpeechRecognitionManagerDelegate; 69 class SpeechRecognitionManagerDelegate;
68 class WebContents; 70 class WebContents;
69 class WebContentsView; 71 class WebContentsView;
70 class WebContentsViewDelegate; 72 class WebContentsViewDelegate;
73 class WebUIControllerFactory;
71 struct MainFunctionParams; 74 struct MainFunctionParams;
72 struct ShowDesktopNotificationHostMsgParams; 75 struct ShowDesktopNotificationHostMsgParams;
73 76
74 // Embedder API (or SPI) for participating in browser logic, to be implemented 77 // Embedder API (or SPI) for participating in browser logic, to be implemented
75 // by the client of the content browser. See ChromeContentBrowserClient for the 78 // by the client of the content browser. See ChromeContentBrowserClient for the
76 // principal implementation. The methods are assumed to be called on the UI 79 // principal implementation. The methods are assumed to be called on the UI
77 // thread unless otherwise specified. Use this "escape hatch" sparingly, to 80 // thread unless otherwise specified. Use this "escape hatch" sparingly, to
78 // avoid the embedder interface ballooning and becoming very specific to Chrome. 81 // avoid the embedder interface ballooning and becoming very specific to Chrome.
79 // (Often, the call out to the client can happen in a different part of the code 82 // (Often, the call out to the client can happen in a different part of the code
80 // that either already has a hook out to the embedder, or calls out to one of 83 // that either already has a hook out to the embedder, or calls out to one of
(...skipping 26 matching lines...) Expand all
107 virtual void RenderViewHostCreated(RenderViewHost* render_view_host) {} 110 virtual void RenderViewHostCreated(RenderViewHost* render_view_host) {}
108 111
109 // Notifies that a RenderProcessHost has been created. This is called before 112 // Notifies that a RenderProcessHost has been created. This is called before
110 // the content layer adds its own BrowserMessageFilters, so that the 113 // the content layer adds its own BrowserMessageFilters, so that the
111 // embedder's IPC filters have priority. 114 // embedder's IPC filters have priority.
112 virtual void RenderProcessHostCreated(RenderProcessHost* host) {} 115 virtual void RenderProcessHostCreated(RenderProcessHost* host) {}
113 116
114 // Notifies that a BrowserChildProcessHost has been created. 117 // Notifies that a BrowserChildProcessHost has been created.
115 virtual void BrowserChildProcessHostCreated(BrowserChildProcessHost* host) {} 118 virtual void BrowserChildProcessHostCreated(BrowserChildProcessHost* host) {}
116 119
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
117 // Get the effective URL for the given actual URL, to allow an embedder to 124 // Get the effective URL for the given actual URL, to allow an embedder to
118 // group different url schemes in the same SiteInstance. 125 // group different url schemes in the same SiteInstance.
119 virtual GURL GetEffectiveURL(BrowserContext* browser_context, 126 virtual GURL GetEffectiveURL(BrowserContext* browser_context,
120 const GURL& url); 127 const GURL& url);
121 128
122 // Returns whether all instances of the specified effective URL should be 129 // Returns whether all instances of the specified effective URL should be
123 // rendered by the same process, rather than using process-per-site-instance. 130 // rendered by the same process, rather than using process-per-site-instance.
124 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context, 131 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context,
125 const GURL& effective_url); 132 const GURL& effective_url);
126 133
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 // This is called on a worker thread. 469 // This is called on a worker thread.
463 virtual 470 virtual
464 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 471 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
465 const GURL& url); 472 const GURL& url);
466 #endif 473 #endif
467 }; 474 };
468 475
469 } // namespace content 476 } // namespace content
470 477
471 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 478 #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