| OLD | NEW |
| 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_EXTENSION_CACHE_IMPL_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_CACHE_IMPL_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_CACHE_IMPL_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_CACHE_IMPL_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
| 13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
| 16 #include "content/public/browser/notification_observer.h" | 16 #include "content/public/browser/notification_observer.h" |
| 17 #include "content/public/browser/notification_registrar.h" | 17 #include "content/public/browser/notification_registrar.h" |
| 18 #include "extensions/browser/updater/extension_cache.h" | 18 #include "extensions/browser/updater/extension_cache.h" |
| 19 | 19 |
| 20 namespace base { |
| 20 template <typename T> struct DefaultSingletonTraits; | 21 template <typename T> struct DefaultSingletonTraits; |
| 22 } |
| 21 | 23 |
| 22 namespace extensions { | 24 namespace extensions { |
| 23 | 25 |
| 24 class ExtensionCacheDelegate; | 26 class ExtensionCacheDelegate; |
| 25 class LocalExtensionCache; | 27 class LocalExtensionCache; |
| 26 | 28 |
| 27 // Singleton call that caches extensions .crx files to share them between | 29 // Singleton call that caches extensions .crx files to share them between |
| 28 // multiple users and profiles on the machine. | 30 // multiple users and profiles on the machine. |
| 29 class ExtensionCacheImpl : public ExtensionCache, | 31 class ExtensionCacheImpl : public ExtensionCache, |
| 30 public content::NotificationObserver { | 32 public content::NotificationObserver { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 74 |
| 73 // Weak factory for callbacks. | 75 // Weak factory for callbacks. |
| 74 base::WeakPtrFactory<ExtensionCacheImpl> weak_ptr_factory_; | 76 base::WeakPtrFactory<ExtensionCacheImpl> weak_ptr_factory_; |
| 75 | 77 |
| 76 DISALLOW_COPY_AND_ASSIGN(ExtensionCacheImpl); | 78 DISALLOW_COPY_AND_ASSIGN(ExtensionCacheImpl); |
| 77 }; | 79 }; |
| 78 | 80 |
| 79 } // namespace extensions | 81 } // namespace extensions |
| 80 | 82 |
| 81 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_CACHE_IMPL_H_ | 83 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_CACHE_IMPL_H_ |
| OLD | NEW |