| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_BROWSER_TEST_EXTENSION_REGISTRY_OBSERVER_H_ | 5 #ifndef EXTENSIONS_BROWSER_TEST_EXTENSION_REGISTRY_OBSERVER_H_ |
| 6 #define EXTENSIONS_BROWSER_TEST_EXTENSION_REGISTRY_OBSERVER_H_ | 6 #define EXTENSIONS_BROWSER_TEST_EXTENSION_REGISTRY_OBSERVER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/scoped_observer.h" | 12 #include "base/scoped_observer.h" |
| 12 #include "extensions/browser/extension_registry_observer.h" | 13 #include "extensions/browser/extension_registry_observer.h" |
| 13 | 14 |
| 14 namespace extensions { | 15 namespace extensions { |
| 15 class ExtensionRegistry; | 16 class ExtensionRegistry; |
| 16 | 17 |
| 17 // A helper class that listen for ExtensionRegistry notifications. | 18 // A helper class that listen for ExtensionRegistry notifications. |
| 18 class TestExtensionRegistryObserver : public ExtensionRegistryObserver { | 19 class TestExtensionRegistryObserver : public ExtensionRegistryObserver { |
| 19 public: | 20 public: |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 extension_registry_observer_; | 60 extension_registry_observer_; |
| 60 | 61 |
| 61 std::string extension_id_; | 62 std::string extension_id_; |
| 62 | 63 |
| 63 DISALLOW_COPY_AND_ASSIGN(TestExtensionRegistryObserver); | 64 DISALLOW_COPY_AND_ASSIGN(TestExtensionRegistryObserver); |
| 64 }; | 65 }; |
| 65 | 66 |
| 66 } // namespace extensions | 67 } // namespace extensions |
| 67 | 68 |
| 68 #endif // EXTENSIONS_BROWSER_TEST_EXTENSION_REGISTRY_OBSERVER_H_ | 69 #endif // EXTENSIONS_BROWSER_TEST_EXTENSION_REGISTRY_OBSERVER_H_ |
| OLD | NEW |