diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-06 09:59:19 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-06 09:59:19 +0000 |
commit | eb7ef5f39f4041a06a2eef6e2916b0ab3039238f (patch) | |
tree | af8e0a815e03c80be555e38a2fd1315cc16eab59 /chrome/renderer/extensions/dispatcher.h | |
parent | ae415588b46037ef8fc0ce0a52a1aa86e7762d4c (diff) | |
download | chromium_src-eb7ef5f39f4041a06a2eef6e2916b0ab3039238f.zip chromium_src-eb7ef5f39f4041a06a2eef6e2916b0ab3039238f.tar.gz chromium_src-eb7ef5f39f4041a06a2eef6e2916b0ab3039238f.tar.bz2 |
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
Diffstat (limited to 'chrome/renderer/extensions/dispatcher.h')
-rw-r--r-- | chrome/renderer/extensions/dispatcher.h | 5 |
1 files changed, 5 insertions, 0 deletions
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<int, int> port_to_tab_id_map_; + DISALLOW_COPY_AND_ASSIGN(Dispatcher); }; |