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

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

Issue 23467011: Record whether navigated to URLs are new or repeat URLs in the history. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 3 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 | « no previous file | chrome/browser/prerender/prerender_local_predictor.cc » ('j') | 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_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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/prerender/prerender_local_predictor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698