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

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

Issue 7015026: Cancel prerenders for pages that call window.print() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_OBSERVER_H_
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_OBSERVER_H_ 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_OBSERVER_H_
7 #pragma once
8 7
9 #include <list> 8 #include "content/browser/tab_contents/tab_contents_observer.h"
10 #include <vector>
11 9
12 #include "base/memory/scoped_ptr.h"
13 #include "base/time.h" 10 #include "base/time.h"
14 #include "content/browser/tab_contents/tab_contents_observer.h"
15 #include "googleurl/src/gurl.h"
16 11
17 class PrerenderContents;
18 class Profile;
19 class TabContents; 12 class TabContents;
13 class GURL;
20 14
21 namespace prerender { 15 namespace prerender {
22 16
17 class PrerenderContents;
23 class PrerenderManager; 18 class PrerenderManager;
24 19
25 // PrerenderObserver is responsible for recording perceived pageload times 20 // PrerenderObserver is responsible for recording perceived pageload times
26 // to compare PLT's with prerendering enabled and disabled. 21 // to compare PLT's with prerendering enabled and disabled.
27 class PrerenderObserver : public TabContentsObserver { 22 class PrerenderObserver : public TabContentsObserver {
28 public: 23 public:
29 explicit PrerenderObserver(TabContents* tab_contents); 24 explicit PrerenderObserver(TabContents* tab_contents);
30 virtual ~PrerenderObserver(); 25 virtual ~PrerenderObserver();
31 26
32 // TabContentsObserver implementation. 27 // TabContentsObserver implementation.
(...skipping 21 matching lines...) Expand all
54 // System time at which the current load was started for the purpose of 49 // System time at which the current load was started for the purpose of
55 // the perceived page load time (PPLT). 50 // the perceived page load time (PPLT).
56 base::TimeTicks pplt_load_start_; 51 base::TimeTicks pplt_load_start_;
57 52
58 DISALLOW_COPY_AND_ASSIGN(PrerenderObserver); 53 DISALLOW_COPY_AND_ASSIGN(PrerenderObserver);
59 }; 54 };
60 55
61 } // namespace prerender 56 } // namespace prerender
62 57
63 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_OBSERVER_H_ 58 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_final_status.h ('k') | chrome/browser/prerender/prerender_render_view_host_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698