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

Unified Diff: chrome/renderer/extensions/media_galleries_custom_bindings.h

Issue 145463002: Extensions: Send the tab id to platform apps. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 11 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
Index: chrome/renderer/extensions/media_galleries_custom_bindings.h
===================================================================
--- chrome/renderer/extensions/media_galleries_custom_bindings.h (revision 246091)
+++ chrome/renderer/extensions/media_galleries_custom_bindings.h (working copy)
@@ -12,10 +12,16 @@
// Implements custom bindings for the media galleries API.
class MediaGalleriesCustomBindings : public ChromeV8Extension {
public:
+ static void PushSenderTabId(ChromeV8Context* context, int tab_id);
+ static void PopSenderTabId(ChromeV8Context* context);
+
MediaGalleriesCustomBindings(Dispatcher* dispatcher,
ChromeV8Context* context);
private:
+ void GetSenderTabId(ChromeV8Context* context,
+ const v8::FunctionCallbackInfo<v8::Value>& args);
+
DISALLOW_COPY_AND_ASSIGN(MediaGalleriesCustomBindings);
};

Powered by Google App Engine
This is Rietveld 408576698