| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 // Returns whether a specified URL is handled by the embedder's internal | 121 // Returns whether a specified URL is handled by the embedder's internal |
| 122 // protocol handlers. | 122 // protocol handlers. |
| 123 virtual bool IsHandledURL(const GURL& url) = 0; | 123 virtual bool IsHandledURL(const GURL& url) = 0; |
| 124 | 124 |
| 125 // Returns whether a new view for a given |site_url| can be launched in a | 125 // Returns whether a new view for a given |site_url| can be launched in a |
| 126 // given |process_host|. | 126 // given |process_host|. |
| 127 virtual bool IsSuitableHost(content::RenderProcessHost* process_host, | 127 virtual bool IsSuitableHost(content::RenderProcessHost* process_host, |
| 128 const GURL& site_url) = 0; | 128 const GURL& site_url) = 0; |
| 129 | 129 |
| 130 // Called when a site instance is first associated with a process. | 130 // Called when a site instance is first associated with a process. |
| 131 virtual void SiteInstanceGotProcess(SiteInstance* site_instance) = 0; | 131 virtual void SiteInstanceGotProcess( |
| 132 content::SiteInstance* site_instance) = 0; |
| 132 | 133 |
| 133 // Called from a site instance's destructor. | 134 // Called from a site instance's destructor. |
| 134 virtual void SiteInstanceDeleting(SiteInstance* site_instance) = 0; | 135 virtual void SiteInstanceDeleting(content::SiteInstance* site_instance) = 0; |
| 135 | 136 |
| 136 // Returns true if for the navigation from |current_url| to |new_url|, | 137 // Returns true if for the navigation from |current_url| to |new_url|, |
| 137 // processes should be swapped (even if we are in a process model that | 138 // processes should be swapped (even if we are in a process model that |
| 138 // doesn't usually swap). | 139 // doesn't usually swap). |
| 139 virtual bool ShouldSwapProcessesForNavigation(const GURL& current_url, | 140 virtual bool ShouldSwapProcessesForNavigation(const GURL& current_url, |
| 140 const GURL& new_url) = 0; | 141 const GURL& new_url) = 0; |
| 141 | 142 |
| 142 // See CharacterEncoding's comment. | 143 // See CharacterEncoding's comment. |
| 143 virtual std::string GetCanonicalEncodingNameByAliasName( | 144 virtual std::string GetCanonicalEncodingNameByAliasName( |
| 144 const std::string& alias_name) = 0; | 145 const std::string& alias_name) = 0; |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 // This is called on a worker thread. | 353 // This is called on a worker thread. |
| 353 virtual | 354 virtual |
| 354 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 355 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
| 355 const GURL& url) = 0; | 356 const GURL& url) = 0; |
| 356 #endif | 357 #endif |
| 357 }; | 358 }; |
| 358 | 359 |
| 359 } // namespace content | 360 } // namespace content |
| 360 | 361 |
| 361 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 362 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |