| Index: chrome/browser/extensions/api/url_overrides/url_overrides_api.h
|
| diff --git a/chrome/browser/extensions/api/url_overrides/url_overrides_api.h b/chrome/browser/extensions/api/url_overrides/url_overrides_api.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e0573949f423801ee417a0bb50a21b80dba9d7fb
|
| --- /dev/null
|
| +++ b/chrome/browser/extensions/api/url_overrides/url_overrides_api.h
|
| @@ -0,0 +1,37 @@
|
| +// Copyright (c) 2012 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_API_URL_OVERRIDES_URL_OVERRIDES_API_H_
|
| +#define CHROME_BROWSER_EXTENSIONS_API_URL_OVERRIDES_URL_OVERRIDES_API_H_
|
| +
|
| +#include "base/basictypes.h"
|
| +#include "chrome/browser/profiles/profile_keyed_service.h"
|
| +#include "content/public/browser/notification_observer.h"
|
| +#include "content/public/browser/notification_registrar.h"
|
| +
|
| +class Profile;
|
| +
|
| +namespace extensions {
|
| +
|
| +class URLOverridesAPI : public ProfileKeyedService,
|
| + public content::NotificationObserver {
|
| + public:
|
| + explicit URLOverridesAPI(Profile* profile);
|
| + virtual ~URLOverridesAPI();
|
| +
|
| + // content::NotificationObserver implementation.
|
| + virtual void Observe(int type,
|
| + const content::NotificationSource& source,
|
| + const content::NotificationDetails& details) OVERRIDE;
|
| +
|
| + private:
|
| + Profile* const profile_;
|
| + content::NotificationRegistrar registrar_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(URLOverridesAPI);
|
| +};
|
| +
|
| +} // namespace extensions
|
| +
|
| +#endif // CHROME_BROWSER_EXTENSIONS_API_URL_OVERRIDES_URL_OVERRIDES_API_H_
|
|
|