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

Side by Side Diff: chrome/browser/prerender/prerender_contents.cc

Issue 2304953002: NoState Prefetch: nostate prefetch browser tests. (Closed)
Patch Set: Remove final_status.cc as it had only formatting changes. 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 (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 #include "chrome/browser/prerender/prerender_contents.h" 5 #include "chrome/browser/prerender/prerender_contents.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <functional> 10 #include <functional>
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 gfx::Size GetSizeForNewRenderView(WebContents* web_contents) const override { 179 gfx::Size GetSizeForNewRenderView(WebContents* web_contents) const override {
180 // Have to set the size of the RenderView on initialization to be sure it is 180 // Have to set the size of the RenderView on initialization to be sure it is
181 // set before the RenderView is hidden on all platforms (esp. Android). 181 // set before the RenderView is hidden on all platforms (esp. Android).
182 return prerender_contents_->bounds_.size(); 182 return prerender_contents_->bounds_.size();
183 } 183 }
184 184
185 private: 185 private:
186 PrerenderContents* prerender_contents_; 186 PrerenderContents* prerender_contents_;
187 }; 187 };
188 188
189 void PrerenderContents::Observer::OnPrerenderStopLoading( 189 PrerenderContents::Observer::~Observer() {}
190 PrerenderContents* contents) {
191 }
192
193 void PrerenderContents::Observer::OnPrerenderDomContentLoaded(
194 PrerenderContents* contents) {
195 }
196
197 PrerenderContents::Observer::Observer() {
198 }
199
200 PrerenderContents::Observer::~Observer() {
201 }
202 190
203 PrerenderContents::PrerenderContents( 191 PrerenderContents::PrerenderContents(
204 PrerenderManager* prerender_manager, 192 PrerenderManager* prerender_manager,
205 Profile* profile, 193 Profile* profile,
206 const GURL& url, 194 const GURL& url,
207 const content::Referrer& referrer, 195 const content::Referrer& referrer,
208 Origin origin) 196 Origin origin)
209 : prerender_mode_(FULL_PRERENDER), 197 : prerender_mode_(FULL_PRERENDER),
210 prerendering_has_started_(false), 198 prerendering_has_started_(false),
211 session_storage_namespace_id_(-1), 199 session_storage_namespace_id_(-1),
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 void PrerenderContents::AddResourceThrottle( 745 void PrerenderContents::AddResourceThrottle(
758 const base::WeakPtr<PrerenderResourceThrottle>& throttle) { 746 const base::WeakPtr<PrerenderResourceThrottle>& throttle) {
759 resource_throttles_.push_back(throttle); 747 resource_throttles_.push_back(throttle);
760 } 748 }
761 749
762 void PrerenderContents::AddNetworkBytes(int64_t bytes) { 750 void PrerenderContents::AddNetworkBytes(int64_t bytes) {
763 network_bytes_ += bytes; 751 network_bytes_ += bytes;
764 } 752 }
765 753
766 } // namespace prerender 754 } // namespace prerender
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_contents.h ('k') | chrome/browser/prerender/prerender_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698