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

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

Issue 2691263002: Revert of Remove header dependencies from sequence_checker.h to sequenced_worker_pool.h (Closed)
Patch Set: Created 3 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_LOCAL_EXTENSION_CACHE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_UPDATER_LOCAL_EXTENSION_CACHE_H_
6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_LOCAL_EXTENSION_CACHE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_LOCAL_EXTENSION_CACHE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <map> 11 #include <map>
12 #include <memory> 12 #include <memory>
13 #include <string> 13 #include <string>
14 14
15 #include "base/callback_forward.h" 15 #include "base/callback_forward.h"
16 #include "base/files/file_path.h" 16 #include "base/files/file_path.h"
17 #include "base/macros.h" 17 #include "base/macros.h"
18 #include "base/memory/weak_ptr.h" 18 #include "base/memory/weak_ptr.h"
19 #include "base/time/time.h" 19 #include "base/time/time.h"
20 20
21 namespace base {
22 class SequencedTaskRunner;
23 }
24
25 namespace extensions { 21 namespace extensions {
26 22
27 // Cache .crx files in some local dir for future use. Cache keeps only latest 23 // Cache .crx files in some local dir for future use. Cache keeps only latest
28 // version of the extensions. Only one instance of LocalExtensionCache can work 24 // version of the extensions. Only one instance of LocalExtensionCache can work
29 // with the same directory. But LocalExtensionCache instance can be shared 25 // with the same directory. But LocalExtensionCache instance can be shared
30 // between multiple clients. Public interface can be used only from UI thread. 26 // between multiple clients. Public interface can be used only from UI thread.
31 class LocalExtensionCache { 27 class LocalExtensionCache {
32 public: 28 public:
33 // Callback invoked on UI thread when PutExtension is completed. 29 // Callback invoked on UI thread when PutExtension is completed.
34 typedef base::Callback<void(const base::FilePath& file_path, 30 typedef base::Callback<void(const base::FilePath& file_path,
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 271
276 // Weak factory for callbacks from the backend and delayed tasks. 272 // Weak factory for callbacks from the backend and delayed tasks.
277 base::WeakPtrFactory<LocalExtensionCache> weak_ptr_factory_; 273 base::WeakPtrFactory<LocalExtensionCache> weak_ptr_factory_;
278 274
279 DISALLOW_COPY_AND_ASSIGN(LocalExtensionCache); 275 DISALLOW_COPY_AND_ASSIGN(LocalExtensionCache);
280 }; 276 };
281 277
282 } // namespace extensions 278 } // namespace extensions
283 279
284 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_LOCAL_EXTENSION_CACHE_H_ 280 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_LOCAL_EXTENSION_CACHE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_gcm_app_handler_unittest.cc ('k') | chrome/browser/favicon/large_icon_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698