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

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

Issue 15080009: Enable the side-effect free whitelist and use it for local browsing based (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 7 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
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 <vector> 8 #include <vector>
9 9
10 #include "base/hash_tables.h" 10 #include "base/hash_tables.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 EVENT_CONTINUE_PRERENDER_CHECK_NOT_LOGGED_IN = 40, 82 EVENT_CONTINUE_PRERENDER_CHECK_NOT_LOGGED_IN = 40,
83 EVENT_CONTINUE_PRERENDER_CHECK_FALLTHROUGH_NOT_PRERENDERING = 41, 83 EVENT_CONTINUE_PRERENDER_CHECK_FALLTHROUGH_NOT_PRERENDERING = 41,
84 EVENT_CONTINUE_PRERENDER_CHECK_ISSUING_PRERENDER = 42, 84 EVENT_CONTINUE_PRERENDER_CHECK_ISSUING_PRERENDER = 42,
85 EVENT_ISSUING_PRERENDER = 43, 85 EVENT_ISSUING_PRERENDER = 43,
86 EVENT_NO_PRERENDER_CANDIDATES = 44, 86 EVENT_NO_PRERENDER_CANDIDATES = 44,
87 EVENT_GOT_HISTORY_ISSUING_LOOKUP = 45, 87 EVENT_GOT_HISTORY_ISSUING_LOOKUP = 45,
88 EVENT_TAB_HELPER_URL_SEEN = 46, 88 EVENT_TAB_HELPER_URL_SEEN = 46,
89 EVENT_TAB_HELPER_URL_SEEN_MATCH = 47, 89 EVENT_TAB_HELPER_URL_SEEN_MATCH = 47,
90 EVENT_TAB_HELPER_URL_SEEN_NAMESPACE_MATCH = 48, 90 EVENT_TAB_HELPER_URL_SEEN_NAMESPACE_MATCH = 48,
91 EVENT_PRERENDER_URL_LOOKUP_MULTIPLE_SOURCE_WEBCONTENTS_FOUND = 49, 91 EVENT_PRERENDER_URL_LOOKUP_MULTIPLE_SOURCE_WEBCONTENTS_FOUND = 49,
92 EVENT_CONTINUE_PRERENDER_CHECK_ON_SIDE_EFFECT_FREE_WHITELIST = 50,
92 EVENT_MAX_VALUE 93 EVENT_MAX_VALUE
93 }; 94 };
94 95
95 // A PrerenderLocalPredictor is owned by the PrerenderManager specified 96 // A PrerenderLocalPredictor is owned by the PrerenderManager specified
96 // in the constructor. It will be destoryed at the time its owning 97 // in the constructor. It will be destoryed at the time its owning
97 // PrerenderManager is destroyed. 98 // PrerenderManager is destroyed.
98 explicit PrerenderLocalPredictor(PrerenderManager* prerender_manager); 99 explicit PrerenderLocalPredictor(PrerenderManager* prerender_manager);
99 virtual ~PrerenderLocalPredictor(); 100 virtual ~PrerenderLocalPredictor();
100 101
101 void Shutdown(); 102 void Shutdown();
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // that could have possibily been swapped in were not swapped in. For 168 // that could have possibily been swapped in were not swapped in. For
168 // measurement purposes only. 169 // measurement purposes only.
169 bool current_prerender_would_have_matched_; 170 bool current_prerender_would_have_matched_;
170 171
171 DISALLOW_COPY_AND_ASSIGN(PrerenderLocalPredictor); 172 DISALLOW_COPY_AND_ASSIGN(PrerenderLocalPredictor);
172 }; 173 };
173 174
174 } // namespace prerender 175 } // namespace prerender
175 176
176 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_LOCAL_PREDICTOR_H_ 177 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_LOCAL_PREDICTOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_field_trial.cc ('k') | chrome/browser/prerender/prerender_local_predictor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698