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 #include "content/public/common/media_stream_request.h" |
13 #include "net/http/http_response_headers.h" | |
13 | 14 |
14 class GURL; | 15 class GURL; |
15 | 16 |
16 namespace IPC { | 17 namespace IPC { |
17 class Message; | 18 class Message; |
18 } | 19 } |
19 | 20 |
20 namespace content { | 21 namespace content { |
21 class RenderFrameHost; | 22 class RenderFrameHost; |
22 class WebContents; | 23 class WebContents; |
23 struct ContextMenuParams; | 24 struct ContextMenuParams; |
25 struct TransitionLayerData; | |
jochen (gone - plz use gerrit)
2014/07/24 09:05:27
nit. not required anymore
Zhen Wang
2014/07/24 15:29:55
Done.
| |
24 | 26 |
25 // An interface implemented by an object interested in knowing about the state | 27 // An interface implemented by an object interested in knowing about the state |
26 // of the RenderFrameHost. | 28 // of the RenderFrameHost. |
27 class CONTENT_EXPORT RenderFrameHostDelegate { | 29 class CONTENT_EXPORT RenderFrameHostDelegate { |
28 public: | 30 public: |
29 // This is used to give the delegate a chance to filter IPC messages. | 31 // This is used to give the delegate a chance to filter IPC messages. |
30 virtual bool OnMessageReceived(RenderFrameHost* render_frame_host, | 32 virtual bool OnMessageReceived(RenderFrameHost* render_frame_host, |
31 const IPC::Message& message); | 33 const IPC::Message& message); |
32 | 34 |
33 // Gets the last committed URL. See WebContents::GetLastCommittedURL for a | 35 // Gets the last committed URL. See WebContents::GetLastCommittedURL for a |
(...skipping 17 matching lines...) Expand all Loading... | |
51 // |to_different_document| will be true unless the load is a fragment | 53 // |to_different_document| will be true unless the load is a fragment |
52 // navigation, or triggered by history.pushState/replaceState. | 54 // navigation, or triggered by history.pushState/replaceState. |
53 virtual void DidStartLoading(RenderFrameHost* render_frame_host, | 55 virtual void DidStartLoading(RenderFrameHost* render_frame_host, |
54 bool to_different_document) {} | 56 bool to_different_document) {} |
55 | 57 |
56 // The RenderFrameHost has been swapped out. | 58 // The RenderFrameHost has been swapped out. |
57 virtual void SwappedOut(RenderFrameHost* render_frame_host) {} | 59 virtual void SwappedOut(RenderFrameHost* render_frame_host) {} |
58 | 60 |
59 // Notification that the navigation on the main frame is blocked waiting | 61 // Notification that the navigation on the main frame is blocked waiting |
60 // for transition to occur. | 62 // for transition to occur. |
61 virtual void DidDeferAfterResponseStarted() {} | 63 virtual void DidDeferAfterResponseStarted( |
64 const scoped_refptr<net::HttpResponseHeaders>& headers, | |
65 const GURL& url) {} | |
62 | 66 |
63 // Used to query whether the navigation transition will be handled. | 67 // Used to query whether the navigation transition will be handled. |
64 virtual bool WillHandleDeferAfterResponseStarted(); | 68 virtual bool WillHandleDeferAfterResponseStarted(); |
65 | 69 |
66 // Notification that a worker process has crashed. | 70 // Notification that a worker process has crashed. |
67 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) {} | 71 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) {} |
68 | 72 |
69 // A context menu should be shown, to be built using the context information | 73 // A context menu should be shown, to be built using the context information |
70 // provided in the supplied params. | 74 // provided in the supplied params. |
71 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, | 75 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
119 const MediaStreamRequest& request, | 123 const MediaStreamRequest& request, |
120 const MediaResponseCallback& callback); | 124 const MediaResponseCallback& callback); |
121 | 125 |
122 protected: | 126 protected: |
123 virtual ~RenderFrameHostDelegate() {} | 127 virtual ~RenderFrameHostDelegate() {} |
124 }; | 128 }; |
125 | 129 |
126 } // namespace content | 130 } // namespace content |
127 | 131 |
128 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 132 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
OLD | NEW |