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

Side by Side Diff: chrome/browser/prerender/prerender_manager.h

Issue 2697513009: Enable forced prerenders on wifi (Closed)
Patch Set: Created 3 years, 10 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 (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 CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 const gfx::Size& size); 133 const gfx::Size& size);
134 134
135 std::unique_ptr<PrerenderHandle> AddPrerenderFromExternalRequest( 135 std::unique_ptr<PrerenderHandle> AddPrerenderFromExternalRequest(
136 const GURL& url, 136 const GURL& url,
137 const content::Referrer& referrer, 137 const content::Referrer& referrer,
138 content::SessionStorageNamespace* session_storage_namespace, 138 content::SessionStorageNamespace* session_storage_namespace,
139 const gfx::Rect& bounds); 139 const gfx::Rect& bounds);
140 140
141 // Adds a prerender from an external request that will prerender even on 141 // Adds a prerender from an external request that will prerender even on
142 // cellular networks as long as the user setting for prerendering is ON. 142 // cellular networks as long as the user setting for prerendering is ON.
143 std::unique_ptr<PrerenderHandle> AddPrerenderOnCellularFromExternalRequest( 143 std::unique_ptr<PrerenderHandle> AddForcedPrerenderFromExternalRequest(
144 const GURL& url, 144 const GURL& url,
145 const content::Referrer& referrer, 145 const content::Referrer& referrer,
146 content::SessionStorageNamespace* session_storage_namespace, 146 content::SessionStorageNamespace* session_storage_namespace,
147 const gfx::Rect& bounds); 147 const gfx::Rect& bounds);
148 148
149 // Adds a prerender for Instant Search |url| if valid. The 149 // Adds a prerender for Instant Search |url| if valid. The
150 // |session_storage_namespace| matches the namespace of the active tab at the 150 // |session_storage_namespace| matches the namespace of the active tab at the
151 // time the prerender is generated. Returns a PrerenderHandle or NULL. 151 // time the prerender is generated. Returns a PrerenderHandle or NULL.
152 std::unique_ptr<PrerenderHandle> AddPrerenderForInstant( 152 std::unique_ptr<PrerenderHandle> AddPrerenderForInstant(
153 const GURL& url, 153 const GURL& url,
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 std::vector<std::unique_ptr<PrerenderManagerObserver>> observers_; 649 std::vector<std::unique_ptr<PrerenderManagerObserver>> observers_;
650 650
651 base::WeakPtrFactory<PrerenderManager> weak_factory_; 651 base::WeakPtrFactory<PrerenderManager> weak_factory_;
652 652
653 DISALLOW_COPY_AND_ASSIGN(PrerenderManager); 653 DISALLOW_COPY_AND_ASSIGN(PrerenderManager);
654 }; 654 };
655 655
656 } // namespace prerender 656 } // namespace prerender
657 657
658 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ 658 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_histograms.cc ('k') | chrome/browser/prerender/prerender_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698