OLD | NEW |
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_LOCAL_PREDICTOR_H_ | 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_LOCAL_PREDICTOR_H_ |
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_LOCAL_PREDICTOR_H_ | 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_LOCAL_PREDICTOR_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/hash_tables.h" | 10 #include "base/hash_tables.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 EVENT_PRERENDER_URL_LOOKUP_RESULT_IS_HTTP = 16, | 45 EVENT_PRERENDER_URL_LOOKUP_RESULT_IS_HTTP = 16, |
46 EVENT_PRERENDER_URL_LOOKUP_RESULT_HAS_QUERY_STRING = 17, | 46 EVENT_PRERENDER_URL_LOOKUP_RESULT_HAS_QUERY_STRING = 17, |
47 EVENT_PRERENDER_URL_LOOKUP_RESULT_CONTAINS_LOGOUT = 18, | 47 EVENT_PRERENDER_URL_LOOKUP_RESULT_CONTAINS_LOGOUT = 18, |
48 EVENT_PRERENDER_URL_LOOKUP_RESULT_CONTAINS_LOGIN = 19, | 48 EVENT_PRERENDER_URL_LOOKUP_RESULT_CONTAINS_LOGIN = 19, |
49 EVENT_START_URL_LOOKUP = 20, | 49 EVENT_START_URL_LOOKUP = 20, |
50 EVENT_ADD_VISIT_NOT_ROOTPAGE = 21, | 50 EVENT_ADD_VISIT_NOT_ROOTPAGE = 21, |
51 EVENT_URL_WHITELIST_ERROR = 22, | 51 EVENT_URL_WHITELIST_ERROR = 22, |
52 EVENT_URL_WHITELIST_OK = 23, | 52 EVENT_URL_WHITELIST_OK = 23, |
53 EVENT_PRERENDER_URL_LOOKUP_RESULT_ON_WHITELIST = 24, | 53 EVENT_PRERENDER_URL_LOOKUP_RESULT_ON_WHITELIST = 24, |
54 EVENT_PRERENDER_URL_LOOKUP_RESULT_ON_WHITELIST_ROOT_PAGE = 25, | 54 EVENT_PRERENDER_URL_LOOKUP_RESULT_ON_WHITELIST_ROOT_PAGE = 25, |
| 55 EVENT_PRERENDER_URL_LOOKUP_RESULT_EXTENDED_ROOT_PAGE = 26, |
| 56 EVENT_PRERENDER_URL_LOOKUP_RESULT_ROOT_PAGE_HTTP = 27, |
55 EVENT_MAX_VALUE | 57 EVENT_MAX_VALUE |
56 }; | 58 }; |
57 | 59 |
58 // A PrerenderLocalPredictor is owned by the PrerenderManager specified | 60 // A PrerenderLocalPredictor is owned by the PrerenderManager specified |
59 // in the constructor. It will be destoryed at the time its owning | 61 // in the constructor. It will be destoryed at the time its owning |
60 // PrerenderManager is destroyed. | 62 // PrerenderManager is destroyed. |
61 explicit PrerenderLocalPredictor(PrerenderManager* prerender_manager); | 63 explicit PrerenderLocalPredictor(PrerenderManager* prerender_manager); |
62 virtual ~PrerenderLocalPredictor(); | 64 virtual ~PrerenderLocalPredictor(); |
63 | 65 |
64 void Shutdown(); | 66 void Shutdown(); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 scoped_ptr<PrerenderData> last_swapped_in_prerender_; | 109 scoped_ptr<PrerenderData> last_swapped_in_prerender_; |
108 | 110 |
109 base::hash_set<int64> url_whitelist_; | 111 base::hash_set<int64> url_whitelist_; |
110 | 112 |
111 DISALLOW_COPY_AND_ASSIGN(PrerenderLocalPredictor); | 113 DISALLOW_COPY_AND_ASSIGN(PrerenderLocalPredictor); |
112 }; | 114 }; |
113 | 115 |
114 } // namespace prerender | 116 } // namespace prerender |
115 | 117 |
116 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_LOCAL_PREDICTOR_H_ | 118 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_LOCAL_PREDICTOR_H_ |
OLD | NEW |