| 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 CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
| 6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 bool ShouldLockToOrigin(content::BrowserContext* browser_context, | 86 bool ShouldLockToOrigin(content::BrowserContext* browser_context, |
| 87 const GURL& effective_site_url) override; | 87 const GURL& effective_site_url) override; |
| 88 void GetAdditionalWebUISchemes( | 88 void GetAdditionalWebUISchemes( |
| 89 std::vector<std::string>* additional_schemes) override; | 89 std::vector<std::string>* additional_schemes) override; |
| 90 bool LogWebUIUrl(const GURL& web_ui_url) const override; | 90 bool LogWebUIUrl(const GURL& web_ui_url) const override; |
| 91 bool IsHandledURL(const GURL& url) override; | 91 bool IsHandledURL(const GURL& url) override; |
| 92 bool CanCommitURL(content::RenderProcessHost* process_host, | 92 bool CanCommitURL(content::RenderProcessHost* process_host, |
| 93 const GURL& url) override; | 93 const GURL& url) override; |
| 94 bool ShouldAllowOpenURL(content::SiteInstance* site_instance, | 94 bool ShouldAllowOpenURL(content::SiteInstance* site_instance, |
| 95 const GURL& url) override; | 95 const GURL& url) override; |
| 96 void OverrideOpenURLParams(content::SiteInstance* site_instance, | 96 void OverrideNavigationParams(content::SiteInstance* site_instance, |
| 97 content::OpenURLParams* params) override; | 97 ui::PageTransition* transition, |
| 98 bool* is_renderer_initiated, |
| 99 content::Referrer* referrer) override; |
| 98 bool IsSuitableHost(content::RenderProcessHost* process_host, | 100 bool IsSuitableHost(content::RenderProcessHost* process_host, |
| 99 const GURL& site_url) override; | 101 const GURL& site_url) override; |
| 100 bool MayReuseHost(content::RenderProcessHost* process_host) override; | 102 bool MayReuseHost(content::RenderProcessHost* process_host) override; |
| 101 bool ShouldTryToUseExistingProcessHost( | 103 bool ShouldTryToUseExistingProcessHost( |
| 102 content::BrowserContext* browser_context, | 104 content::BrowserContext* browser_context, |
| 103 const GURL& url) override; | 105 const GURL& url) override; |
| 104 void SiteInstanceGotProcess(content::SiteInstance* site_instance) override; | 106 void SiteInstanceGotProcess(content::SiteInstance* site_instance) override; |
| 105 void SiteInstanceDeleting(content::SiteInstance* site_instance) override; | 107 void SiteInstanceDeleting(content::SiteInstance* site_instance) override; |
| 106 bool ShouldSwapBrowsingInstancesForNavigation( | 108 bool ShouldSwapBrowsingInstancesForNavigation( |
| 107 content::SiteInstance* site_instance, | 109 content::SiteInstance* site_instance, |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 // Vector of additional ChromeContentBrowserClientParts. | 354 // Vector of additional ChromeContentBrowserClientParts. |
| 353 // Parts are deleted in the reverse order they are added. | 355 // Parts are deleted in the reverse order they are added. |
| 354 std::vector<ChromeContentBrowserClientParts*> extra_parts_; | 356 std::vector<ChromeContentBrowserClientParts*> extra_parts_; |
| 355 | 357 |
| 356 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; | 358 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; |
| 357 | 359 |
| 358 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 360 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
| 359 }; | 361 }; |
| 360 | 362 |
| 361 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 363 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |