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

Side by Side Diff: chrome/browser/extensions/api/page_launcher/page_launcher_api.h

Issue 14694010: Consolidate manifest handler registration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_PAGE_LAUNCHER_PAGE_LAUNCHER_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_PAGE_LAUNCHER_PAGE_LAUNCHER_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_PAGE_LAUNCHER_PAGE_LAUNCHER_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_PAGE_LAUNCHER_PAGE_LAUNCHER_API_H_
7 7
8 #include <string> 8 #include <string>
9 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 GURL; 10 class GURL;
15 class Profile; 11 class Profile;
16 12
17 namespace extensions { 13 namespace extensions {
18 14
19 class PageLauncherAPI : public ProfileKeyedAPI { 15 class PageLauncherAPI {
20 public: 16 public:
21 explicit PageLauncherAPI(Profile* profile);
22 virtual ~PageLauncherAPI();
23
24 static void DispatchOnClickedEvent(Profile* profile, 17 static void DispatchOnClickedEvent(Profile* profile,
25 const std::string& extension_id, 18 const std::string& extension_id,
26 const GURL& url, 19 const GURL& url,
27 const std::string& mimetype, 20 const std::string& mimetype,
28 const std::string* page_title, 21 const std::string* page_title,
29 const std::string* selected_text); 22 const std::string* selected_text);
30
31 // ProfileKeyedAPI implementation.
32 static ProfileKeyedAPIFactory<PageLauncherAPI>* GetFactoryInstance();
33
34 private:
35 friend class ProfileKeyedAPIFactory<PageLauncherAPI>;
36
37 // ProfileKeyedAPI implementation.
38 static const char* service_name() {
39 return "PageLauncherAPI";
40 }
41
42 DISALLOW_COPY_AND_ASSIGN(PageLauncherAPI);
43 }; 23 };
44 24
45 } // namespace extensions 25 } // namespace extensions
46 26
47 27
48 #endif // CHROME_BROWSER_EXTENSIONS_API_PAGE_LAUNCHER_PAGE_LAUNCHER_API_H_ 28 #endif // CHROME_BROWSER_EXTENSIONS_API_PAGE_LAUNCHER_PAGE_LAUNCHER_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/omnibox/omnibox_api.cc ('k') | chrome/browser/extensions/api/page_launcher/page_launcher_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698