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

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

Issue 8033001: Delegate decision what site instances can be rendered in what process to chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years, 2 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 | « chrome/chrome_tests.gypi ('k') | content/browser/mock_content_browser_client.h » ('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) 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_BROWSER_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/callback_old.h" 11 #include "base/callback_old.h"
12 #include "content/common/content_client.h" 12 #include "content/common/content_client.h"
13 #include "content/common/window_container_type.h" 13 #include "content/common/window_container_type.h"
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen ter.h" 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen ter.h"
15 15
16 class AccessTokenStore; 16 class AccessTokenStore;
17 class BrowserRenderProcessHost; 17 class BrowserRenderProcessHost;
18 class BrowserURLHandler; 18 class BrowserURLHandler;
19 class CommandLine; 19 class CommandLine;
20 class DevToolsManager; 20 class DevToolsManager;
21 class FilePath; 21 class FilePath;
22 class GURL; 22 class GURL;
23 class MHTMLGenerationManager; 23 class MHTMLGenerationManager;
24 class PluginProcessHost; 24 class PluginProcessHost;
25 class QuotaPermissionContext; 25 class QuotaPermissionContext;
26 class RenderProcessHost;
26 class RenderViewHost; 27 class RenderViewHost;
27 class ResourceDispatcherHost; 28 class ResourceDispatcherHost;
28 class SSLCertErrorHandler; 29 class SSLCertErrorHandler;
29 class SSLClientAuthHandler; 30 class SSLClientAuthHandler;
30 class SkBitmap; 31 class SkBitmap;
31 class TabContents; 32 class TabContents;
32 class TabContentsView; 33 class TabContentsView;
33 class WorkerProcessHost; 34 class WorkerProcessHost;
34 struct DesktopNotificationHostMsg_Show_Params; 35 struct DesktopNotificationHostMsg_Show_Params;
35 struct MainFunctionParams; 36 struct MainFunctionParams;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 118
118 // Returns whether all instances of the specified effective URL should be 119 // Returns whether all instances of the specified effective URL should be
119 // rendered by the same process, rather than using process-per-site-instance. 120 // rendered by the same process, rather than using process-per-site-instance.
120 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context, 121 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context,
121 const GURL& effective_url) = 0; 122 const GURL& effective_url) = 0;
122 123
123 // Returns whether a specified URL is to be considered the same as any 124 // Returns whether a specified URL is to be considered the same as any
124 // SiteInstance. 125 // SiteInstance.
125 virtual bool IsURLSameAsAnySiteInstance(const GURL& url) = 0; 126 virtual bool IsURLSameAsAnySiteInstance(const GURL& url) = 0;
126 127
128 // Returns whether a new view for a given |site_url| can be launched in a
129 // given |process_host|.
130 virtual bool IsSuitableHost(RenderProcessHost* process_host,
131 const GURL& site_url) = 0;
132
127 // See CharacterEncoding's comment. 133 // See CharacterEncoding's comment.
128 virtual std::string GetCanonicalEncodingNameByAliasName( 134 virtual std::string GetCanonicalEncodingNameByAliasName(
129 const std::string& alias_name) = 0; 135 const std::string& alias_name) = 0;
130 136
131 // Allows the embedder to pass extra command line flags. 137 // Allows the embedder to pass extra command line flags.
132 // switches::kProcessType will already be set at this point. 138 // switches::kProcessType will already be set at this point.
133 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, 139 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line,
134 int child_process_id) = 0; 140 int child_process_id) = 0;
135 141
136 // Returns the locale used by the application. 142 // Returns the locale used by the application.
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 // This is called on a worker thread. 325 // This is called on a worker thread.
320 virtual 326 virtual
321 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 327 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
322 const GURL& url) = 0; 328 const GURL& url) = 0;
323 #endif 329 #endif
324 }; 330 };
325 331
326 } // namespace content 332 } // namespace content
327 333
328 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ 334 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | content/browser/mock_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698