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_EXTENSION_SYSTEM_H_ | 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ |
6 #define EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ | 6 #define EXTENSIONS_BROWSER_EXTENSION_SYSTEM_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/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "build/build_config.h" |
12 #include "components/keyed_service/core/keyed_service.h" | 13 #include "components/keyed_service/core/keyed_service.h" |
13 #include "extensions/common/extension.h" | 14 #include "extensions/common/extension.h" |
14 | 15 |
15 #if !defined(ENABLE_EXTENSIONS) | 16 #if !defined(ENABLE_EXTENSIONS) |
16 #error "Extensions must be enabled" | 17 #error "Extensions must be enabled" |
17 #endif | 18 #endif |
18 | 19 |
19 class ExtensionService; | 20 class ExtensionService; |
20 | 21 |
21 #if defined(OS_CHROMEOS) | 22 #if defined(OS_CHROMEOS) |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 // temp_dir. Ownership of |temp_dir| in the filesystem is transferred and | 128 // temp_dir. Ownership of |temp_dir| in the filesystem is transferred and |
128 // implementors of this function are responsible for cleaning it up on | 129 // implementors of this function are responsible for cleaning it up on |
129 // errors, etc. | 130 // errors, etc. |
130 virtual void InstallUpdate(const std::string& extension_id, | 131 virtual void InstallUpdate(const std::string& extension_id, |
131 const base::FilePath& temp_dir) = 0; | 132 const base::FilePath& temp_dir) = 0; |
132 }; | 133 }; |
133 | 134 |
134 } // namespace extensions | 135 } // namespace extensions |
135 | 136 |
136 #endif // EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ | 137 #endif // EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ |
OLD | NEW |