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

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

Issue 10854040: Add hooks to content to request permission to connect to the PPAPI broker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 8 years, 4 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 #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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 // Asks permission to use the camera and/or microphone. If permission is 415 // Asks permission to use the camera and/or microphone. If permission is
416 // granted, a call should be made to |callback| with the devices. If the 416 // granted, a call should be made to |callback| with the devices. If the
417 // request is denied, a call should be made to |callback| with an empty list 417 // request is denied, a call should be made to |callback| with an empty list
418 // of devices. |request| has the details of the request (e.g. which of audio 418 // of devices. |request| has the details of the request (e.g. which of audio
419 // and/or video devices are requested, and lists of available devices). 419 // and/or video devices are requested, and lists of available devices).
420 virtual void RequestMediaAccessPermission( 420 virtual void RequestMediaAccessPermission(
421 WebContents* web_contents, 421 WebContents* web_contents,
422 const MediaStreamRequest* request, 422 const MediaStreamRequest* request,
423 const MediaResponseCallback& callback) {} 423 const MediaResponseCallback& callback) {}
424 424
425 // Requests permission to access the PPAPI broker. The passed in |callback|
426 // should be called with the result.
ddorwin 2012/08/12 22:51:16 s/should/will/
Bernhard Bauer 2012/08/13 09:02:12 Hm. I read the comments in this file as notes for
427 virtual void RequestPpapiBrokerPermission(
428 WebContents* web_contents,
429 const GURL& url,
430 const FilePath& plugin_path,
431 const base::Callback<void(bool)>& callback);
432
425 protected: 433 protected:
426 virtual ~WebContentsDelegate(); 434 virtual ~WebContentsDelegate();
427 435
428 private: 436 private:
429 friend class ::WebContentsImpl; 437 friend class ::WebContentsImpl;
430 438
431 // Called when |this| becomes the WebContentsDelegate for |source|. 439 // Called when |this| becomes the WebContentsDelegate for |source|.
432 void Attach(WebContents* source); 440 void Attach(WebContents* source);
433 441
434 // Called when |this| is no longer the WebContentsDelegate for |source|. 442 // Called when |this| is no longer the WebContentsDelegate for |source|.
435 void Detach(WebContents* source); 443 void Detach(WebContents* source);
436 444
437 // The WebContents that this is currently a delegate for. 445 // The WebContents that this is currently a delegate for.
438 std::set<WebContents*> attached_contents_; 446 std::set<WebContents*> attached_contents_;
439 }; 447 };
440 448
441 } // namespace content 449 } // namespace content
442 450
443 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 451 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698