| 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 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 namespace IPC { | 24 namespace IPC { |
| 25 class Message; | 25 class Message; |
| 26 } | 26 } |
| 27 | 27 |
| 28 namespace content { | 28 namespace content { |
| 29 class RenderFrameHost; | 29 class RenderFrameHost; |
| 30 class WebContents; | 30 class WebContents; |
| 31 struct AXEventNotificationDetails; | 31 struct AXEventNotificationDetails; |
| 32 struct ContextMenuParams; | 32 struct ContextMenuParams; |
| 33 struct TransitionLayerData; |
| 33 | 34 |
| 34 // An interface implemented by an object interested in knowing about the state | 35 // An interface implemented by an object interested in knowing about the state |
| 35 // of the RenderFrameHost. | 36 // of the RenderFrameHost. |
| 36 class CONTENT_EXPORT RenderFrameHostDelegate { | 37 class CONTENT_EXPORT RenderFrameHostDelegate { |
| 37 public: | 38 public: |
| 38 // This is used to give the delegate a chance to filter IPC messages. | 39 // This is used to give the delegate a chance to filter IPC messages. |
| 39 virtual bool OnMessageReceived(RenderFrameHost* render_frame_host, | 40 virtual bool OnMessageReceived(RenderFrameHost* render_frame_host, |
| 40 const IPC::Message& message); | 41 const IPC::Message& message); |
| 41 | 42 |
| 42 // Gets the last committed URL. See WebContents::GetLastCommittedURL for a | 43 // Gets the last committed URL. See WebContents::GetLastCommittedURL for a |
| (...skipping 18 matching lines...) Expand all Loading... |
| 61 // navigation, or triggered by history.pushState/replaceState. | 62 // navigation, or triggered by history.pushState/replaceState. |
| 62 virtual void DidStartLoading(RenderFrameHost* render_frame_host, | 63 virtual void DidStartLoading(RenderFrameHost* render_frame_host, |
| 63 bool to_different_document) {} | 64 bool to_different_document) {} |
| 64 | 65 |
| 65 // The RenderFrameHost has been swapped out. | 66 // The RenderFrameHost has been swapped out. |
| 66 virtual void SwappedOut(RenderFrameHost* render_frame_host) {} | 67 virtual void SwappedOut(RenderFrameHost* render_frame_host) {} |
| 67 | 68 |
| 68 // Notification that the navigation on the main frame is blocked waiting | 69 // Notification that the navigation on the main frame is blocked waiting |
| 69 // for transition to occur. | 70 // for transition to occur. |
| 70 virtual void DidDeferAfterResponseStarted( | 71 virtual void DidDeferAfterResponseStarted( |
| 71 const scoped_refptr<net::HttpResponseHeaders>& headers, | 72 const TransitionLayerData& transition_data) {} |
| 72 const GURL& url) {} | |
| 73 | 73 |
| 74 // Used to query whether the navigation transition will be handled. | 74 // Used to query whether the navigation transition will be handled. |
| 75 virtual bool WillHandleDeferAfterResponseStarted(); | 75 virtual bool WillHandleDeferAfterResponseStarted(); |
| 76 | 76 |
| 77 // Notification that a worker process has crashed. | 77 // Notification that a worker process has crashed. |
| 78 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) {} | 78 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) {} |
| 79 | 79 |
| 80 // A context menu should be shown, to be built using the context information | 80 // A context menu should be shown, to be built using the context information |
| 81 // provided in the supplied params. | 81 // provided in the supplied params. |
| 82 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, | 82 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); | 142 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); |
| 143 #endif | 143 #endif |
| 144 | 144 |
| 145 protected: | 145 protected: |
| 146 virtual ~RenderFrameHostDelegate() {} | 146 virtual ~RenderFrameHostDelegate() {} |
| 147 }; | 147 }; |
| 148 | 148 |
| 149 } // namespace content | 149 } // namespace content |
| 150 | 150 |
| 151 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 151 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
| OLD | NEW |