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

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

Issue 6459005: Cancel prerender when we discover a download starting from a page we are prer... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Adding browser test Created 9 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 | 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_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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 FINAL_STATUS_USED, 43 FINAL_STATUS_USED,
44 FINAL_STATUS_TIMED_OUT, 44 FINAL_STATUS_TIMED_OUT,
45 FINAL_STATUS_EVICTED, 45 FINAL_STATUS_EVICTED,
46 FINAL_STATUS_MANAGER_SHUTDOWN, 46 FINAL_STATUS_MANAGER_SHUTDOWN,
47 FINAL_STATUS_CLOSED, 47 FINAL_STATUS_CLOSED,
48 FINAL_STATUS_CREATE_NEW_WINDOW, 48 FINAL_STATUS_CREATE_NEW_WINDOW,
49 FINAL_STATUS_PROFILE_DESTROYED, 49 FINAL_STATUS_PROFILE_DESTROYED,
50 FINAL_STATUS_APP_TERMINATING, 50 FINAL_STATUS_APP_TERMINATING,
51 FINAL_STATUS_JAVASCRIPT_ALERT, 51 FINAL_STATUS_JAVASCRIPT_ALERT,
52 FINAL_STATUS_AUTH_NEEDED, 52 FINAL_STATUS_AUTH_NEEDED,
53 FINAL_STATUS_DOWNLOAD,
53 FINAL_STATUS_MAX, 54 FINAL_STATUS_MAX,
54 }; 55 };
55 56
56 // PrerenderContents::Create uses the currently registered Factory to create 57 // PrerenderContents::Create uses the currently registered Factory to create
57 // the PrerenderContents. Factory is intended for testing. 58 // the PrerenderContents. Factory is intended for testing.
58 class Factory { 59 class Factory {
59 public: 60 public:
60 Factory() {} 61 Factory() {}
61 virtual ~Factory() {} 62 virtual ~Factory() {}
62 63
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 244
244 // Time at which we started to load the URL. This is used to compute 245 // Time at which we started to load the URL. This is used to compute
245 // the time elapsed from initiating a prerender until the time the 246 // the time elapsed from initiating a prerender until the time the
246 // (potentially only partially) prerendered page is shown to the user. 247 // (potentially only partially) prerendered page is shown to the user.
247 base::TimeTicks load_start_time_; 248 base::TimeTicks load_start_time_;
248 249
249 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); 250 DISALLOW_COPY_AND_ASSIGN(PrerenderContents);
250 }; 251 };
251 252
252 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ 253 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698