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

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: 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
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 class CONTENT_EXPORT BrowserPluginEmbedder : public WebContentsObserver, 54 class CONTENT_EXPORT BrowserPluginEmbedder : public WebContentsObserver,
55 public NotificationObserver { 55 public NotificationObserver {
56 public: 56 public:
57 typedef std::map<int, WebContents*> ContainerInstanceMap; 57 typedef std::map<int, WebContents*> ContainerInstanceMap;
58 58
59 virtual ~BrowserPluginEmbedder(); 59 virtual ~BrowserPluginEmbedder();
60 60
61 static BrowserPluginEmbedder* Create(WebContentsImpl* web_contents, 61 static BrowserPluginEmbedder* Create(WebContentsImpl* web_contents,
62 RenderViewHost* render_view_host); 62 RenderViewHost* render_view_host);
63 63
64 // Creates a new guest.
65 void CreateGuest(RenderViewHost* render_view_host,
66 int instance_id,
67 int64 frame_id,
68 std::string storage_partition_id,
69 bool persist_storage);
70
64 // Navigates in a guest (new or existing). 71 // Navigates in a guest (new or existing).
65 void NavigateGuest(RenderViewHost* render_view_host, 72 void NavigateGuest(RenderViewHost* render_view_host,
66 int instance_id, 73 int instance_id,
67 int64 frame_id, 74 int64 frame_id,
68 const std::string& src, 75 const std::string& src,
69 const gfx::Size& size); 76 const gfx::Size& size);
70 void Stop(int instance_id); 77 void Stop(int instance_id);
71 void Reload(int instance_id); 78 void Reload(int instance_id);
72 79
73 // WebContentsObserver implementation. 80 // WebContentsObserver implementation.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // Contains guests' WebContents, mapping from their instance ids. 143 // Contains guests' WebContents, mapping from their instance ids.
137 ContainerInstanceMap guest_web_contents_by_instance_id_; 144 ContainerInstanceMap guest_web_contents_by_instance_id_;
138 RenderViewHost* render_view_host_; 145 RenderViewHost* render_view_host_;
139 146
140 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedder); 147 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedder);
141 }; 148 };
142 149
143 } // namespace content 150 } // namespace content
144 151
145 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_H_ 152 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698