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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/page_launcher/page_launcher_api.h
diff --git a/chrome/browser/extensions/api/page_launcher/page_launcher_api.h b/chrome/browser/extensions/api/page_launcher/page_launcher_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..4cd4483c6c9862357061f03e0ab485c1b629aff6
--- /dev/null
+++ b/chrome/browser/extensions/api/page_launcher/page_launcher_api.h
@@ -0,0 +1,48 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_EXTENSIONS_API_PAGE_LAUNCHER_PAGE_LAUNCHER_API_H_
+#define CHROME_BROWSER_EXTENSIONS_API_PAGE_LAUNCHER_PAGE_LAUNCHER_API_H_
+
+#include <string>
+
+#include "base/basictypes.h"
+#include "base/memory/scoped_ptr.h"
+#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
+
+class GURL;
+class Profile;
+
+namespace extensions {
+
+class PageLauncherAPI : public ProfileKeyedAPI {
+ public:
+ explicit PageLauncherAPI(Profile* profile);
+ virtual ~PageLauncherAPI();
+
+ static void DispatchOnClickedEvent(Profile* profile,
+ const std::string& extension_id,
+ const GURL& url,
+ const std::string& mimetype,
+ const std::string* page_title,
+ const std::string* selected_text);
+
+ // ProfileKeyedAPI implementation.
+ static ProfileKeyedAPIFactory<PageLauncherAPI>* GetFactoryInstance();
+
+ private:
+ friend class ProfileKeyedAPIFactory<PageLauncherAPI>;
+
+ // ProfileKeyedAPI implementation.
+ static const char* service_name() {
+ return "PageLauncherAPI";
+ }
+
+ DISALLOW_COPY_AND_ASSIGN(PageLauncherAPI);
+};
+
+} // namespace extensions
+
+
+#endif // CHROME_BROWSER_EXTENSIONS_API_PAGE_LAUNCHER_PAGE_LAUNCHER_API_H_
« 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