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

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

Issue 335993002: Convert MIDI permission requests to use WebContents in preparation for switching the code to using … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 // called with the result. If |cancel_callback| is non-null, it's set to a 473 // called with the result. If |cancel_callback| is non-null, it's set to a
474 // callback which can be used to cancel the permission request. 474 // callback which can be used to cancel the permission request.
475 virtual void RequestGeolocationPermission( 475 virtual void RequestGeolocationPermission(
476 WebContents* web_contents, 476 WebContents* web_contents,
477 int bridge_id, 477 int bridge_id,
478 const GURL& requesting_frame, 478 const GURL& requesting_frame,
479 bool user_gesture, 479 bool user_gesture,
480 base::Callback<void(bool)> result_callback, 480 base::Callback<void(bool)> result_callback,
481 base::Closure* cancel_callback); 481 base::Closure* cancel_callback);
482 482
483 // Requests a permission to use system exclusive messages in MIDI events.
484 // |result_callback| will be invoked when the request is resolved. If
485 // |cancel_callback| is non-null, it's set to a callback which can be used to
486 // cancel the permission request.
487 virtual void RequestMidiSysExPermission(
488 WebContents* web_contents,
489 int bridge_id,
490 const GURL& requesting_frame,
491 bool user_gesture,
492 base::Callback<void(bool)> result_callback,
493 base::Closure* cancel_callback);
494
483 // Returns true if the given page is allowed to open a window of the given 495 // Returns true if the given page is allowed to open a window of the given
484 // type. If true is returned, |no_javascript_access| will indicate whether 496 // type. If true is returned, |no_javascript_access| will indicate whether
485 // the window that is created should be scriptable/in the same process. 497 // the window that is created should be scriptable/in the same process.
486 // This is called on the IO thread. 498 // This is called on the IO thread.
487 virtual bool CanCreateWindow(const GURL& opener_url, 499 virtual bool CanCreateWindow(const GURL& opener_url,
488 const GURL& opener_top_level_frame_url, 500 const GURL& opener_top_level_frame_url,
489 const GURL& source_origin, 501 const GURL& source_origin,
490 WindowContainerType container_type, 502 WindowContainerType container_type,
491 const GURL& target_url, 503 const GURL& target_url,
492 const Referrer& referrer, 504 const Referrer& referrer,
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 664 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
653 // implementation. Return NULL to disable external surface video. 665 // implementation. Return NULL to disable external surface video.
654 virtual ExternalVideoSurfaceContainer* 666 virtual ExternalVideoSurfaceContainer*
655 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 667 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
656 #endif 668 #endif
657 }; 669 };
658 670
659 } // namespace content 671 } // namespace content
660 672
661 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 673 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/public/browser/browser_context.h ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698