From eb7ef5f39f4041a06a2eef6e2916b0ab3039238f Mon Sep 17 00:00:00 2001 From: "thestig@chromium.org" Date: Thu, 6 Feb 2014 09:59:19 +0000 Subject: Extensions: Send the tab id to platform apps. This lets mediaGalleries.addUserSelectedFolder() figure out the tab that triggered the API, so it can display the select dialog in the tab when the platform app has no open windows. BUG=333899 Review URL: https://codereview.chromium.org/145463002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249322 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/renderer/extensions/dispatcher.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'chrome/renderer/extensions/dispatcher.h') diff --git a/chrome/renderer/extensions/dispatcher.h b/chrome/renderer/extensions/dispatcher.h index bcdece9..57a52e4 100644 --- a/chrome/renderer/extensions/dispatcher.h +++ b/chrome/renderer/extensions/dispatcher.h @@ -143,6 +143,8 @@ class Dispatcher : public content::RenderProcessObserver { const base::ListValue& args, bool user_gesture); + void ClearPortData(int port_id); + private: friend class ::ChromeRenderViewTest; FRIEND_TEST_ALL_PREFIXES(RendererPermissionsPolicyDelegateTest, @@ -309,6 +311,9 @@ class Dispatcher : public content::RenderProcessObserver { std::string system_font_family_; std::string system_font_size_; + // Mapping of port IDs to tabs. If there is no tab, the value would be -1. + std::map port_to_tab_id_map_; + DISALLOW_COPY_AND_ASSIGN(Dispatcher); }; -- cgit v1.1