Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: chrome/browser/extensions/api/url_overrides/url_overrides_api.h

Issue 11660016: Move the parsing of "chrome_url_overrides" out of Extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698