| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/i18n/rtl.h" | 9 #include "base/i18n/rtl.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| 11 #include "content/public/common/javascript_message_type.h" | 11 #include "content/public/common/javascript_message_type.h" |
| 12 #include "content/public/common/media_stream_request.h" |
| 12 | 13 |
| 13 class GURL; | 14 class GURL; |
| 14 | 15 |
| 15 namespace IPC { | 16 namespace IPC { |
| 16 class Message; | 17 class Message; |
| 17 } | 18 } |
| 18 | 19 |
| 19 namespace content { | 20 namespace content { |
| 20 class RenderFrameHost; | 21 class RenderFrameHost; |
| 21 class WebContents; | 22 class WebContents; |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 105 |
| 105 // The page's encoding was changed and should be updated. Only called for the | 106 // The page's encoding was changed and should be updated. Only called for the |
| 106 // top-level frame. | 107 // top-level frame. |
| 107 virtual void UpdateEncoding(RenderFrameHost* render_frame_host, | 108 virtual void UpdateEncoding(RenderFrameHost* render_frame_host, |
| 108 const std::string& encoding) {} | 109 const std::string& encoding) {} |
| 109 | 110 |
| 110 // Return this object cast to a WebContents, if it is one. If the object is | 111 // Return this object cast to a WebContents, if it is one. If the object is |
| 111 // not a WebContents, returns NULL. | 112 // not a WebContents, returns NULL. |
| 112 virtual WebContents* GetAsWebContents(); | 113 virtual WebContents* GetAsWebContents(); |
| 113 | 114 |
| 115 // The render frame has requested access to media devices listed in |
| 116 // |request|, and the client should grant or deny that permission by |
| 117 // calling |callback|. |
| 118 virtual void RequestMediaAccessPermission( |
| 119 const MediaStreamRequest& request, |
| 120 const MediaResponseCallback& callback); |
| 121 |
| 114 protected: | 122 protected: |
| 115 virtual ~RenderFrameHostDelegate() {} | 123 virtual ~RenderFrameHostDelegate() {} |
| 116 }; | 124 }; |
| 117 | 125 |
| 118 } // namespace content | 126 } // namespace content |
| 119 | 127 |
| 120 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 128 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
| OLD | NEW |