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

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

Issue 2575523002: Prerender: Confirm ServiceWorkers are invoked for NoState Prefetch (Closed)
Patch Set: remove debugging code Created 4 years 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_CONTENTS_H_ 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 291
292 // Needs to be able to call the constructor. 292 // Needs to be able to call the constructor.
293 friend class PrerenderContentsFactoryImpl; 293 friend class PrerenderContentsFactoryImpl;
294 294
295 // Returns the ProcessMetrics for the render process, if it exists. 295 // Returns the ProcessMetrics for the render process, if it exists.
296 base::ProcessMetrics* MaybeGetProcessMetrics(); 296 base::ProcessMetrics* MaybeGetProcessMetrics();
297 297
298 // Message handlers. 298 // Message handlers.
299 void OnCancelPrerenderForPrinting(); 299 void OnCancelPrerenderForPrinting();
300 300
301 // Actually start prerendering after checking for service workers. Should be
302 // called only as part of StartPrerendering();
303 void ContinuePrerenderIfNoServiceWorker(bool has_service_worker);
304
301 base::ObserverList<Observer> observer_list_; 305 base::ObserverList<Observer> observer_list_;
302 306
303 // The prerender manager owning this object. 307 // The prerender manager owning this object.
304 PrerenderManager* prerender_manager_; 308 PrerenderManager* prerender_manager_;
305 309
306 // The URL being prerendered. 310 // The URL being prerendered.
307 GURL prerender_url_; 311 GURL prerender_url_;
308 312
309 // The referrer. 313 // The referrer.
310 content::Referrer referrer_; 314 content::Referrer referrer_;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 AddPageVector add_page_vector_; 363 AddPageVector add_page_vector_;
360 364
361 // Resources that are throttled, pending a prerender use. Can only access a 365 // Resources that are throttled, pending a prerender use. Can only access a
362 // throttle on the IO thread. 366 // throttle on the IO thread.
363 std::vector<base::WeakPtr<PrerenderResourceThrottle> > resource_throttles_; 367 std::vector<base::WeakPtr<PrerenderResourceThrottle> > resource_throttles_;
364 368
365 // A running tally of the number of bytes this prerender has caused to be 369 // A running tally of the number of bytes this prerender has caused to be
366 // transferred over the network for resources. Updated with AddNetworkBytes. 370 // transferred over the network for resources. Updated with AddNetworkBytes.
367 int64_t network_bytes_; 371 int64_t network_bytes_;
368 372
373 base::WeakPtrFactory<PrerenderContents> weak_factory_;
374
369 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); 375 DISALLOW_COPY_AND_ASSIGN(PrerenderContents);
370 }; 376 };
371 377
372 } // namespace prerender 378 } // namespace prerender
373 379
374 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ 380 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/prerender/prerender_contents.cc » ('j') | chrome/browser/prerender/prerender_contents.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698