OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2013 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_WEB_PARSER_H_ | |
6 #define CHROME_BROWSER_EXTENSIONS_MANIFEST_WEB_PARSER_H_ | |
7 | |
8 #include "base/basictypes.h" | |
9 #include "chrome/browser/extensions/api/profile_keyed_api_factory.h" | |
10 | |
11 class Profile; | |
12 | |
13 namespace extensions { | |
14 | |
15 class ManifestWebParser : public ProfileKeyedAPI { | |
Yoyo Zhou
2013/01/10 00:37:58
This name doesn't make sense. "web" by itself does
Joe Thomas
2013/01/10 20:56:18
Done.
| |
16 public: | |
17 explicit ManifestWebParser(Profile* profile); | |
18 virtual ~ManifestWebParser(); | |
19 | |
20 private: | |
21 friend class ProfileKeyedAPIFactory<ManifestWebParser>; | |
22 | |
23 // ProfileKeyedAPI implementation. | |
24 static const char* service_name() { | |
25 return "ManifestWebParser"; | |
26 } | |
27 static const bool kServiceIsNULLWhileTesting = true; | |
28 | |
29 DISALLOW_COPY_AND_ASSIGN(ManifestWebParser); | |
30 }; | |
31 | |
32 template <> | |
33 ProfileKeyedAPIFactory<ManifestWebParser>* | |
34 ProfileKeyedAPIFactory<ManifestWebParser>::GetInstance(); | |
35 | |
36 } // namespace extensions | |
37 | |
38 #endif // CHROME_BROWSER_EXTENSIONS_MANIFEST_WEB_PARSER_H_ | |
OLD | NEW |