| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 GURL GetEffectiveURL(content::BrowserContext* browser_context, | 85 GURL GetEffectiveURL(content::BrowserContext* browser_context, |
| 86 const GURL& url) override; | 86 const GURL& url) override; |
| 87 bool ShouldUseProcessPerSite(content::BrowserContext* browser_context, | 87 bool ShouldUseProcessPerSite(content::BrowserContext* browser_context, |
| 88 const GURL& effective_url) override; | 88 const GURL& effective_url) override; |
| 89 bool DoesSiteRequireDedicatedProcess(content::BrowserContext* browser_context, | 89 bool DoesSiteRequireDedicatedProcess(content::BrowserContext* browser_context, |
| 90 const GURL& effective_site_url) override; | 90 const GURL& effective_site_url) override; |
| 91 bool ShouldLockToOrigin(content::BrowserContext* browser_context, | 91 bool ShouldLockToOrigin(content::BrowserContext* browser_context, |
| 92 const GURL& effective_site_url) override; | 92 const GURL& effective_site_url) override; |
| 93 void GetAdditionalWebUISchemes( | 93 void GetAdditionalWebUISchemes( |
| 94 std::vector<std::string>* additional_schemes) override; | 94 std::vector<std::string>* additional_schemes) override; |
| 95 void GetAdditionalViewSourceSchemes( |
| 96 std::vector<std::string>* additional_schemes) override; |
| 95 bool LogWebUIUrl(const GURL& web_ui_url) const override; | 97 bool LogWebUIUrl(const GURL& web_ui_url) const override; |
| 96 bool IsHandledURL(const GURL& url) override; | 98 bool IsHandledURL(const GURL& url) override; |
| 97 bool CanCommitURL(content::RenderProcessHost* process_host, | 99 bool CanCommitURL(content::RenderProcessHost* process_host, |
| 98 const GURL& url) override; | 100 const GURL& url) override; |
| 99 bool ShouldAllowOpenURL(content::SiteInstance* site_instance, | 101 bool ShouldAllowOpenURL(content::SiteInstance* site_instance, |
| 100 const GURL& url) override; | 102 const GURL& url) override; |
| 101 void OverrideNavigationParams(content::SiteInstance* site_instance, | 103 void OverrideNavigationParams(content::SiteInstance* site_instance, |
| 102 ui::PageTransition* transition, | 104 ui::PageTransition* transition, |
| 103 bool* is_renderer_initiated, | 105 bool* is_renderer_initiated, |
| 104 content::Referrer* referrer) override; | 106 content::Referrer* referrer) override; |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 // Vector of additional ChromeContentBrowserClientParts. | 384 // Vector of additional ChromeContentBrowserClientParts. |
| 383 // Parts are deleted in the reverse order they are added. | 385 // Parts are deleted in the reverse order they are added. |
| 384 std::vector<ChromeContentBrowserClientParts*> extra_parts_; | 386 std::vector<ChromeContentBrowserClientParts*> extra_parts_; |
| 385 | 387 |
| 386 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; | 388 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; |
| 387 | 389 |
| 388 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 390 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
| 389 }; | 391 }; |
| 390 | 392 |
| 391 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 393 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |