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

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

Issue 10829090: Removing prerender dead code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_ 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_ 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_
7 7
8 #include "base/time.h" 8 #include "base/time.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "content/public/browser/web_contents_observer.h" 10 #include "content/public/browser/web_contents_observer.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 // Retrieves the PrerenderManager, or NULL, if none was found. 54 // Retrieves the PrerenderManager, or NULL, if none was found.
55 PrerenderManager* MaybeGetPrerenderManager() const; 55 PrerenderManager* MaybeGetPrerenderManager() const;
56 56
57 // Returns whether the WebContents being observed is currently prerendering. 57 // Returns whether the WebContents being observed is currently prerendering.
58 bool IsPrerendering(); 58 bool IsPrerendering();
59 59
60 // Returns whether the WebContents being observed was prerendered. 60 // Returns whether the WebContents being observed was prerendered.
61 bool IsPrerendered(); 61 bool IsPrerendered();
62 62
63 // TabContents we're created for.
64 TabContents* tab_;
65
66 // System time at which the current load was started for the purpose of 63 // System time at which the current load was started for the purpose of
67 // the perceived page load time (PPLT). 64 // the perceived page load time (PPLT).
68 base::TimeTicks pplt_load_start_; 65 base::TimeTicks pplt_load_start_;
69 66
70 // System time at which the actual pageload started (pre-swapin), if 67 // System time at which the actual pageload started (pre-swapin), if
71 // a applicable (in cases when a prerender that was still loading was 68 // a applicable (in cases when a prerender that was still loading was
72 // swapped in). 69 // swapped in).
73 base::TimeTicks actual_load_start_; 70 base::TimeTicks actual_load_start_;
74 71
75 // Current URL being loaded. 72 // Current URL being loaded.
76 GURL url_; 73 GURL url_;
77 74
78 DISALLOW_COPY_AND_ASSIGN(PrerenderTabHelper); 75 DISALLOW_COPY_AND_ASSIGN(PrerenderTabHelper);
79 }; 76 };
80 77
81 } // namespace prerender 78 } // namespace prerender
82 79
83 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_ 80 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_manager.cc ('k') | chrome/browser/prerender/prerender_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698