| OLD | NEW | 
|    1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |    1 // Copyright (c) 2012 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_EXTENSION_SERVICE_H_ |    5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 
|    6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |    6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 
|    7  |    7  | 
|    8 #include <list> |    8 #include <list> | 
|    9 #include <map> |    9 #include <map> | 
|   10 #include <set> |   10 #include <set> | 
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  192                         const std::string& successor_extension_id); |  192                         const std::string& successor_extension_id); | 
|  193  |  193  | 
|  194   // Getter and setter for the flag that specifies whether the extension is |  194   // Getter and setter for the flag that specifies whether the extension is | 
|  195   // being reloaded. |  195   // being reloaded. | 
|  196   bool IsBeingReloaded(const std::string& extension_id) const; |  196   bool IsBeingReloaded(const std::string& extension_id) const; | 
|  197   void SetBeingReloaded(const std::string& extension_id, bool value); |  197   void SetBeingReloaded(const std::string& extension_id, bool value); | 
|  198  |  198  | 
|  199   // Initialize and start all installed extensions. |  199   // Initialize and start all installed extensions. | 
|  200   void Init(); |  200   void Init(); | 
|  201  |  201  | 
|  202   // Attempts to verify all extensions using the InstallVerifier. The |  202   // Attempts to verify all extensions using the InstallVerifier. | 
|  203   // |bootstrap| parameter indicates whether we're doing this because the |  203   void VerifyAllExtensions(); | 
|  204   // InstallVerifier needed to be bootstrapped (otherwise it's for another |  | 
|  205   // reason, e.g. extension install/uninstall). |  | 
|  206   void VerifyAllExtensions(bool bootstrap); |  | 
|  207  |  204  | 
|  208   // Once the verifier work is finished, we may want to re-check management |  205   // Once the verifier work is finished, we may want to re-check management | 
|  209   // policy if |success| indicates the verifier got a new signature back. |  206   // policy if |success| indicates the verifier got a new signature back. | 
|  210   void FinishVerifyAllExtensions(bool bootstrap, bool success); |  207   void FinishVerifyAllExtensions(bool success); | 
|  211  |  208  | 
|  212   // Called when the associated Profile is going to be destroyed. |  209   // Called when the associated Profile is going to be destroyed. | 
|  213   void Shutdown(); |  210   void Shutdown(); | 
|  214  |  211  | 
|  215   // Look up an extension by ID. Does not include terminated |  212   // Look up an extension by ID. Does not include terminated | 
|  216   // extensions. |  213   // extensions. | 
|  217   virtual const extensions::Extension* GetExtensionById( |  214   virtual const extensions::Extension* GetExtensionById( | 
|  218       const std::string& id, bool include_disabled) const OVERRIDE; |  215       const std::string& id, bool include_disabled) const OVERRIDE; | 
|  219  |  216  | 
|  220   // Returns the site of the given |extension_id|. Suitable for use with |  217   // Returns the site of the given |extension_id|. Suitable for use with | 
| (...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  854   FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |  851   FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 
|  855                            GreylistedExtensionDisabled); |  852                            GreylistedExtensionDisabled); | 
|  856   FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |  853   FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 
|  857                            GreylistDontEnableManuallyDisabled); |  854                            GreylistDontEnableManuallyDisabled); | 
|  858   FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |  855   FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 
|  859                            GreylistUnknownDontChange); |  856                            GreylistUnknownDontChange); | 
|  860   DISALLOW_COPY_AND_ASSIGN(ExtensionService); |  857   DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 
|  861 }; |  858 }; | 
|  862  |  859  | 
|  863 #endif  // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |  860 #endif  // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 
| OLD | NEW |