| 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 { |
| 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 |