Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 123 // not a WebContents, returns NULL. | 123 // not a WebContents, returns NULL. |
| 124 virtual WebContents* GetAsWebContents(); | 124 virtual WebContents* GetAsWebContents(); |
| 125 | 125 |
| 126 // The render frame has requested access to media devices listed in | 126 // The render frame has requested access to media devices listed in |
| 127 // |request|, and the client should grant or deny that permission by | 127 // |request|, and the client should grant or deny that permission by |
| 128 // calling |callback|. | 128 // calling |callback|. |
| 129 virtual void RequestMediaAccessPermission( | 129 virtual void RequestMediaAccessPermission( |
| 130 const MediaStreamRequest& request, | 130 const MediaStreamRequest& request, |
| 131 const MediaResponseCallback& callback); | 131 const MediaResponseCallback& callback); |
| 132 | 132 |
| 133 // Checks if we have permissions to access the microphone based on policy and | |
| 134 // app permissions. Note that this does not check e.g. the content settings | |
| 135 // nor query the user. | |
| 136 virtual void AllowMicAccessBasedOnPolicyAndAppPermissions( | |
|
Charlie Reis
2014/08/25 18:35:44
nit: Calling this "AllowFoo" makes it sound like i
Henrik Grunell
2014/08/25 19:14:13
Agree. I think "Request..." implies query the user
Henrik Grunell
2014/08/26 16:56:32
Done.
| |
| 137 const GURL& security_origin, | |
|
Charlie Reis
2014/08/25 18:35:44
Security origins can be a bit subtle to get right.
Henrik Grunell
2014/08/25 19:14:13
From https://code.google.com/p/chromium/codesearch
Charlie Reis
2014/08/25 20:30:10
Ok, sounds like there's an existing (presumably ve
| |
| 138 const MediaAccessResponseCallback& callback); | |
| 139 | |
| 133 // Get the accessibility mode for the WebContents that owns this frame. | 140 // Get the accessibility mode for the WebContents that owns this frame. |
| 134 virtual AccessibilityMode GetAccessibilityMode() const; | 141 virtual AccessibilityMode GetAccessibilityMode() const; |
| 135 | 142 |
| 136 // Invoked when an accessibility event is received from the renderer. | 143 // Invoked when an accessibility event is received from the renderer. |
| 137 virtual void AccessibilityEventReceived( | 144 virtual void AccessibilityEventReceived( |
| 138 const std::vector<AXEventNotificationDetails>& details) {} | 145 const std::vector<AXEventNotificationDetails>& details) {} |
| 139 | 146 |
| 140 #if defined(OS_WIN) | 147 #if defined(OS_WIN) |
| 141 // Returns the frame's parent's NativeViewAccessible. | 148 // Returns the frame's parent's NativeViewAccessible. |
| 142 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); | 149 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); |
| 143 #endif | 150 #endif |
| 144 | 151 |
| 145 protected: | 152 protected: |
| 146 virtual ~RenderFrameHostDelegate() {} | 153 virtual ~RenderFrameHostDelegate() {} |
| 147 }; | 154 }; |
| 148 | 155 |
| 149 } // namespace content | 156 } // namespace content |
| 150 | 157 |
| 151 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 158 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
| OLD | NEW |