Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / chrome / renderer / extensions / dispatcher.h
index bcdece9..57a52e4 100644 (file)
@@ -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);
 };