| 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_SYNC_TEST_INTEGRATION_EXTENSIONS_HELPER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_EXTENSIONS_HELPER_H_ |
| 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_EXTENSIONS_HELPER_H_ | 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_EXTENSIONS_HELPER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 ExtensionsMatchChecker(); | 94 ExtensionsMatchChecker(); |
| 95 ~ExtensionsMatchChecker() override; | 95 ~ExtensionsMatchChecker() override; |
| 96 | 96 |
| 97 // StatusChangeChecker implementation. | 97 // StatusChangeChecker implementation. |
| 98 std::string GetDebugMessage() const override; | 98 std::string GetDebugMessage() const override; |
| 99 bool IsExitConditionSatisfied() override; | 99 bool IsExitConditionSatisfied() override; |
| 100 | 100 |
| 101 // extensions::ExtensionRegistryObserver implementation. | 101 // extensions::ExtensionRegistryObserver implementation. |
| 102 void OnExtensionLoaded(content::BrowserContext* context, | 102 void OnExtensionLoaded(content::BrowserContext* context, |
| 103 const extensions::Extension* extension) override; | 103 const extensions::Extension* extension) override; |
| 104 void OnExtensionUnloaded( | 104 void OnExtensionUnloaded(content::BrowserContext* context, |
| 105 content::BrowserContext* context, | 105 const extensions::Extension* extenion, |
| 106 const extensions::Extension* extenion, | 106 extensions::UnloadedExtensionReason reason) override; |
| 107 extensions::UnloadedExtensionInfo::Reason reason) override; | |
| 108 void OnExtensionInstalled(content::BrowserContext* browser_context, | 107 void OnExtensionInstalled(content::BrowserContext* browser_context, |
| 109 const extensions::Extension* extension, | 108 const extensions::Extension* extension, |
| 110 bool is_update) override; | 109 bool is_update) override; |
| 111 void OnExtensionUninstalled(content::BrowserContext* browser_context, | 110 void OnExtensionUninstalled(content::BrowserContext* browser_context, |
| 112 const extensions::Extension* extension, | 111 const extensions::Extension* extension, |
| 113 extensions::UninstallReason reason) override; | 112 extensions::UninstallReason reason) override; |
| 114 | 113 |
| 115 // content::NotificationObserver implementation. | 114 // content::NotificationObserver implementation. |
| 116 void Observe(int type, | 115 void Observe(int type, |
| 117 const content::NotificationSource& source, | 116 const content::NotificationSource& source, |
| 118 const content::NotificationDetails& details) override; | 117 const content::NotificationDetails& details) override; |
| 119 | 118 |
| 120 private: | 119 private: |
| 121 std::vector<Profile*> profiles_; | 120 std::vector<Profile*> profiles_; |
| 122 std::vector<std::unique_ptr<SyncedExtensionInstaller>> | 121 std::vector<std::unique_ptr<SyncedExtensionInstaller>> |
| 123 synced_extension_installers_; | 122 synced_extension_installers_; |
| 124 content::NotificationRegistrar registrar_; | 123 content::NotificationRegistrar registrar_; |
| 125 | 124 |
| 126 DISALLOW_COPY_AND_ASSIGN(ExtensionsMatchChecker); | 125 DISALLOW_COPY_AND_ASSIGN(ExtensionsMatchChecker); |
| 127 }; | 126 }; |
| 128 | 127 |
| 129 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_EXTENSIONS_HELPER_H_ | 128 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_EXTENSIONS_HELPER_H_ |
| OLD | NEW |