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

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

Issue 11093080: <webview>: First stab at implementing media permission request for guests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Implement first allow/deny wins, still requires preventDefault impl + now tests pass. Created 7 years, 10 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 119
120 // Message handlers. 120 // Message handlers.
121 121
122 void OnAllocateInstanceID(int request_id); 122 void OnAllocateInstanceID(int request_id);
123 void OnCreateGuest(int instance_id, 123 void OnCreateGuest(int instance_id,
124 const BrowserPluginHostMsg_CreateGuest_Params& params); 124 const BrowserPluginHostMsg_CreateGuest_Params& params);
125 void OnPluginAtPositionResponse(int instance_id, 125 void OnPluginAtPositionResponse(int instance_id,
126 int request_id, 126 int request_id,
127 const gfx::Point& position); 127 const gfx::Point& position);
128 void OnPluginDestroyed(int instance_id); 128 void OnPluginDestroyed(int instance_id);
129 void OnAllowMediaAccess(int instance_id, int request_id, bool should_allow);
129 void OnSwapBuffersACK(int route_id, 130 void OnSwapBuffersACK(int route_id,
130 int gpu_host_id, 131 int gpu_host_id,
131 const std::string& mailbox_name, 132 const std::string& mailbox_name,
132 uint32 sync_point); 133 uint32 sync_point);
133 134
134 // Static factory instance (always NULL for non-test). 135 // Static factory instance (always NULL for non-test).
135 static BrowserPluginHostFactory* factory_; 136 static BrowserPluginHostFactory* factory_;
136 137
137 // A scoped container for notification registries. 138 // A scoped container for notification registries.
138 NotificationRegistrar registrar_; 139 NotificationRegistrar registrar_;
(...skipping 12 matching lines...) Expand all
151 // Next request id for BrowserPluginMsg_PluginAtPositionRequest query. 152 // Next request id for BrowserPluginMsg_PluginAtPositionRequest query.
152 int next_get_render_view_request_id_; 153 int next_get_render_view_request_id_;
153 int next_instance_id_; 154 int next_instance_id_;
154 155
155 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedder); 156 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedder);
156 }; 157 };
157 158
158 } // namespace content 159 } // namespace content
159 160
160 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_H_ 161 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698