OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_EXTENSIONS_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PART_
H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PART_
H_ |
6 #define CHROME_BROWSER_EXTENSIONS_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PART_
H_ | 6 #define CHROME_BROWSER_EXTENSIONS_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PART_
H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "chrome/browser/chrome_content_browser_client_parts.h" | 10 #include "chrome/browser/chrome_content_browser_client_parts.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 static bool IsSuitableHost(Profile* profile, | 37 static bool IsSuitableHost(Profile* profile, |
38 content::RenderProcessHost* process_host, | 38 content::RenderProcessHost* process_host, |
39 const GURL& site_url); | 39 const GURL& site_url); |
40 static bool ShouldTryToUseExistingProcessHost(Profile* profile, | 40 static bool ShouldTryToUseExistingProcessHost(Profile* profile, |
41 const GURL& url); | 41 const GURL& url); |
42 static bool ShouldSwapBrowsingInstancesForNavigation( | 42 static bool ShouldSwapBrowsingInstancesForNavigation( |
43 content::SiteInstance* site_instance, | 43 content::SiteInstance* site_instance, |
44 const GURL& current_url, | 44 const GURL& current_url, |
45 const GURL& new_url); | 45 const GURL& new_url); |
46 static bool ShouldSwapProcessesForRedirect( | 46 static bool ShouldSwapProcessesForRedirect( |
47 content::ResourceContext* resource_context, | 47 content::BrowserContext* browser_context, |
48 const GURL& current_url, | 48 const GURL& current_url, |
49 const GURL& new_url); | 49 const GURL& new_url); |
50 static bool AllowServiceWorker(const GURL& scope, | 50 static bool AllowServiceWorker(const GURL& scope, |
51 const GURL& first_party_url, | 51 const GURL& first_party_url, |
52 content::ResourceContext* context, | 52 content::ResourceContext* context, |
53 int render_process_id, | 53 int render_process_id, |
54 int render_frame_id); | 54 int render_frame_id); |
55 | 55 |
56 // Similiar to ChromeContentBrowserClient::ShouldAllowOpenURL(), but the | 56 // Similiar to ChromeContentBrowserClient::ShouldAllowOpenURL(), but the |
57 // return value indicates whether to use |result| or not. | 57 // return value indicates whether to use |result| or not. |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 Profile* profile) override; | 90 Profile* profile) override; |
91 void ResourceDispatcherHostCreated() override; | 91 void ResourceDispatcherHostCreated() override; |
92 | 92 |
93 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClientExtensionsPart); | 93 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClientExtensionsPart); |
94 }; | 94 }; |
95 | 95 |
96 } // namespace extensions | 96 } // namespace extensions |
97 | 97 |
98 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PA
RT_H_ | 98 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PA
RT_H_ |
99 | 99 |
OLD | NEW |