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

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

Issue 550453002: Avoid doing periodic prerender cleanup when there are no contents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update tests Created 6 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
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_MANAGER_H_ 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 // NOTE: New values need to be appended, since they are used in histograms. 82 // NOTE: New values need to be appended, since they are used in histograms.
83 enum PrerenderManagerMode { 83 enum PrerenderManagerMode {
84 PRERENDER_MODE_DISABLED = 0, 84 PRERENDER_MODE_DISABLED = 0,
85 PRERENDER_MODE_ENABLED = 1, 85 PRERENDER_MODE_ENABLED = 1,
86 PRERENDER_MODE_EXPERIMENT_CONTROL_GROUP = 2, 86 PRERENDER_MODE_EXPERIMENT_CONTROL_GROUP = 2,
87 PRERENDER_MODE_EXPERIMENT_PRERENDER_GROUP = 3, 87 PRERENDER_MODE_EXPERIMENT_PRERENDER_GROUP = 3,
88 // Obsolete: PRERENDER_MODE_EXPERIMENT_5MIN_TTL_GROUP = 4, 88 // Obsolete: PRERENDER_MODE_EXPERIMENT_5MIN_TTL_GROUP = 4,
89 PRERENDER_MODE_EXPERIMENT_NO_USE_GROUP = 5, 89 PRERENDER_MODE_EXPERIMENT_NO_USE_GROUP = 5,
90 PRERENDER_MODE_EXPERIMENT_MULTI_PRERENDER_GROUP = 6, 90 PRERENDER_MODE_EXPERIMENT_MULTI_PRERENDER_GROUP = 6,
91 PRERENDER_MODE_EXPERIMENT_15MIN_TTL_GROUP = 7, 91 PRERENDER_MODE_EXPERIMENT_15MIN_TTL_GROUP = 7,
92 PRERENDER_MODE_EXPERIMENT_MATCH_COMPLETE_GROUP = 8,
92 PRERENDER_MODE_MAX 93 PRERENDER_MODE_MAX
93 }; 94 };
94 95
95 // One or more of these flags must be passed to ClearData() to specify just 96 // One or more of these flags must be passed to ClearData() to specify just
96 // what data to clear. See function declaration for more information. 97 // what data to clear. See function declaration for more information.
97 enum ClearFlags { 98 enum ClearFlags {
98 CLEAR_PRERENDER_CONTENTS = 0x1 << 0, 99 CLEAR_PRERENDER_CONTENTS = 0x1 << 0,
99 CLEAR_PRERENDER_HISTORY = 0x1 << 1, 100 CLEAR_PRERENDER_HISTORY = 0x1 << 1,
100 CLEAR_MAX = 0x1 << 2 101 CLEAR_MAX = 0x1 << 2
101 }; 102 };
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 bool cookie_store_loaded_; 736 bool cookie_store_loaded_;
736 737
737 base::Closure on_cookie_store_loaded_cb_for_testing_; 738 base::Closure on_cookie_store_loaded_cb_for_testing_;
738 739
739 DISALLOW_COPY_AND_ASSIGN(PrerenderManager); 740 DISALLOW_COPY_AND_ASSIGN(PrerenderManager);
740 }; 741 };
741 742
742 } // namespace prerender 743 } // namespace prerender
743 744
744 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ 745 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_field_trial.cc ('k') | chrome/browser/prerender/prerender_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698