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_WEB_INTENTS_PARSER_H_ | |
6 #define CHROME_BROWSER_EXTENSIONS_WEB_INTENTS_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 WebIntentsParser : public ProfileKeyedAPI { | |
16 public: | |
17 explicit WebIntentsParser(Profile* profile); | |
18 virtual ~WebIntentsParser(); | |
19 | |
20 // ProfileKeyedAPI implementation. | |
21 static ProfileKeyedAPIFactory<WebIntentsParser>* GetFactoryInstance(); | |
22 | |
23 private: | |
24 friend class ProfileKeyedAPIFactory<WebIntentsParser>; | |
25 | |
26 // ProfileKeyedAPI implementation. | |
27 static const char* service_name() { | |
28 return "WebIntentsParser"; | |
29 } | |
30 static const bool kServiceIsNULLWhileTesting = true; | |
31 | |
32 DISALLOW_COPY_AND_ASSIGN(WebIntentsParser); | |
33 }; | |
34 | |
35 } // namespace extensions | |
36 | |
37 #endif // CHROME_BROWSER_EXTENSIONS_WEB_INTENTS_PARSER_H_ | |
OLD | NEW |