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_API_PAGE_LAUNCHER_PAGE_LAUNCHER_API_H_ | |
6 #define CHROME_BROWSER_EXTENSIONS_API_PAGE_LAUNCHER_PAGE_LAUNCHER_API_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "base/basictypes.h" | |
11 #include "base/memory/scoped_ptr.h" | |
12 #include "chrome/browser/extensions/api/profile_keyed_api_factory.h" | |
13 | |
14 class Profile; | |
15 | |
16 namespace extensions { | |
17 | |
18 class PageLauncherAPI : public ProfileKeyedAPI { | |
19 public: | |
20 explicit PageLauncherAPI(Profile* profile); | |
21 virtual ~PageLauncherAPI(); | |
22 | |
23 static void DispatchOnClickedEvent(Profile* profile, | |
24 const std::string& extension_id, | |
25 const std::string& url, | |
26 const std::string& mimetype, | |
27 scoped_ptr<std::string> page_title, | |
28 scoped_ptr<std::string> selected_text); | |
29 | |
30 // ProfileKeyedAPI implementation. | |
31 static ProfileKeyedAPIFactory<PageLauncherAPI>* GetFactoryInstance(); | |
32 | |
33 private: | |
34 friend class ProfileKeyedAPIFactory<PageLauncherAPI>; | |
35 | |
36 // ProfileKeyedAPI implementation. | |
37 static const char* service_name() { | |
38 return "PageLauncherAPI"; | |
39 } | |
40 | |
41 DISALLOW_COPY_AND_ASSIGN(PageLauncherAPI); | |
42 }; | |
43 | |
44 } // namespace extensions | |
45 | |
46 | |
47 #endif // CHROME_BROWSER_EXTENSIONS_API_PAGE_LAUNCHER_PAGE_LAUNCHER_API_H_ | |
skare_
2013/01/30 00:49:51
nit: add newline at EOF, here and in the .cc
Rune Fevang
2013/01/30 01:32:12
Not sure why the linter thinks its missing, it's c
| |
OLD | NEW |