| OLD | NEW |
| 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 Loading... |
| 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 specified URL should be rendered in a process with |
| 129 // special privileges, e.g. extension bindings. |
| 130 virtual bool ShouldRunInPrivilegedProcess(const GURL& url) = 0; |
| 131 |
| 132 // Returns whether a new view for a given |site_url| can be launched in a |
| 133 // given |process_host|. |
| 134 virtual bool IsSuitableHost(RenderProcessHost* process_host, |
| 135 const GURL& site_url) = 0; |
| 136 |
| 127 // See CharacterEncoding's comment. | 137 // See CharacterEncoding's comment. |
| 128 virtual std::string GetCanonicalEncodingNameByAliasName( | 138 virtual std::string GetCanonicalEncodingNameByAliasName( |
| 129 const std::string& alias_name) = 0; | 139 const std::string& alias_name) = 0; |
| 130 | 140 |
| 131 // Allows the embedder to pass extra command line flags. | 141 // Allows the embedder to pass extra command line flags. |
| 132 // switches::kProcessType will already be set at this point. | 142 // switches::kProcessType will already be set at this point. |
| 133 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, | 143 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, |
| 134 int child_process_id) = 0; | 144 int child_process_id) = 0; |
| 135 | 145 |
| 136 // Returns the locale used by the application. | 146 // Returns the locale used by the application. |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 // This is called on a worker thread. | 329 // This is called on a worker thread. |
| 320 virtual | 330 virtual |
| 321 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 331 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
| 322 const GURL& url) = 0; | 332 const GURL& url) = 0; |
| 323 #endif | 333 #endif |
| 324 }; | 334 }; |
| 325 | 335 |
| 326 } // namespace content | 336 } // namespace content |
| 327 | 337 |
| 328 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 338 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |