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

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

Issue 2394343002: Removing ShouldSwapProcessesForRedirect (using DoesSiteRequireDedicatedProcess).
Patch Set: Rebasing... Created 3 years, 7 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 27 matching lines...) Expand all
38 const GURL& url); 38 const GURL& url);
39 static bool IsSuitableHost(Profile* profile, 39 static bool IsSuitableHost(Profile* profile,
40 content::RenderProcessHost* process_host, 40 content::RenderProcessHost* process_host,
41 const GURL& site_url); 41 const GURL& site_url);
42 static bool ShouldTryToUseExistingProcessHost(Profile* profile, 42 static bool ShouldTryToUseExistingProcessHost(Profile* profile,
43 const GURL& url); 43 const GURL& url);
44 static bool ShouldSwapBrowsingInstancesForNavigation( 44 static bool ShouldSwapBrowsingInstancesForNavigation(
45 content::SiteInstance* site_instance, 45 content::SiteInstance* site_instance,
46 const GURL& current_url, 46 const GURL& current_url,
47 const GURL& new_url); 47 const GURL& new_url);
48 static bool ShouldSwapProcessesForRedirect(
49 content::BrowserContext* browser_context,
50 const GURL& current_url,
51 const GURL& new_url);
52 static bool AllowServiceWorker(const GURL& scope, 48 static bool AllowServiceWorker(const GURL& scope,
53 const GURL& first_party_url, 49 const GURL& first_party_url,
54 content::ResourceContext* context); 50 content::ResourceContext* context);
55 static void OverrideNavigationParams(content::SiteInstance* site_instance, 51 static void OverrideNavigationParams(content::SiteInstance* site_instance,
56 ui::PageTransition* transition, 52 ui::PageTransition* transition,
57 bool* is_renderer_initiated, 53 bool* is_renderer_initiated,
58 content::Referrer* referrer); 54 content::Referrer* referrer);
59 55
60 // Similiar to ChromeContentBrowserClient::ShouldAllowOpenURL(), but the 56 // Similiar to ChromeContentBrowserClient::ShouldAllowOpenURL(), but the
61 // return value indicates whether to use |result| or not. 57 // return value indicates whether to use |result| or not.
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 Profile* profile) override; 119 Profile* profile) override;
124 void ResourceDispatcherHostCreated() override; 120 void ResourceDispatcherHostCreated() override;
125 121
126 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClientExtensionsPart); 122 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClientExtensionsPart);
127 }; 123 };
128 124
129 } // namespace extensions 125 } // namespace extensions
130 126
131 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PA RT_H_ 127 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PA RT_H_
132 128
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698