| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 content::URLRequestInterceptorScopedVector request_interceptors) override; | 85 content::URLRequestInterceptorScopedVector request_interceptors) override; |
| 86 net::URLRequestContextGetter* CreateRequestContextForStoragePartition( | 86 net::URLRequestContextGetter* CreateRequestContextForStoragePartition( |
| 87 content::BrowserContext* browser_context, | 87 content::BrowserContext* browser_context, |
| 88 const base::FilePath& partition_path, | 88 const base::FilePath& partition_path, |
| 89 bool in_memory, | 89 bool in_memory, |
| 90 content::ProtocolHandlerMap* protocol_handlers, | 90 content::ProtocolHandlerMap* protocol_handlers, |
| 91 content::URLRequestInterceptorScopedVector request_interceptors) override; | 91 content::URLRequestInterceptorScopedVector request_interceptors) override; |
| 92 bool IsHandledURL(const GURL& url) override; | 92 bool IsHandledURL(const GURL& url) override; |
| 93 bool CanCommitURL(content::RenderProcessHost* process_host, | 93 bool CanCommitURL(content::RenderProcessHost* process_host, |
| 94 const GURL& url) override; | 94 const GURL& url) override; |
| 95 bool IsIllegalOrigin(content::ResourceContext* resource_context, |
| 96 int child_process_id, |
| 97 const GURL& origin) override; |
| 95 bool ShouldAllowOpenURL(content::SiteInstance* site_instance, | 98 bool ShouldAllowOpenURL(content::SiteInstance* site_instance, |
| 96 const GURL& url) override; | 99 const GURL& url) override; |
| 97 bool IsSuitableHost(content::RenderProcessHost* process_host, | 100 bool IsSuitableHost(content::RenderProcessHost* process_host, |
| 98 const GURL& site_url) override; | 101 const GURL& site_url) override; |
| 99 bool MayReuseHost(content::RenderProcessHost* process_host) override; | 102 bool MayReuseHost(content::RenderProcessHost* process_host) override; |
| 100 bool ShouldTryToUseExistingProcessHost( | 103 bool ShouldTryToUseExistingProcessHost( |
| 101 content::BrowserContext* browser_context, | 104 content::BrowserContext* browser_context, |
| 102 const GURL& url) override; | 105 const GURL& url) override; |
| 103 void SiteInstanceGotProcess(content::SiteInstance* site_instance) override; | 106 void SiteInstanceGotProcess(content::SiteInstance* site_instance) override; |
| 104 void SiteInstanceDeleting(content::SiteInstance* site_instance) override; | 107 void SiteInstanceDeleting(content::SiteInstance* site_instance) override; |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 std::vector<ChromeContentBrowserClientParts*> extra_parts_; | 332 std::vector<ChromeContentBrowserClientParts*> extra_parts_; |
| 330 | 333 |
| 331 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; | 334 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; |
| 332 | 335 |
| 333 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 336 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
| 334 }; | 337 }; |
| 335 | 338 |
| 336 } // namespace chrome | 339 } // namespace chrome |
| 337 | 340 |
| 338 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 341 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |