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

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

Issue 11551003: Change multi-prerender API to include per launcher slots. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: surprising test deflake Created 8 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 | 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_FINAL_STATUS_H_ 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_FINAL_STATUS_H_
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_FINAL_STATUS_H_ 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_FINAL_STATUS_H_
7 7
8 #include "chrome/browser/prerender/prerender_origin.h" 8 #include "chrome/browser/prerender/prerender_origin.h"
9 9
10 namespace prerender { 10 namespace prerender {
11 11
12 // FinalStatus indicates whether |this| was used, or why it was cancelled. 12 // FinalStatus indicates whether |this| was used, or why it was cancelled.
13 // NOTE: New values need to be appended, since they are used in histograms. 13 // NOTE: New values need to be appended, since they are used in histograms.
14 enum FinalStatus { 14 enum FinalStatus {
15 FINAL_STATUS_USED = 0, 15 FINAL_STATUS_USED = 0,
16 FINAL_STATUS_TIMED_OUT = 1, 16 FINAL_STATUS_TIMED_OUT = 1,
17 FINAL_STATUS_EVICTED = 2, 17 // Obsolete: FINAL_STATUS_EVICTED = 2,
18 FINAL_STATUS_MANAGER_SHUTDOWN = 3, 18 FINAL_STATUS_MANAGER_SHUTDOWN = 3,
19 // Obsolete: FINAL_STATUS_CLOSED = 4 19 // Obsolete: FINAL_STATUS_CLOSED = 4
20 FINAL_STATUS_CREATE_NEW_WINDOW = 5, 20 FINAL_STATUS_CREATE_NEW_WINDOW = 5,
21 FINAL_STATUS_PROFILE_DESTROYED = 6, 21 FINAL_STATUS_PROFILE_DESTROYED = 6,
22 FINAL_STATUS_APP_TERMINATING = 7, 22 FINAL_STATUS_APP_TERMINATING = 7,
23 FINAL_STATUS_JAVASCRIPT_ALERT = 8, 23 FINAL_STATUS_JAVASCRIPT_ALERT = 8,
24 FINAL_STATUS_AUTH_NEEDED = 9, 24 FINAL_STATUS_AUTH_NEEDED = 9,
25 FINAL_STATUS_HTTPS = 10, 25 FINAL_STATUS_HTTPS = 10,
26 FINAL_STATUS_DOWNLOAD = 11, 26 FINAL_STATUS_DOWNLOAD = 11,
27 FINAL_STATUS_MEMORY_LIMIT_EXCEEDED = 12, 27 FINAL_STATUS_MEMORY_LIMIT_EXCEEDED = 12,
(...skipping 30 matching lines...) Expand all
58 FINAL_STATUS_MAX, 58 FINAL_STATUS_MAX,
59 }; 59 };
60 60
61 // Return a human-readable name for |final_status|. |final_status| 61 // Return a human-readable name for |final_status|. |final_status|
62 // is expected to be a valid value. 62 // is expected to be a valid value.
63 const char* NameFromFinalStatus(FinalStatus final_status); 63 const char* NameFromFinalStatus(FinalStatus final_status);
64 64
65 } // namespace prerender 65 } // namespace prerender
66 66
67 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_FINAL_STATUS_H_ 67 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_FINAL_STATUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698