Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Side by Side Diff: chrome/browser/extensions/chrome_content_browser_client_extensions_part.h

Issue 2321543002: Merge CrossSiteResourceHandler and NavigationResourceThrottle (Closed)
Patch Set: Addressed nits Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698