| OLD | NEW |
| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
| 13 #include "content/public/common/content_client.h" | 13 #include "content/public/common/content_client.h" |
| 14 #include "content/public/common/window_container_type.h" | 14 #include "content/public/common/window_container_type.h" |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen
ter.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen
ter.h" |
| 16 | 16 |
| 17 class BrowserURLHandler; | 17 class BrowserURLHandler; |
| 18 class CommandLine; | 18 class CommandLine; |
| 19 class FilePath; | 19 class FilePath; |
| 20 class GURL; | 20 class GURL; |
| 21 class MHTMLGenerationManager; | 21 class MHTMLGenerationManager; |
| 22 class PluginProcessHost; | 22 class PluginProcessHost; |
| 23 class QuotaPermissionContext; | 23 class QuotaPermissionContext; |
| 24 class RenderViewHost; | 24 class RenderViewHost; |
| 25 class ResourceDispatcherHost; | 25 class ResourceDispatcherHost; |
| 26 class SiteInstance; | |
| 27 class SSLCertErrorHandler; | 26 class SSLCertErrorHandler; |
| 28 class SSLClientAuthHandler; | 27 class SSLClientAuthHandler; |
| 29 class SkBitmap; | 28 class SkBitmap; |
| 30 class WorkerProcessHost; | 29 class WorkerProcessHost; |
| 31 struct WebPreferences; | 30 struct WebPreferences; |
| 32 | 31 |
| 33 namespace content { | 32 namespace content { |
| 34 class AccessTokenStore; | 33 class AccessTokenStore; |
| 35 class BrowserMainParts; | 34 class BrowserMainParts; |
| 36 class RenderProcessHost; | 35 class RenderProcessHost; |
| 36 class SiteInstance; |
| 37 class WebContents; | 37 class WebContents; |
| 38 class WebContentsView; | 38 class WebContentsView; |
| 39 struct MainFunctionParams; | 39 struct MainFunctionParams; |
| 40 struct ShowDesktopNotificationHostMsgParams; | 40 struct ShowDesktopNotificationHostMsgParams; |
| 41 } | 41 } |
| 42 | 42 |
| 43 namespace crypto { | 43 namespace crypto { |
| 44 class CryptoModuleBlockingPasswordDelegate; | 44 class CryptoModuleBlockingPasswordDelegate; |
| 45 } | 45 } |
| 46 | 46 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 // Returns whether a specified URL is handled by the embedder's internal | 116 // Returns whether a specified URL is handled by the embedder's internal |
| 117 // protocol handlers. | 117 // protocol handlers. |
| 118 virtual bool IsHandledURL(const GURL& url) = 0; | 118 virtual bool IsHandledURL(const GURL& url) = 0; |
| 119 | 119 |
| 120 // Returns whether a new view for a given |site_url| can be launched in a | 120 // Returns whether a new view for a given |site_url| can be launched in a |
| 121 // given |process_host|. | 121 // given |process_host|. |
| 122 virtual bool IsSuitableHost(content::RenderProcessHost* process_host, | 122 virtual bool IsSuitableHost(content::RenderProcessHost* process_host, |
| 123 const GURL& site_url) = 0; | 123 const GURL& site_url) = 0; |
| 124 | 124 |
| 125 // Called when a site instance is first associated with a process. | 125 // Called when a site instance is first associated with a process. |
| 126 virtual void SiteInstanceGotProcess(SiteInstance* site_instance) = 0; | 126 virtual void SiteInstanceGotProcess( |
| 127 content::SiteInstance* site_instance) = 0; |
| 127 | 128 |
| 128 // Called from a site instance's destructor. | 129 // Called from a site instance's destructor. |
| 129 virtual void SiteInstanceDeleting(SiteInstance* site_instance) = 0; | 130 virtual void SiteInstanceDeleting(content::SiteInstance* site_instance) = 0; |
| 130 | 131 |
| 131 // Returns true if for the navigation from |current_url| to |new_url|, | 132 // Returns true if for the navigation from |current_url| to |new_url|, |
| 132 // processes should be swapped (even if we are in a process model that | 133 // processes should be swapped (even if we are in a process model that |
| 133 // doesn't usually swap). | 134 // doesn't usually swap). |
| 134 virtual bool ShouldSwapProcessesForNavigation(const GURL& current_url, | 135 virtual bool ShouldSwapProcessesForNavigation(const GURL& current_url, |
| 135 const GURL& new_url) = 0; | 136 const GURL& new_url) = 0; |
| 136 | 137 |
| 137 // See CharacterEncoding's comment. | 138 // See CharacterEncoding's comment. |
| 138 virtual std::string GetCanonicalEncodingNameByAliasName( | 139 virtual std::string GetCanonicalEncodingNameByAliasName( |
| 139 const std::string& alias_name) = 0; | 140 const std::string& alias_name) = 0; |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 // This is called on a worker thread. | 348 // This is called on a worker thread. |
| 348 virtual | 349 virtual |
| 349 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 350 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
| 350 const GURL& url) = 0; | 351 const GURL& url) = 0; |
| 351 #endif | 352 #endif |
| 352 }; | 353 }; |
| 353 | 354 |
| 354 } // namespace content | 355 } // namespace content |
| 355 | 356 |
| 356 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 357 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |