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

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

Issue 11416013: Move RequestPpapiBrokerPermission from WebContentsObserver to WebContentsDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 8 years, 1 month 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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 // Asks permission to use the camera and/or microphone. If permission is 411 // Asks permission to use the camera and/or microphone. If permission is
412 // granted, a call should be made to |callback| with the devices. If the 412 // granted, a call should be made to |callback| with the devices. If the
413 // request is denied, a call should be made to |callback| with an empty list 413 // request is denied, a call should be made to |callback| with an empty list
414 // of devices. |request| has the details of the request (e.g. which of audio 414 // of devices. |request| has the details of the request (e.g. which of audio
415 // and/or video devices are requested, and lists of available devices). 415 // and/or video devices are requested, and lists of available devices).
416 virtual void RequestMediaAccessPermission( 416 virtual void RequestMediaAccessPermission(
417 WebContents* web_contents, 417 WebContents* web_contents,
418 const MediaStreamRequest* request, 418 const MediaStreamRequest* request,
419 const MediaResponseCallback& callback) {} 419 const MediaResponseCallback& callback) {}
420 420
421 // Requests permission to access the PPAPI broker. The passed in |callback|
422 // should be called with the result.
423 virtual void RequestPpapiBrokerPermission(
424 WebContents* web_contents,
425 const GURL& url,
426 const FilePath& plugin_path,
427 const base::Callback<void(bool)>& callback);
428
421 #if defined(OS_ANDROID) 429 #if defined(OS_ANDROID)
422 // Called when a compositing layer becomes available for this web contents 430 // Called when a compositing layer becomes available for this web contents
423 // so the delegate can add it to the layer tree. 431 // so the delegate can add it to the layer tree.
424 virtual void AttachLayer(WebContents* web_contents, 432 virtual void AttachLayer(WebContents* web_contents,
425 WebKit::WebLayer* layer) {} 433 WebKit::WebLayer* layer) {}
426 434
427 // Called before a compositing layer becomes invalid so the delegate can 435 // Called before a compositing layer becomes invalid so the delegate can
428 // remove it from the layer tree. 436 // remove it from the layer tree.
429 virtual void RemoveLayer(WebContents* web_contents, 437 virtual void RemoveLayer(WebContents* web_contents,
430 WebKit::WebLayer* layer) {} 438 WebKit::WebLayer* layer) {}
(...skipping 11 matching lines...) Expand all
442 // Called when |this| is no longer the WebContentsDelegate for |source|. 450 // Called when |this| is no longer the WebContentsDelegate for |source|.
443 void Detach(WebContents* source); 451 void Detach(WebContents* source);
444 452
445 // The WebContents that this is currently a delegate for. 453 // The WebContents that this is currently a delegate for.
446 std::set<WebContents*> attached_contents_; 454 std::set<WebContents*> attached_contents_;
447 }; 455 };
448 456
449 } // namespace content 457 } // namespace content
450 458
451 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 459 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698