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

Side by Side Diff: content/public/browser/web_contents_delegate.h

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
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | no next file » | 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 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 // Notification that the page has lost the mouse lock. 413 // Notification that the page has lost the mouse lock.
414 virtual void LostMouseLock() {} 414 virtual void LostMouseLock() {}
415 415
416 // Asks permission to use the camera and/or microphone. If permission is 416 // Asks permission to use the camera and/or microphone. If permission is
417 // granted, a call should be made to |callback| with the devices. If the 417 // granted, a call should be made to |callback| with the devices. If the
418 // request is denied, a call should be made to |callback| with an empty list 418 // request is denied, a call should be made to |callback| with an empty list
419 // of devices. |request| has the details of the request (e.g. which of audio 419 // of devices. |request| has the details of the request (e.g. which of audio
420 // and/or video devices are requested, and lists of available devices). 420 // and/or video devices are requested, and lists of available devices).
421 virtual void RequestMediaAccessPermission( 421 virtual void RequestMediaAccessPermission(
422 WebContents* web_contents, 422 WebContents* web_contents,
423 const MediaStreamRequest* request, 423 const MediaStreamRequest& request,
424 const MediaResponseCallback& callback) {} 424 const MediaResponseCallback& callback) {}
425 425
426 // Requests permission to access the PPAPI broker. The delegate should return 426 // Requests permission to access the PPAPI broker. The delegate should return
427 // true and call the passed in |callback| with the result, or return false 427 // true and call the passed in |callback| with the result, or return false
428 // to indicate that it does not support asking for permission. 428 // to indicate that it does not support asking for permission.
429 virtual bool RequestPpapiBrokerPermission( 429 virtual bool RequestPpapiBrokerPermission(
430 WebContents* web_contents, 430 WebContents* web_contents,
431 const GURL& url, 431 const GURL& url,
432 const FilePath& plugin_path, 432 const FilePath& plugin_path,
433 const base::Callback<void(bool)>& callback); 433 const base::Callback<void(bool)>& callback);
(...skipping 10 matching lines...) Expand all
444 // Called when |this| is no longer the WebContentsDelegate for |source|. 444 // Called when |this| is no longer the WebContentsDelegate for |source|.
445 void Detach(WebContents* source); 445 void Detach(WebContents* source);
446 446
447 // The WebContents that this is currently a delegate for. 447 // The WebContents that this is currently a delegate for.
448 std::set<WebContents*> attached_contents_; 448 std::set<WebContents*> attached_contents_;
449 }; 449 };
450 450
451 } // namespace content 451 } // namespace content
452 452
453 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 453 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698