| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_EXTENSIONS_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 | 134 |
| 135 // Check externally updated extensions for updates and install if necessary. | 135 // Check externally updated extensions for updates and install if necessary. |
| 136 // Errors are reported through ExtensionErrorReporter. | 136 // Errors are reported through ExtensionErrorReporter. |
| 137 // ReportExtensionInstalled is called on success. | 137 // ReportExtensionInstalled is called on success. |
| 138 void CheckForExternalUpdates( | 138 void CheckForExternalUpdates( |
| 139 scoped_refptr<ExtensionsServiceFrontendInterface> frontend); | 139 scoped_refptr<ExtensionsServiceFrontendInterface> frontend); |
| 140 | 140 |
| 141 private: | 141 private: |
| 142 // Load a single extension from |extension_path|, the top directory of | 142 // Load a single extension from |extension_path|, the top directory of |
| 143 // a specific extension where its manifest file lives. | 143 // a specific extension where its manifest file lives. |
| 144 Extension* LoadExtension(const FilePath& extension_path, bool require_id); | 144 Extension* LoadExtension(const FilePath& extension_path); |
| 145 | 145 |
| 146 // Load a single extension from |extension_path|, the top directory of | 146 // Load a single extension from |extension_path|, the top directory of |
| 147 // a versioned extension where its Current Version file lives. | 147 // a versioned extension where its Current Version file lives. |
| 148 Extension* LoadExtensionCurrentVersion(const FilePath& extension_path); | 148 Extension* LoadExtensionCurrentVersion(const FilePath& extension_path); |
| 149 | 149 |
| 150 // Install a crx file at |source_file|. If |expected_id| is not empty, it's | 150 // Install a crx file at |source_file|. If |expected_id| is not empty, it's |
| 151 // verified against the extension's manifest before installation. If the | 151 // verified against the extension's manifest before installation. If the |
| 152 // extension is already installed, install the new version only if its version | 152 // extension is already installed, install the new version only if its version |
| 153 // number is greater than the current installed version. On success, sets | 153 // number is greater than the current installed version. On success, sets |
| 154 // |version_dir| to the versioned directory the extension was installed to and | 154 // |version_dir| to the versioned directory the extension was installed to and |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 // The top-level extensions directory being installed to. | 221 // The top-level extensions directory being installed to. |
| 222 FilePath install_directory_; | 222 FilePath install_directory_; |
| 223 | 223 |
| 224 // Whether errors result in noisy alerts. | 224 // Whether errors result in noisy alerts. |
| 225 bool alert_on_error_; | 225 bool alert_on_error_; |
| 226 | 226 |
| 227 DISALLOW_COPY_AND_ASSIGN(ExtensionsServiceBackend); | 227 DISALLOW_COPY_AND_ASSIGN(ExtensionsServiceBackend); |
| 228 }; | 228 }; |
| 229 | 229 |
| 230 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ | 230 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ |
| OLD | NEW |