| Index: chrome/browser/extensions/test_extension_loader.h
|
| diff --git a/chrome/browser/extensions/test_extension_loader.h b/chrome/browser/extensions/test_extension_loader.h
|
| new file mode 100755
|
| index 0000000000000000000000000000000000000000..4fb74d910603d7e8ed708951085fcb52e1362e97
|
| --- /dev/null
|
| +++ b/chrome/browser/extensions/test_extension_loader.h
|
| @@ -0,0 +1,35 @@
|
| +// Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_LOADER_H_
|
| +#define CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_LOADER_H_
|
| +
|
| +#include "chrome/browser/extensions/extension.h"
|
| +#include "chrome/common/notification_observer.h"
|
| +#include "chrome/common/notification_registrar.h"
|
| +
|
| +class Extension;
|
| +class FilePath;
|
| +class Profile;
|
| +
|
| +class TestExtensionLoader : public NotificationObserver {
|
| + public:
|
| + explicit TestExtensionLoader(Profile* profile);
|
| +
|
| + Extension* Load(const char* extension_id, const FilePath& path);
|
| +
|
| + virtual void Observe(NotificationType type,
|
| + const NotificationSource& source,
|
| + const NotificationDetails& details);
|
| +
|
| + private:
|
| + Profile* profile_;
|
| + Extension* extension_;
|
| + NotificationRegistrar registrar_;
|
| + std::string loading_extension_id_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(TestExtensionLoader);
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_LOADER_H_
|
|
|