| 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 <string> | 10 #include <string> |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 namespace device { | 34 namespace device { |
| 35 class GeolocationServiceContext; | 35 class GeolocationServiceContext; |
| 36 class WakeLockServiceContext; | 36 class WakeLockServiceContext; |
| 37 } | 37 } |
| 38 | 38 |
| 39 namespace content { | 39 namespace content { |
| 40 class FrameTreeNode; | 40 class FrameTreeNode; |
| 41 class InterstitialPage; | 41 class InterstitialPage; |
| 42 class PageState; | 42 class PageState; |
| 43 class RenderFrameHost; | 43 class RenderFrameHost; |
| 44 class RenderFrameHostImpl; |
| 44 class ScreenOrientationProvider; | 45 class ScreenOrientationProvider; |
| 45 class WebContents; | 46 class WebContents; |
| 46 struct AXEventNotificationDetails; | 47 struct AXEventNotificationDetails; |
| 47 struct AXLocationChangeNotificationDetails; | 48 struct AXLocationChangeNotificationDetails; |
| 48 struct ContextMenuParams; | 49 struct ContextMenuParams; |
| 49 struct FileChooserParams; | 50 struct FileChooserParams; |
| 50 | 51 |
| 51 // An interface implemented by an object interested in knowing about the state | 52 // An interface implemented by an object interested in knowing about the state |
| 52 // of the RenderFrameHost. | 53 // of the RenderFrameHost. |
| 53 class CONTENT_EXPORT RenderFrameHostDelegate { | 54 class CONTENT_EXPORT RenderFrameHostDelegate { |
| 54 public: | 55 public: |
| 55 // This is used to give the delegate a chance to filter IPC messages. | 56 // This is used to give the delegate a chance to filter IPC messages. |
| 56 virtual bool OnMessageReceived(RenderFrameHost* render_frame_host, | 57 virtual bool OnMessageReceived(RenderFrameHostImpl* render_frame_host, |
| 57 const IPC::Message& message); | 58 const IPC::Message& message); |
| 58 | 59 |
| 59 // Allows the delegate to filter incoming associated inteface requests. | 60 // Allows the delegate to filter incoming associated inteface requests. |
| 60 virtual void OnAssociatedInterfaceRequest( | 61 virtual void OnAssociatedInterfaceRequest( |
| 61 RenderFrameHost* render_frame_host, | 62 RenderFrameHost* render_frame_host, |
| 62 const std::string& interface_name, | 63 const std::string& interface_name, |
| 63 mojo::ScopedInterfaceEndpointHandle handle) {} | 64 mojo::ScopedInterfaceEndpointHandle handle) {} |
| 64 | 65 |
| 65 // Gets the last committed URL. See WebContents::GetLastCommittedURL for a | 66 // Gets the last committed URL. See WebContents::GetLastCommittedURL for a |
| 66 // description of the semantics. | 67 // description of the semantics. |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 virtual std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( | 212 virtual std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( |
| 212 const GURL& url); | 213 const GURL& url); |
| 213 | 214 |
| 214 protected: | 215 protected: |
| 215 virtual ~RenderFrameHostDelegate() {} | 216 virtual ~RenderFrameHostDelegate() {} |
| 216 }; | 217 }; |
| 217 | 218 |
| 218 } // namespace content | 219 } // namespace content |
| 219 | 220 |
| 220 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 221 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
| OLD | NEW |