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

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

Issue 12095023: Allow platform apps to add themselves to the Action Box. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Use raw pointer + IconImage signature changed Created 7 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/page_launcher/page_launcher_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 GURL;
15 class Profile;
16
17 namespace extensions {
18
19 class PageLauncherAPI : public ProfileKeyedAPI {
20 public:
21 explicit PageLauncherAPI(Profile* profile);
22 virtual ~PageLauncherAPI();
23
24 static void DispatchOnClickedEvent(Profile* profile,
25 const std::string& extension_id,
26 const GURL& url,
27 const std::string& mimetype,
28 const std::string* page_title,
29 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 };
44
45 } // namespace extensions
46
47
48 #endif // CHROME_BROWSER_EXTENSIONS_API_PAGE_LAUNCHER_PAGE_LAUNCHER_API_H_
OLDNEW
« no previous file with comments | « no previous file | 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