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

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

Issue 612423003: Move ExtensionCache to //extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test setup Created 6 years, 2 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_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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // hasn't been performed yet. This is used mostly by tests; calling 118 // hasn't been performed yet. This is used mostly by tests; calling
119 // code should just call CheckSoon(). 119 // code should just call CheckSoon().
120 bool WillCheckSoon() const; 120 bool WillCheckSoon() const;
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.
129 void SetExtensionCacheForTesting(ExtensionCache* extension_cache);
130
128 private: 131 private:
129 friend class ExtensionUpdaterTest; 132 friend class ExtensionUpdaterTest;
130 friend class ExtensionUpdaterFileHandler; 133 friend class ExtensionUpdaterFileHandler;
131 134
132 // FetchedCRXFile holds information about a CRX file we fetched to disk, 135 // FetchedCRXFile holds information about a CRX file we fetched to disk,
133 // but have not yet installed. 136 // but have not yet installed.
134 struct FetchedCRXFile { 137 struct FetchedCRXFile {
135 FetchedCRXFile(); 138 FetchedCRXFile();
136 FetchedCRXFile(const std::string& id, 139 FetchedCRXFile(const std::string& id,
137 const base::FilePath& path, 140 const base::FilePath& path,
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 std::set<std::string> forced_updates_; 292 std::set<std::string> forced_updates_;
290 293
291 base::WeakPtrFactory<ExtensionUpdater> weak_ptr_factory_; 294 base::WeakPtrFactory<ExtensionUpdater> weak_ptr_factory_;
292 295
293 DISALLOW_COPY_AND_ASSIGN(ExtensionUpdater); 296 DISALLOW_COPY_AND_ASSIGN(ExtensionUpdater);
294 }; 297 };
295 298
296 } // namespace extensions 299 } // namespace extensions
297 300
298 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_UPDATER_H_ 301 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_UPDATER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/updater/extension_downloader.cc ('k') | chrome/browser/extensions/updater/extension_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698