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

Side by Side Diff: trunk/src/chrome/browser/chromeos/extensions/external_pref_cache_loader.h

Issue 32513006: Revert 229896 "Cache force-installed apps/extensions in device-l..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_CHROMEOS_EXTENSIONS_EXTERNAL_PREF_CACHE_LOADER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_EXTERNAL_PREF_CACHE_LOADER_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_EXTERNAL_PREF_CACHE_LOADER_H_ 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_EXTERNAL_PREF_CACHE_LOADER_H_
7 7
8 #include "chrome/browser/extensions/external_pref_loader.h" 8 #include "chrome/browser/extensions/external_pref_loader.h"
9 9
10 namespace chromeos { 10 namespace chromeos {
11 11
12 // A specialization of the ExternalPrefLoader that caches crx files for external 12 // A specialization of the ExternalPrefCacheLoader that caches crx files for
13 // extensions with update URL in a common place for all users on the machine. 13 // external extensions with update URL in common place for all users on the
14 // machine.
14 class ExternalPrefCacheLoader : public extensions::ExternalPrefLoader { 15 class ExternalPrefCacheLoader : public extensions::ExternalPrefLoader {
15 public: 16 public:
16 // All instances of ExternalPrefCacheLoader use the same cache so 17 // All instances of ExternalPrefCacheLoader use the same cache so
17 // |base_path_id| must be the same for all profile in session. 18 // |base_path_id| must be the same for all profile in session.
18 // It is checked in run-time with CHECK. 19 // It is checked in run-time with CHECK.
19 explicit ExternalPrefCacheLoader(int base_path_id); 20 explicit ExternalPrefCacheLoader(int base_path_id);
20 21
21 void OnExtensionListsUpdated(const base::DictionaryValue* prefs); 22 void OnExtensionListsUpdated(const base::DictionaryValue* prefs);
22 23
23 private: 24 private:
24 friend class base::RefCountedThreadSafe<ExternalLoader>; 25 friend class base::RefCountedThreadSafe<ExternalLoader>;
25 26
26 virtual ~ExternalPrefCacheLoader(); 27 virtual ~ExternalPrefCacheLoader();
27 28
28 virtual void StartLoading() OVERRIDE; 29 virtual void StartLoading() OVERRIDE;
29 virtual void LoadFinished() OVERRIDE; 30 virtual void LoadFinished() OVERRIDE;
30 31
31 DISALLOW_COPY_AND_ASSIGN(ExternalPrefCacheLoader); 32 DISALLOW_COPY_AND_ASSIGN(ExternalPrefCacheLoader);
32 }; 33 };
33 34
34 } // namespace chromeos 35 } // namespace chromeos
35 36
36 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_EXTERNAL_PREF_CACHE_LOADER_H_ 37 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_EXTERNAL_PREF_CACHE_LOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698