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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 bool DoesSiteRequireDedicatedProcess(content::BrowserContext* browser_context, | 80 bool DoesSiteRequireDedicatedProcess(content::BrowserContext* browser_context, |
81 const GURL& effective_url) override; | 81 const GURL& effective_url) override; |
82 bool ShouldLockToOrigin(content::BrowserContext* browser_context, | 82 bool ShouldLockToOrigin(content::BrowserContext* browser_context, |
83 const GURL& effective_site_url) override; | 83 const GURL& effective_site_url) override; |
84 void GetAdditionalWebUISchemes( | 84 void GetAdditionalWebUISchemes( |
85 std::vector<std::string>* additional_schemes) override; | 85 std::vector<std::string>* additional_schemes) override; |
86 bool LogWebUIUrl(const GURL& web_ui_url) const override; | 86 bool LogWebUIUrl(const GURL& web_ui_url) const override; |
87 bool IsHandledURL(const GURL& url) override; | 87 bool IsHandledURL(const GURL& url) override; |
88 bool CanCommitURL(content::RenderProcessHost* process_host, | 88 bool CanCommitURL(content::RenderProcessHost* process_host, |
89 const GURL& url) override; | 89 const GURL& url) override; |
90 bool IsIllegalOrigin(content::ResourceContext* resource_context, | |
91 int child_process_id, | |
92 const GURL& origin) override; | |
93 bool ShouldAllowOpenURL(content::SiteInstance* site_instance, | 90 bool ShouldAllowOpenURL(content::SiteInstance* site_instance, |
94 const GURL& url) override; | 91 const GURL& url) override; |
95 void OverrideOpenURLParams(content::SiteInstance* site_instance, | 92 void OverrideOpenURLParams(content::SiteInstance* site_instance, |
96 content::OpenURLParams* params) override; | 93 content::OpenURLParams* params) override; |
97 bool IsSuitableHost(content::RenderProcessHost* process_host, | 94 bool IsSuitableHost(content::RenderProcessHost* process_host, |
98 const GURL& site_url) override; | 95 const GURL& site_url) override; |
99 bool MayReuseHost(content::RenderProcessHost* process_host) override; | 96 bool MayReuseHost(content::RenderProcessHost* process_host) override; |
100 bool ShouldTryToUseExistingProcessHost( | 97 bool ShouldTryToUseExistingProcessHost( |
101 content::BrowserContext* browser_context, | 98 content::BrowserContext* browser_context, |
102 const GURL& url) override; | 99 const GURL& url) override; |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 // Vector of additional ChromeContentBrowserClientParts. | 341 // Vector of additional ChromeContentBrowserClientParts. |
345 // Parts are deleted in the reverse order they are added. | 342 // Parts are deleted in the reverse order they are added. |
346 std::vector<ChromeContentBrowserClientParts*> extra_parts_; | 343 std::vector<ChromeContentBrowserClientParts*> extra_parts_; |
347 | 344 |
348 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; | 345 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; |
349 | 346 |
350 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 347 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
351 }; | 348 }; |
352 | 349 |
353 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 350 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |