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

Side by Side Diff: chrome/browser/extensions/manifest_url_parser.h

Issue 12494028: Move Requirements out of Extension Class (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Move Requirements from API Created 7 years, 9 months 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_MANIFEST_URL_PARSER_H_
6 #define CHROME_BROWSER_EXTENSIONS_MANIFEST_URL_PARSER_H_
7
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"
12
13 class Profile;
14
15 namespace extensions {
16
17 class ManifestURLParser : public ProfileKeyedAPI,
18 public content::NotificationObserver {
19 public:
20 explicit ManifestURLParser(Profile* profile);
21 virtual ~ManifestURLParser();
22
23 // ProfileKeyedAPI implementation.
24 static ProfileKeyedAPIFactory<ManifestURLParser>* GetFactoryInstance();
25
26 // content::NotificationObserver implementation.
27 virtual void Observe(int type,
28 const content::NotificationSource& source,
29 const content::NotificationDetails& details) OVERRIDE;
30
31 private:
32 friend class ProfileKeyedAPIFactory<ManifestURLParser>;
33
34 // ProfileKeyedAPI implementation.
35 static const char* service_name() {
36 return "ManifestURLParser";
37 }
38 static const bool kServiceIsNULLWhileTesting = true;
39
40 Profile* const profile_;
41 content::NotificationRegistrar registrar_;
42
43 DISALLOW_COPY_AND_ASSIGN(ManifestURLParser);
44 };
45
46 } // namespace extensions
47
48 #endif // CHROME_BROWSER_EXTENSIONS_MANIFEST_URL_PARSER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_service_unittest.cc ('k') | chrome/browser/extensions/manifest_url_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698