Chromium Code Reviews| Index: chrome/browser/extensions/external_policy_extension_loader.h |
| diff --git a/chrome/browser/extensions/external_policy_extension_loader.h b/chrome/browser/extensions/external_policy_extension_loader.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2086b49c395266d02aa3689e72db299a050cfb19 |
| --- /dev/null |
| +++ b/chrome/browser/extensions/external_policy_extension_loader.h |
| @@ -0,0 +1,49 @@ |
| +// 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_EXTERNAL_POLICY_EXTENSION_LOADER_H_ |
| +#define CHROME_BROWSER_EXTENSIONS_EXTERNAL_POLICY_EXTENSION_LOADER_H_ |
| +#pragma once |
| + |
| +#include "chrome/browser/extensions/external_extension_loader.h" |
| + |
| +#include "chrome/browser/prefs/pref_change_registrar.h" |
| +#include "chrome/common/notification_observer.h" |
| +#include "chrome/common/notification_registrar.h" |
| +#include "chrome/common/notification_service.h" |
| +#include "chrome/common/notification_type.h" |
|
jochen (gone - plz use gerrit)
2011/01/04 12:38:01
why do you need _type and _service?
gfeher
2011/01/04 23:37:09
Done.
|
| + |
| +class ListValue; |
| +class MockExternalPolicyExtensionProviderVisitor; |
| +class Profile; |
| + |
| +// A specialization of the ExternalExtensionProvider that uses |
| +// prefs::kExtensionInstallForceList to look up which external extensions are |
| +// registered. |
| +class ExternalPolicyExtensionLoader |
| + : public ExternalExtensionLoader, |
| + public NotificationObserver { |
| + public: |
| + explicit ExternalPolicyExtensionLoader(Profile* profile); |
| + |
| + // NotificationObserver |
|
jochen (gone - plz use gerrit)
2011/01/04 12:38:01
... implementation.
gfeher
2011/01/04 23:37:09
Done.
|
| + virtual void Observe(NotificationType type, |
| + const NotificationSource& source, |
| + const NotificationDetails& details); |
| + |
| + protected: |
| + virtual void Load(); |
| + |
| + private: |
| + friend class base::RefCountedThreadSafe<ExternalExtensionLoader>; |
| + |
| + virtual ~ExternalPolicyExtensionLoader() {} |
| + |
| + PrefChangeRegistrar pref_change_registrar_; |
| + NotificationRegistrar notification_registrar_; |
| + |
| + Profile* profile_; |
| +}; |
|
jochen (gone - plz use gerrit)
2011/01/04 12:38:01
disallow copy and assign?
gfeher
2011/01/04 23:37:09
Done.
|
| + |
| +#endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_POLICY_EXTENSION_LOADER_H_ |