Rename desktop_cursor_loader_updater_aurax11.
[chromium-blink-merge.git] / chrome / browser / extensions / extension_web_ui_override_registrar.h
blob782cc51b54770e56cf6737078d16bac6442df528
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_WEB_UI_OVERRIDE_REGISTRAR_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_WEB_UI_OVERRIDE_REGISTRAR_H_
8 #include "base/basictypes.h"
9 #include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
10 #include "content/public/browser/notification_observer.h"
11 #include "content/public/browser/notification_registrar.h"
13 class Profile;
15 namespace extensions {
17 class ExtensionWebUIOverrideRegistrar : public ProfileKeyedAPI,
18 public content::NotificationObserver {
19 public:
20 explicit ExtensionWebUIOverrideRegistrar(Profile* profile);
21 virtual ~ExtensionWebUIOverrideRegistrar();
23 // ProfileKeyedAPI implementation.
24 static ProfileKeyedAPIFactory<ExtensionWebUIOverrideRegistrar>*
25 GetFactoryInstance();
27 // content::NotificationObserver implementation.
28 virtual void Observe(int type,
29 const content::NotificationSource& source,
30 const content::NotificationDetails& details) OVERRIDE;
32 private:
33 friend class ProfileKeyedAPIFactory<ExtensionWebUIOverrideRegistrar>;
35 // ProfileKeyedAPI implementation.
36 static const char* service_name() {
37 return "ExtensionWebUIOverrideRegistrar";
40 Profile* const profile_;
41 content::NotificationRegistrar registrar_;
43 DISALLOW_COPY_AND_ASSIGN(ExtensionWebUIOverrideRegistrar);
46 } // namespace extensions
48 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEB_UI_OVERRIDE_REGISTRAR_H_