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

Side by Side Diff: chrome/browser/extensions/updater/extension_updater.h

Issue 706623004: Add minimum version to extension management (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ext-update-url
Patch Set: fixes addressing #44 Created 6 years 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_EXTENSIONS_UPDATER_EXTENSION_UPDATER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_UPDATER_H_
6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_UPDATER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_UPDATER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 // Changes the params that are used for the automatic periodic update checks, 122 // Changes the params that are used for the automatic periodic update checks,
123 // as well as for explicit calls to CheckSoon. 123 // as well as for explicit calls to CheckSoon.
124 void set_default_check_params(const CheckParams& params) { 124 void set_default_check_params(const CheckParams& params) {
125 default_params_ = params; 125 default_params_ = params;
126 } 126 }
127 127
128 // Overrides the extension cache with |extension_cache| for testing. 128 // Overrides the extension cache with |extension_cache| for testing.
129 void SetExtensionCacheForTesting(ExtensionCache* extension_cache); 129 void SetExtensionCacheForTesting(ExtensionCache* extension_cache);
130 130
131 // Stop the timer to prevent scheduled updates for testing.
132 void StopTimerForTesting();
133
131 private: 134 private:
132 friend class ExtensionUpdaterTest; 135 friend class ExtensionUpdaterTest;
133 friend class ExtensionUpdaterFileHandler; 136 friend class ExtensionUpdaterFileHandler;
134 137
135 // FetchedCRXFile holds information about a CRX file we fetched to disk, 138 // FetchedCRXFile holds information about a CRX file we fetched to disk,
136 // but have not yet installed. 139 // but have not yet installed.
137 struct FetchedCRXFile { 140 struct FetchedCRXFile {
138 FetchedCRXFile(); 141 FetchedCRXFile();
139 FetchedCRXFile(const std::string& id, 142 FetchedCRXFile(const std::string& id,
140 const base::FilePath& path, 143 const base::FilePath& path,
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 std::set<std::string> forced_updates_; 291 std::set<std::string> forced_updates_;
289 292
290 base::WeakPtrFactory<ExtensionUpdater> weak_ptr_factory_; 293 base::WeakPtrFactory<ExtensionUpdater> weak_ptr_factory_;
291 294
292 DISALLOW_COPY_AND_ASSIGN(ExtensionUpdater); 295 DISALLOW_COPY_AND_ASSIGN(ExtensionUpdater);
293 }; 296 };
294 297
295 } // namespace extensions 298 } // namespace extensions
296 299
297 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_UPDATER_H_ 300 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_UPDATER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698