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

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

Issue 11093080: <webview>: First stab at implementing media permission request for guests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments from creis@ 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 #include "content/browser/browser_plugin/browser_plugin_embedder.h" 5 #include "content/browser/browser_plugin/browser_plugin_embedder.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "content/browser/browser_plugin/browser_plugin_guest.h" 9 #include "content/browser/browser_plugin/browser_plugin_guest.h"
10 #include "content/browser/browser_plugin/browser_plugin_host_factory.h" 10 #include "content/browser/browser_plugin/browser_plugin_host_factory.h"
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 WebContentsImpl* web_contents = static_cast<WebContentsImpl*>(it->second); 298 WebContentsImpl* web_contents = static_cast<WebContentsImpl*>(it->second);
299 BrowserPluginGuest* guest = web_contents->GetBrowserPluginGuest(); 299 BrowserPluginGuest* guest = web_contents->GetBrowserPluginGuest();
300 guest->UpdateVisibility(); 300 guest->UpdateVisibility();
301 } 301 }
302 } 302 }
303 303
304 // static 304 // static
305 bool BrowserPluginEmbedder::ShouldForwardToBrowserPluginGuest( 305 bool BrowserPluginEmbedder::ShouldForwardToBrowserPluginGuest(
306 const IPC::Message& message) { 306 const IPC::Message& message) {
307 switch (message.type()) { 307 switch (message.type()) {
308 case BrowserPluginHostMsg_AllowPermission::ID:
308 case BrowserPluginHostMsg_BuffersSwappedACK::ID: 309 case BrowserPluginHostMsg_BuffersSwappedACK::ID:
309 case BrowserPluginHostMsg_DragStatusUpdate::ID: 310 case BrowserPluginHostMsg_DragStatusUpdate::ID:
310 case BrowserPluginHostMsg_Go::ID: 311 case BrowserPluginHostMsg_Go::ID:
311 case BrowserPluginHostMsg_HandleInputEvent::ID: 312 case BrowserPluginHostMsg_HandleInputEvent::ID:
312 case BrowserPluginHostMsg_NavigateGuest::ID: 313 case BrowserPluginHostMsg_NavigateGuest::ID:
313 case BrowserPluginHostMsg_Reload::ID: 314 case BrowserPluginHostMsg_Reload::ID:
314 case BrowserPluginHostMsg_ResizeGuest::ID: 315 case BrowserPluginHostMsg_ResizeGuest::ID:
315 case BrowserPluginHostMsg_SetAutoSize::ID: 316 case BrowserPluginHostMsg_SetAutoSize::ID:
316 case BrowserPluginHostMsg_SetFocus::ID: 317 case BrowserPluginHostMsg_SetFocus::ID:
317 case BrowserPluginHostMsg_SetName::ID: 318 case BrowserPluginHostMsg_SetName::ID:
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 int gpu_host_id, 369 int gpu_host_id,
369 const std::string& mailbox_name, 370 const std::string& mailbox_name,
370 uint32 sync_point) { 371 uint32 sync_point) {
371 BrowserPluginGuest::AcknowledgeBufferPresent(route_id, 372 BrowserPluginGuest::AcknowledgeBufferPresent(route_id,
372 gpu_host_id, 373 gpu_host_id,
373 mailbox_name, 374 mailbox_name,
374 sync_point); 375 sync_point);
375 } 376 }
376 377
377 } // namespace content 378 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698