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

Side by Side Diff: content/public/browser/content_browser_client.h

Issue 10546029: Revert 139933 - Clean up RenderViewHostManager swapping logic. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
OLDNEW
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 CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 virtual bool ShouldTryToUseExistingProcessHost( 142 virtual bool ShouldTryToUseExistingProcessHost(
143 BrowserContext* browser_context, const GURL& url); 143 BrowserContext* browser_context, const GURL& url);
144 144
145 // Called when a site instance is first associated with a process. 145 // Called when a site instance is first associated with a process.
146 virtual void SiteInstanceGotProcess(SiteInstance* site_instance) {} 146 virtual void SiteInstanceGotProcess(SiteInstance* site_instance) {}
147 147
148 // Called from a site instance's destructor. 148 // Called from a site instance's destructor.
149 virtual void SiteInstanceDeleting(SiteInstance* site_instance) {} 149 virtual void SiteInstanceDeleting(SiteInstance* site_instance) {}
150 150
151 // Returns true if for the navigation from |current_url| to |new_url|, 151 // Returns true if for the navigation from |current_url| to |new_url|,
152 // a new SiteInstance and BrowsingInstance should be created (even if we are 152 // processes should be swapped (even if we are in a process model that
153 // in a process model that doesn't usually swap). This forces a process swap 153 // doesn't usually swap).
154 // and severs script connections with existing tabs. 154 virtual bool ShouldSwapProcessesForNavigation(const GURL& current_url,
155 virtual bool ShouldSwapBrowsingInstanceForNavigation( 155 const GURL& new_url);
156 BrowserContext* browser_context,
157 const GURL& current_url,
158 const GURL& new_url);
159 156
160 // Returns true if the given navigation redirect should cause a renderer 157 // Returns true if the given navigation redirect should cause a renderer
161 // process swap. 158 // process swap.
162 // This is called on the IO thread. 159 // This is called on the IO thread.
163 virtual bool ShouldSwapProcessesForRedirect(ResourceContext* resource_context, 160 virtual bool ShouldSwapProcessesForRedirect(ResourceContext* resource_context,
164 const GURL& current_url, 161 const GURL& current_url,
165 const GURL& new_url); 162 const GURL& new_url);
166 163
167 // See CharacterEncoding's comment. 164 // See CharacterEncoding's comment.
168 virtual std::string GetCanonicalEncodingNameByAliasName( 165 virtual std::string GetCanonicalEncodingNameByAliasName(
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 // This is called on a worker thread. 418 // This is called on a worker thread.
422 virtual 419 virtual
423 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 420 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
424 const GURL& url); 421 const GURL& url);
425 #endif 422 #endif
426 }; 423 };
427 424
428 } // namespace content 425 } // namespace content
429 426
430 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 427 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/render_view_host_manager_unittest.cc ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698