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

Side by Side Diff: chrome/browser/ui/browser.h

Issue 562263002: Check media permissions through RenderFrameHostDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@render_frame_get_sources
Patch Set: Rebase Created 6 years, 3 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
« no previous file with comments | « chrome/browser/ui/apps/chrome_app_delegate.cc ('k') | chrome/browser/ui/browser.cc » ('j') | 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 CHROME_BROWSER_UI_BROWSER_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_H_
6 #define CHROME_BROWSER_UI_BROWSER_H_ 6 #define CHROME_BROWSER_UI_BROWSER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 int active_match_ordinal, 640 int active_match_ordinal,
641 bool final_update) OVERRIDE; 641 bool final_update) OVERRIDE;
642 virtual void RequestToLockMouse(content::WebContents* web_contents, 642 virtual void RequestToLockMouse(content::WebContents* web_contents,
643 bool user_gesture, 643 bool user_gesture,
644 bool last_unlocked_by_target) OVERRIDE; 644 bool last_unlocked_by_target) OVERRIDE;
645 virtual void LostMouseLock() OVERRIDE; 645 virtual void LostMouseLock() OVERRIDE;
646 virtual void RequestMediaAccessPermission( 646 virtual void RequestMediaAccessPermission(
647 content::WebContents* web_contents, 647 content::WebContents* web_contents,
648 const content::MediaStreamRequest& request, 648 const content::MediaStreamRequest& request,
649 const content::MediaResponseCallback& callback) OVERRIDE; 649 const content::MediaResponseCallback& callback) OVERRIDE;
650 virtual bool CheckMediaAccessPermission(
651 content::WebContents* web_contents,
652 const GURL& security_origin,
653 content::MediaStreamType type) OVERRIDE;
650 virtual bool RequestPpapiBrokerPermission( 654 virtual bool RequestPpapiBrokerPermission(
651 content::WebContents* web_contents, 655 content::WebContents* web_contents,
652 const GURL& url, 656 const GURL& url,
653 const base::FilePath& plugin_path, 657 const base::FilePath& plugin_path,
654 const base::Callback<void(bool)>& callback) OVERRIDE; 658 const base::Callback<void(bool)>& callback) OVERRIDE;
655 virtual gfx::Size GetSizeForNewRenderView( 659 virtual gfx::Size GetSizeForNewRenderView(
656 content::WebContents* web_contents) const OVERRIDE; 660 content::WebContents* web_contents) const OVERRIDE;
657 661
658 // Overridden from CoreTabHelperDelegate: 662 // Overridden from CoreTabHelperDelegate:
659 // Note that the caller is responsible for deleting |old_contents|. 663 // Note that the caller is responsible for deleting |old_contents|.
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 958
955 scoped_ptr<chrome::ValidationMessageBubble> validation_message_bubble_; 959 scoped_ptr<chrome::ValidationMessageBubble> validation_message_bubble_;
956 960
957 // The following factory is used to close the frame at a later time. 961 // The following factory is used to close the frame at a later time.
958 base::WeakPtrFactory<Browser> weak_factory_; 962 base::WeakPtrFactory<Browser> weak_factory_;
959 963
960 DISALLOW_COPY_AND_ASSIGN(Browser); 964 DISALLOW_COPY_AND_ASSIGN(Browser);
961 }; 965 };
962 966
963 #endif // CHROME_BROWSER_UI_BROWSER_H_ 967 #endif // CHROME_BROWSER_UI_BROWSER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/apps/chrome_app_delegate.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698