| 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 <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 EVENT_PRERENDER_SERVICE_NO_RECORD_FOR_RESULT = 61, | 111 EVENT_PRERENDER_SERVICE_NO_RECORD_FOR_RESULT = 61, |
| 112 EVENT_PRERENDER_SERVICE_PARSED_CORRECTLY = 62, | 112 EVENT_PRERENDER_SERVICE_PARSED_CORRECTLY = 62, |
| 113 EVENT_PRERENDER_SERVICE_PARSE_ERROR = 63, | 113 EVENT_PRERENDER_SERVICE_PARSE_ERROR = 63, |
| 114 EVENT_PRERENDER_SERVICE_PARSE_ERROR_INCORRECT_JSON = 64, | 114 EVENT_PRERENDER_SERVICE_PARSE_ERROR_INCORRECT_JSON = 64, |
| 115 EVENT_PRERENDER_SERVICE_HINTING_TIMED_OUT = 65, | 115 EVENT_PRERENDER_SERVICE_HINTING_TIMED_OUT = 65, |
| 116 EVENT_PRERENDER_SERVICE_HINTING_URL_LOOKUP_TIMED_OUT = 66, | 116 EVENT_PRERENDER_SERVICE_HINTING_URL_LOOKUP_TIMED_OUT = 66, |
| 117 EVENT_PRERENDER_SERVICE_CANDIDATE_URL_LOOKUP_TIMED_OUT = 67, | 117 EVENT_PRERENDER_SERVICE_CANDIDATE_URL_LOOKUP_TIMED_OUT = 67, |
| 118 EVENT_CONTINUE_PRERENDER_CHECK_ON_SERVICE_WHITELIST = 68, | 118 EVENT_CONTINUE_PRERENDER_CHECK_ON_SERVICE_WHITELIST = 68, |
| 119 EVENT_CONTINUE_PRERENDER_CHECK_EXAMINE_NEXT_URL_LOCAL = 69, | 119 EVENT_CONTINUE_PRERENDER_CHECK_EXAMINE_NEXT_URL_LOCAL = 69, |
| 120 EVENT_CONTINUE_PRERENDER_CHECK_EXAMINE_NEXT_URL_SERVICE = 70, | 120 EVENT_CONTINUE_PRERENDER_CHECK_EXAMINE_NEXT_URL_SERVICE = 70, |
| 121 EVENT_ADD_VISIT_RELEVANT_TRANSITION_REPEAT_URL = 71, |
| 122 EVENT_ADD_VISIT_RELEVANT_TRANSITION_NEW_URL = 72, |
| 121 EVENT_MAX_VALUE | 123 EVENT_MAX_VALUE |
| 122 }; | 124 }; |
| 123 | 125 |
| 124 // A PrerenderLocalPredictor is owned by the PrerenderManager specified | 126 // A PrerenderLocalPredictor is owned by the PrerenderManager specified |
| 125 // in the constructor. It will be destoryed at the time its owning | 127 // in the constructor. It will be destoryed at the time its owning |
| 126 // PrerenderManager is destroyed. | 128 // PrerenderManager is destroyed. |
| 127 explicit PrerenderLocalPredictor(PrerenderManager* prerender_manager); | 129 explicit PrerenderLocalPredictor(PrerenderManager* prerender_manager); |
| 128 virtual ~PrerenderLocalPredictor(); | 130 virtual ~PrerenderLocalPredictor(); |
| 129 | 131 |
| 130 void Shutdown(); | 132 void Shutdown(); |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 base::hash_set<int64> url_whitelist_; | 207 base::hash_set<int64> url_whitelist_; |
| 206 | 208 |
| 207 base::WeakPtrFactory<PrerenderLocalPredictor> weak_factory_; | 209 base::WeakPtrFactory<PrerenderLocalPredictor> weak_factory_; |
| 208 | 210 |
| 209 DISALLOW_COPY_AND_ASSIGN(PrerenderLocalPredictor); | 211 DISALLOW_COPY_AND_ASSIGN(PrerenderLocalPredictor); |
| 210 }; | 212 }; |
| 211 | 213 |
| 212 } // namespace prerender | 214 } // namespace prerender |
| 213 | 215 |
| 214 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_LOCAL_PREDICTOR_H_ | 216 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_LOCAL_PREDICTOR_H_ |
| OLD | NEW |