| 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 EXTENSIONS_BROWSER_UPDATER_EXTENSION_CACHE_H_ | 5 #ifndef EXTENSIONS_BROWSER_UPDATER_EXTENSION_CACHE_H_ |
| 6 #define EXTENSIONS_BROWSER_UPDATER_EXTENSION_CACHE_H_ | 6 #define EXTENSIONS_BROWSER_UPDATER_EXTENSION_CACHE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/macros.h" |
| 12 | 13 |
| 13 namespace extensions { | 14 namespace extensions { |
| 14 | 15 |
| 15 // ExtensionCache interface that caches extensions .crx files to share them | 16 // ExtensionCache interface that caches extensions .crx files to share them |
| 16 // between multiple users and profiles on the machine. | 17 // between multiple users and profiles on the machine. |
| 17 class ExtensionCache { | 18 class ExtensionCache { |
| 18 public: | 19 public: |
| 19 // Callback that is invoked when the file placed when PutExtension done. | 20 // Callback that is invoked when the file placed when PutExtension done. |
| 20 typedef base::Callback<void(const base::FilePath& file_path, | 21 typedef base::Callback<void(const base::FilePath& file_path, |
| 21 bool file_ownership_passed)> PutExtensionCallback; | 22 bool file_ownership_passed)> PutExtensionCallback; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 const std::string& version, | 57 const std::string& version, |
| 57 const PutExtensionCallback& callback) = 0; | 58 const PutExtensionCallback& callback) = 0; |
| 58 | 59 |
| 59 private: | 60 private: |
| 60 DISALLOW_COPY_AND_ASSIGN(ExtensionCache); | 61 DISALLOW_COPY_AND_ASSIGN(ExtensionCache); |
| 61 }; | 62 }; |
| 62 | 63 |
| 63 } // namespace extensions | 64 } // namespace extensions |
| 64 | 65 |
| 65 #endif // EXTENSIONS_BROWSER_UPDATER_EXTENSION_CACHE_H_ | 66 #endif // EXTENSIONS_BROWSER_UPDATER_EXTENSION_CACHE_H_ |
| OLD | NEW |