| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 ~ExtensionsService(); | 56 ~ExtensionsService(); |
| 57 | 57 |
| 58 // Gets the list of currently installed extensions. | 58 // Gets the list of currently installed extensions. |
| 59 const ExtensionList* extensions() const { | 59 const ExtensionList* extensions() const { |
| 60 return &extensions_; | 60 return &extensions_; |
| 61 } | 61 } |
| 62 | 62 |
| 63 // Initialize and start all installed extensions. | 63 // Initialize and start all installed extensions. |
| 64 bool Init(); | 64 bool Init(); |
| 65 | 65 |
| 66 // Start the extension process for this extension. TODO(mpcomplete): not sure | |
| 67 // how this should actually work yet. | |
| 68 void LaunchExtensionProcess(Extension* extension); | |
| 69 | |
| 70 // ExtensionsServiceFrontendInterface | 66 // ExtensionsServiceFrontendInterface |
| 71 virtual MessageLoop* GetMessageLoop(); | 67 virtual MessageLoop* GetMessageLoop(); |
| 72 virtual void InstallExtension(const FilePath& extension_path); | 68 virtual void InstallExtension(const FilePath& extension_path); |
| 73 virtual void LoadExtension(const FilePath& extension_path); | 69 virtual void LoadExtension(const FilePath& extension_path); |
| 74 virtual void OnExtensionsLoaded(ExtensionList* extensions); | 70 virtual void OnExtensionsLoaded(ExtensionList* extensions); |
| 75 virtual void OnExtensionInstalled(FilePath path, bool is_update); | 71 virtual void OnExtensionInstalled(FilePath path, bool is_update); |
| 76 | 72 |
| 77 // The name of the file that the current active version number is stored in. | 73 // The name of the file that the current active version number is stored in. |
| 78 static const char* kCurrentVersionFileName; | 74 static const char* kCurrentVersionFileName; |
| 79 | 75 |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 // The top-level extensions directory being installed to. | 221 // The top-level extensions directory being installed to. |
| 226 FilePath install_directory_; | 222 FilePath install_directory_; |
| 227 | 223 |
| 228 // Whether errors result in noisy alerts. | 224 // Whether errors result in noisy alerts. |
| 229 bool alert_on_error_; | 225 bool alert_on_error_; |
| 230 | 226 |
| 231 DISALLOW_COPY_AND_ASSIGN(ExtensionsServiceBackend); | 227 DISALLOW_COPY_AND_ASSIGN(ExtensionsServiceBackend); |
| 232 }; | 228 }; |
| 233 | 229 |
| 234 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ | 230 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ |
| OLD | NEW |