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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 11759020: Implement a TODO in the media code: Change a "const MediaStreamRequest*" arg in various APIs to "co… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 11 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/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 1497 matching lines...) Expand 10 before | Expand all | Expand 10 after
1508 const ContextMenuParams& params, 1508 const ContextMenuParams& params,
1509 ContextMenuSourceType type) { 1509 ContextMenuSourceType type) {
1510 // Allow WebContentsDelegates to handle the context menu operation first. 1510 // Allow WebContentsDelegates to handle the context menu operation first.
1511 if (delegate_ && delegate_->HandleContextMenu(params)) 1511 if (delegate_ && delegate_->HandleContextMenu(params))
1512 return; 1512 return;
1513 1513
1514 render_view_host_delegate_view_->ShowContextMenu(params, type); 1514 render_view_host_delegate_view_->ShowContextMenu(params, type);
1515 } 1515 }
1516 1516
1517 void WebContentsImpl::RequestMediaAccessPermission( 1517 void WebContentsImpl::RequestMediaAccessPermission(
1518 const MediaStreamRequest* request, 1518 const MediaStreamRequest& request,
1519 const MediaResponseCallback& callback) { 1519 const MediaResponseCallback& callback) {
1520 if (delegate_) 1520 if (delegate_)
1521 delegate_->RequestMediaAccessPermission(this, request, callback); 1521 delegate_->RequestMediaAccessPermission(this, request, callback);
1522 else 1522 else
1523 callback.Run(MediaStreamDevices()); 1523 callback.Run(MediaStreamDevices());
1524 } 1524 }
1525 1525
1526 void WebContentsImpl::UpdatePreferredSize(const gfx::Size& pref_size) { 1526 void WebContentsImpl::UpdatePreferredSize(const gfx::Size& pref_size) {
1527 preferred_size_ = pref_size; 1527 preferred_size_ = pref_size;
1528 if (delegate_) 1528 if (delegate_)
(...skipping 1853 matching lines...) Expand 10 before | Expand all | Expand 10 after
3382 3382
3383 BrowserPluginGuest* WebContentsImpl::GetBrowserPluginGuest() { 3383 BrowserPluginGuest* WebContentsImpl::GetBrowserPluginGuest() {
3384 return browser_plugin_guest_.get(); 3384 return browser_plugin_guest_.get();
3385 } 3385 }
3386 3386
3387 BrowserPluginEmbedder* WebContentsImpl::GetBrowserPluginEmbedder() { 3387 BrowserPluginEmbedder* WebContentsImpl::GetBrowserPluginEmbedder() {
3388 return browser_plugin_embedder_.get(); 3388 return browser_plugin_embedder_.get();
3389 } 3389 }
3390 3390
3391 } // namespace content 3391 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/public/browser/web_contents_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698