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

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

Issue 133993003: Remove prerender::Config::https_allowed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
« no previous file with comments | « chrome/browser/prerender/prerender_contents.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // Obsolete: 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 // Obsolete: 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,
28 FINAL_STATUS_JS_OUT_OF_MEMORY = 13, 28 FINAL_STATUS_JS_OUT_OF_MEMORY = 13,
29 // Obsolete: FINAL_STATUS_RENDERER_UNRESPONSIVE = 14, 29 // Obsolete: FINAL_STATUS_RENDERER_UNRESPONSIVE = 14,
30 FINAL_STATUS_TOO_MANY_PROCESSES = 15, 30 FINAL_STATUS_TOO_MANY_PROCESSES = 15,
31 FINAL_STATUS_RATE_LIMIT_EXCEEDED = 16, 31 FINAL_STATUS_RATE_LIMIT_EXCEEDED = 16,
32 // Obsolete: FINAL_STATUS_PENDING_SKIPPED = 17, 32 // Obsolete: FINAL_STATUS_PENDING_SKIPPED = 17,
33 // Obsolete: FINAL_STATUS_CONTROL_GROUP = 18, 33 // Obsolete: FINAL_STATUS_CONTROL_GROUP = 18,
34 // Obsolete: FINAL_STATUS_HTML5_MEDIA = 19, 34 // Obsolete: FINAL_STATUS_HTML5_MEDIA = 19,
35 // Obsolete: FINAL_STATUS_SOURCE_RENDER_VIEW_CLOSED = 20, 35 // Obsolete: FINAL_STATUS_SOURCE_RENDER_VIEW_CLOSED = 20,
(...skipping 27 matching lines...) Expand all
63 FINAL_STATUS_MAX, 63 FINAL_STATUS_MAX,
64 }; 64 };
65 65
66 // Return a human-readable name for |final_status|. |final_status| 66 // Return a human-readable name for |final_status|. |final_status|
67 // is expected to be a valid value. 67 // is expected to be a valid value.
68 const char* NameFromFinalStatus(FinalStatus final_status); 68 const char* NameFromFinalStatus(FinalStatus final_status);
69 69
70 } // namespace prerender 70 } // namespace prerender
71 71
72 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_FINAL_STATUS_H_ 72 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_FINAL_STATUS_H_
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_contents.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698