Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_URL_OVERRIDES_URL_OVERRIDES_API_H_ | |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_URL_OVERRIDES_URL_OVERRIDES_API_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "chrome/browser/profiles/profile_keyed_service.h" | |
| 10 #include "content/public/browser/notification_observer.h" | |
| 11 #include "content/public/browser/notification_registrar.h" | |
| 12 | |
| 13 class Profile; | |
| 14 | |
| 15 namespace extensions { | |
| 16 | |
| 17 class URLOverridesAPI : public ProfileKeyedService, | |
| 18 public content::NotificationObserver { | |
|
Joe Thomas
2012/12/22 01:25:57
There are no URLOverrides APIs in extensions, but
Yoyo Zhou
2012/12/28 03:59:45
Seems reasonable to have this be separated out, bu
Yoyo Zhou
2013/01/03 22:36:03
My vote is still to leave this in chrome/browser/e
Joe Thomas
2013/01/04 23:36:11
I made it part of ManifestURLParser in chrome/brow
| |
| 19 public: | |
| 20 explicit URLOverridesAPI(Profile* profile); | |
| 21 virtual ~URLOverridesAPI(); | |
| 22 | |
| 23 // content::NotificationObserver implementation. | |
| 24 virtual void Observe(int type, | |
| 25 const content::NotificationSource& source, | |
| 26 const content::NotificationDetails& details) OVERRIDE; | |
| 27 | |
| 28 private: | |
| 29 Profile* const profile_; | |
| 30 content::NotificationRegistrar registrar_; | |
| 31 | |
| 32 DISALLOW_COPY_AND_ASSIGN(URLOverridesAPI); | |
| 33 }; | |
| 34 | |
| 35 } // namespace extensions | |
| 36 | |
| 37 #endif // CHROME_BROWSER_EXTENSIONS_API_URL_OVERRIDES_URL_OVERRIDES_API_H_ | |
| OLD | NEW |