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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 24 #endif | 24 #endif |
| 25 | 25 |
| 26 class GURL; | 26 class GURL; |
| 27 | 27 |
| 28 namespace IPC { | 28 namespace IPC { |
| 29 class Message; | 29 class Message; |
| 30 } | 30 } |
| 31 | 31 |
| 32 namespace content { | 32 namespace content { |
| 33 class GeolocationServiceContext; | 33 class GeolocationServiceContext; |
| 34 class InterstitialPage; | |
| 34 class PageState; | 35 class PageState; |
| 35 class RenderFrameHost; | 36 class RenderFrameHost; |
| 36 class WakeLockServiceContext; | 37 class WakeLockServiceContext; |
| 37 class WebContents; | 38 class WebContents; |
| 38 struct AXEventNotificationDetails; | 39 struct AXEventNotificationDetails; |
| 39 struct ContextMenuParams; | 40 struct ContextMenuParams; |
| 40 struct TransitionLayerData; | 41 struct TransitionLayerData; |
| 41 | 42 |
| 42 // An interface implemented by an object interested in knowing about the state | 43 // An interface implemented by an object interested in knowing about the state |
| 43 // of the RenderFrameHost. | 44 // of the RenderFrameHost. |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 109 | 110 |
| 110 // The page's encoding was changed and should be updated. Only called for the | 111 // The page's encoding was changed and should be updated. Only called for the |
| 111 // top-level frame. | 112 // top-level frame. |
| 112 virtual void UpdateEncoding(RenderFrameHost* render_frame_host, | 113 virtual void UpdateEncoding(RenderFrameHost* render_frame_host, |
| 113 const std::string& encoding) {} | 114 const std::string& encoding) {} |
| 114 | 115 |
| 115 // Return this object cast to a WebContents, if it is one. If the object is | 116 // Return this object cast to a WebContents, if it is one. If the object is |
| 116 // not a WebContents, returns NULL. | 117 // not a WebContents, returns NULL. |
| 117 virtual WebContents* GetAsWebContents(); | 118 virtual WebContents* GetAsWebContents(); |
| 118 | 119 |
| 120 // Returns this object cast to an InterstitialPage if it is one. Returns | |
| 121 // nullptr otherwise. | |
| 122 virtual InterstitialPage* GetAsInterstitialPage(); | |
|
Charlie Reis
2016/01/25 21:47:38
Yeah, I suppose we can use this pattern again. I'
robwu
2016/01/25 22:54:41
Acknowledged.
| |
| 123 | |
| 119 // The render frame has requested access to media devices listed in | 124 // The render frame has requested access to media devices listed in |
| 120 // |request|, and the client should grant or deny that permission by | 125 // |request|, and the client should grant or deny that permission by |
| 121 // calling |callback|. | 126 // calling |callback|. |
| 122 virtual void RequestMediaAccessPermission( | 127 virtual void RequestMediaAccessPermission( |
| 123 const MediaStreamRequest& request, | 128 const MediaStreamRequest& request, |
| 124 const MediaResponseCallback& callback); | 129 const MediaResponseCallback& callback); |
| 125 | 130 |
| 126 // Checks if we have permission to access the microphone or camera. Note that | 131 // Checks if we have permission to access the microphone or camera. Note that |
| 127 // this does not query the user. |type| must be MEDIA_DEVICE_AUDIO_CAPTURE | 132 // this does not query the user. |type| must be MEDIA_DEVICE_AUDIO_CAPTURE |
| 128 // or MEDIA_DEVICE_VIDEO_CAPTURE. | 133 // or MEDIA_DEVICE_VIDEO_CAPTURE. |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 184 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); | 189 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); |
| 185 #endif | 190 #endif |
| 186 | 191 |
| 187 protected: | 192 protected: |
| 188 virtual ~RenderFrameHostDelegate() {} | 193 virtual ~RenderFrameHostDelegate() {} |
| 189 }; | 194 }; |
| 190 | 195 |
| 191 } // namespace content | 196 } // namespace content |
| 192 | 197 |
| 193 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 198 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
| OLD | NEW |