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

Side by Side Diff: content/browser/browser_plugin/browser_plugin_embedder.h

Issue 10978028: Propagate storage partition id and persistence to the browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merging with incoming changes (159475). Created 8 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/browser_plugin/browser_plugin_embedder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // A BrowserPluginEmbedder has a list of guests it manages. 5 // A BrowserPluginEmbedder has a list of guests it manages.
6 // In the beginning when a renderer sees one or more guests (BrowserPlugin 6 // In the beginning when a renderer sees one or more guests (BrowserPlugin
7 // instance(s)) and there is a request to navigate to them, the WebContents for 7 // instance(s)) and there is a request to navigate to them, the WebContents for
8 // that renderer creates a BrowserPluginEmbedder for itself. The 8 // that renderer creates a BrowserPluginEmbedder for itself. The
9 // BrowserPluginEmbedder, in turn, manages a set of BrowserPluginGuests -- one 9 // BrowserPluginEmbedder, in turn, manages a set of BrowserPluginGuests -- one
10 // BrowserPluginGuest for each guest in the embedding WebContents. Note that 10 // BrowserPluginGuest for each guest in the embedding WebContents. Note that
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 class CONTENT_EXPORT BrowserPluginEmbedder : public WebContentsObserver, 55 class CONTENT_EXPORT BrowserPluginEmbedder : public WebContentsObserver,
56 public NotificationObserver { 56 public NotificationObserver {
57 public: 57 public:
58 typedef std::map<int, WebContents*> ContainerInstanceMap; 58 typedef std::map<int, WebContents*> ContainerInstanceMap;
59 59
60 virtual ~BrowserPluginEmbedder(); 60 virtual ~BrowserPluginEmbedder();
61 61
62 static BrowserPluginEmbedder* Create(WebContentsImpl* web_contents, 62 static BrowserPluginEmbedder* Create(WebContentsImpl* web_contents,
63 RenderViewHost* render_view_host); 63 RenderViewHost* render_view_host);
64 64
65 // Creates a new guest.
66 void CreateGuest(RenderViewHost* render_view_host,
67 int instance_id,
68 std::string storage_partition_id,
69 bool persist_storage);
70
65 // Navigates in a guest (new or existing). 71 // Navigates in a guest (new or existing).
66 void NavigateGuest( 72 void NavigateGuest(
67 RenderViewHost* render_view_host, 73 RenderViewHost* render_view_host,
68 int instance_id, 74 int instance_id,
69 const std::string& src, 75 const std::string& src,
70 const BrowserPluginHostMsg_ResizeGuest_Params& resize_params); 76 const BrowserPluginHostMsg_ResizeGuest_Params& resize_params);
71 77
72 void ResizeGuest(RenderViewHost* render_view_host, 78 void ResizeGuest(RenderViewHost* render_view_host,
73 int instance_id, 79 int instance_id,
74 const BrowserPluginHostMsg_ResizeGuest_Params& params); 80 const BrowserPluginHostMsg_ResizeGuest_Params& params);
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // Contains guests' WebContents, mapping from their instance ids. 143 // Contains guests' WebContents, mapping from their instance ids.
138 ContainerInstanceMap guest_web_contents_by_instance_id_; 144 ContainerInstanceMap guest_web_contents_by_instance_id_;
139 RenderViewHost* render_view_host_; 145 RenderViewHost* render_view_host_;
140 146
141 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedder); 147 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedder);
142 }; 148 };
143 149
144 } // namespace content 150 } // namespace content
145 151
146 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_H_ 152 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/browser_plugin/browser_plugin_embedder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698