| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_LOADER_H_ | |
| 6 #define CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_LOADER_H_ | |
| 7 | |
| 8 #include "chrome/browser/extensions/extension.h" | |
| 9 #include "chrome/common/notification_observer.h" | |
| 10 #include "chrome/common/notification_registrar.h" | |
| 11 | |
| 12 class Extension; | |
| 13 class FilePath; | |
| 14 class Profile; | |
| 15 | |
| 16 class TestExtensionLoader : public NotificationObserver { | |
| 17 public: | |
| 18 explicit TestExtensionLoader(Profile* profile); | |
| 19 | |
| 20 Extension* Load(const char* extension_id, const FilePath& path); | |
| 21 | |
| 22 virtual void Observe(NotificationType type, | |
| 23 const NotificationSource& source, | |
| 24 const NotificationDetails& details); | |
| 25 | |
| 26 private: | |
| 27 Profile* profile_; | |
| 28 Extension* extension_; | |
| 29 NotificationRegistrar registrar_; | |
| 30 std::string loading_extension_id_; | |
| 31 | |
| 32 DISALLOW_COPY_AND_ASSIGN(TestExtensionLoader); | |
| 33 }; | |
| 34 | |
| 35 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_LOADER_H_ | |
| OLD | NEW |