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

Unified Diff: trunk/src/chrome/browser/prerender/prerender_manager.h

Issue 280383002: Revert 269855 "Only commit cookie changes in prerenders after a ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: trunk/src/chrome/browser/prerender/prerender_manager.h
===================================================================
--- trunk/src/chrome/browser/prerender/prerender_manager.h (revision 269877)
+++ trunk/src/chrome/browser/prerender/prerender_manager.h (working copy)
@@ -31,7 +31,6 @@
#include "components/keyed_service/core/keyed_service.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
-#include "content/public/browser/render_process_host_observer.h"
#include "content/public/browser/session_storage_namespace.h"
#include "content/public/browser/web_contents_observer.h"
#include "net/cookies/canonical_cookie.h"
@@ -75,7 +74,6 @@
class PrerenderManager : public base::SupportsWeakPtr<PrerenderManager>,
public base::NonThreadSafe,
public content::NotificationObserver,
- public content::RenderProcessHostObserver,
public KeyedService,
public MediaCaptureDevicesDispatcher::Observer {
public:
@@ -297,8 +295,6 @@
PrerenderTracker* prerender_tracker() { return prerender_tracker_; }
- bool cookie_store_loaded() { return cookie_store_loaded_; }
-
// Adds a condition. This is owned by the PrerenderManager.
void AddCondition(const PrerenderCondition* condition);
@@ -364,25 +360,6 @@
// profile if prerendering is currently enabled.
void AddProfileNetworkBytesIfEnabled(int64 bytes);
- // Registers a new ProcessHost performing a prerender. Called by
- // PrerenderContents.
- void AddPrerenderProcessHost(content::RenderProcessHost* process_host);
-
- bool IsProcessPrerendering(content::RenderProcessHost* process_host);
-
- // content::RenderProcessHostObserver implementation.
- virtual void RenderProcessHostDestroyed(
- content::RenderProcessHost* host) OVERRIDE;
-
- // To be called once the cookie store for this profile has been loaded.
- void OnCookieStoreLoaded();
-
- // For testing purposes. Issues a callback once the cookie store has been
- // loaded.
- void set_on_cookie_store_loaded_cb_for_testing(base::Closure cb) {
- on_cookie_store_loaded_cb_for_testing_ = cb;
- }
-
protected:
class PendingSwap;
class PrerenderData : public base::SupportsWeakPtr<PrerenderData> {
@@ -533,11 +510,6 @@
// shorten the TTL of the prerendered page.
void SourceNavigatedAway(PrerenderData* prerender_data);
- // Gets the request context for the profile.
- // For unit tests, this will be overriden to return NULL, since it is not
- // needed.
- virtual net::URLRequestContextGetter* GetURLRequestContext();
-
private:
friend class ::InstantSearchPrerendererTest;
friend class PrerenderBrowserTest;
@@ -747,15 +719,6 @@
// The value of profile_network_bytes_ that was last recorded.
int64 last_recorded_profile_network_bytes_;
- // Set of process hosts being prerendered.
- typedef std::set<content::RenderProcessHost*> PrerenderProcessSet;
- PrerenderProcessSet prerender_process_hosts_;
-
- // Indicates whether the cookie store for this profile has fully loaded yet.
- bool cookie_store_loaded_;
-
- base::Closure on_cookie_store_loaded_cb_for_testing_;
-
DISALLOW_COPY_AND_ASSIGN(PrerenderManager);
};
« no previous file with comments | « trunk/src/chrome/browser/prerender/prerender_final_status.cc ('k') | trunk/src/chrome/browser/prerender/prerender_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698