| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/command_line.h" |
| 13 #include "base/file_path.h" | 14 #include "base/file_path.h" |
| 14 #include "base/linked_ptr.h" | 15 #include "base/linked_ptr.h" |
| 15 #include "base/ref_counted.h" | 16 #include "base/ref_counted.h" |
| 16 #include "base/tuple.h" | 17 #include "base/tuple.h" |
| 17 #include "base/values.h" | 18 #include "base/values.h" |
| 18 #include "chrome/browser/extensions/extension_prefs.h" | 19 #include "chrome/browser/extensions/extension_prefs.h" |
| 19 #include "chrome/browser/extensions/external_extension_provider.h" | 20 #include "chrome/browser/extensions/external_extension_provider.h" |
| 20 #include "chrome/common/extensions/extension.h" | 21 #include "chrome/common/extensions/extension.h" |
| 21 | 22 |
| 22 class Browser; | 23 class Browser; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 struct ExtensionHeader { | 66 struct ExtensionHeader { |
| 66 char magic[kExtensionHeaderMagicSize]; | 67 char magic[kExtensionHeaderMagicSize]; |
| 67 uint32 version; | 68 uint32 version; |
| 68 size_t key_size; // The size of the public key, in bytes. | 69 size_t key_size; // The size of the public key, in bytes. |
| 69 size_t signature_size; // The size of the signature, in bytes. | 70 size_t signature_size; // The size of the signature, in bytes. |
| 70 // An ASN.1-encoded PublicKeyInfo structure follows. | 71 // An ASN.1-encoded PublicKeyInfo structure follows. |
| 71 // The signature follows. | 72 // The signature follows. |
| 72 }; | 73 }; |
| 73 | 74 |
| 74 ExtensionsService(Profile* profile, | 75 ExtensionsService(Profile* profile, |
| 76 const CommandLine* command_line, |
| 75 MessageLoop* frontend_loop, | 77 MessageLoop* frontend_loop, |
| 76 MessageLoop* backend_loop); | 78 MessageLoop* backend_loop); |
| 77 ~ExtensionsService(); | 79 ~ExtensionsService(); |
| 78 | 80 |
| 79 // Gets the list of currently installed extensions. | 81 // Gets the list of currently installed extensions. |
| 80 const ExtensionList* extensions() const { | 82 const ExtensionList* extensions() const { |
| 81 return &extensions_; | 83 return &extensions_; |
| 82 } | 84 } |
| 83 | 85 |
| 84 // Initialize and start all installed extensions. | 86 // Initialize and start all installed extensions. |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 | 411 |
| 410 // A map of all external extension providers. | 412 // A map of all external extension providers. |
| 411 typedef std::map<Extension::Location, | 413 typedef std::map<Extension::Location, |
| 412 linked_ptr<ExternalExtensionProvider> > ProviderMap; | 414 linked_ptr<ExternalExtensionProvider> > ProviderMap; |
| 413 ProviderMap external_extension_providers_; | 415 ProviderMap external_extension_providers_; |
| 414 | 416 |
| 415 DISALLOW_COPY_AND_ASSIGN(ExtensionsServiceBackend); | 417 DISALLOW_COPY_AND_ASSIGN(ExtensionsServiceBackend); |
| 416 }; | 418 }; |
| 417 | 419 |
| 418 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ | 420 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ |
| OLD | NEW |