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; |
(...skipping 28 matching lines...) Expand all Loading... |
51 // |to_different_document| will be true unless the load is a fragment | 52 // |to_different_document| will be true unless the load is a fragment |
52 // navigation, or triggered by history.pushState/replaceState. | 53 // navigation, or triggered by history.pushState/replaceState. |
53 virtual void DidStartLoading(RenderFrameHost* render_frame_host, | 54 virtual void DidStartLoading(RenderFrameHost* render_frame_host, |
54 bool to_different_document) {} | 55 bool to_different_document) {} |
55 | 56 |
56 // The RenderFrameHost has been swapped out. | 57 // The RenderFrameHost has been swapped out. |
57 virtual void SwappedOut(RenderFrameHost* render_frame_host) {} | 58 virtual void SwappedOut(RenderFrameHost* render_frame_host) {} |
58 | 59 |
59 // Notification that the navigation on the main frame is blocked waiting | 60 // Notification that the navigation on the main frame is blocked waiting |
60 // for transition to occur. | 61 // for transition to occur. |
61 virtual void DidDeferAfterResponseStarted() {} | 62 virtual void DidDeferAfterResponseStarted( |
| 63 const scoped_refptr<net::HttpResponseHeaders>& headers, |
| 64 const GURL& url) {} |
62 | 65 |
63 // Used to query whether the navigation transition will be handled. | 66 // Used to query whether the navigation transition will be handled. |
64 virtual bool WillHandleDeferAfterResponseStarted(); | 67 virtual bool WillHandleDeferAfterResponseStarted(); |
65 | 68 |
66 // Notification that a worker process has crashed. | 69 // Notification that a worker process has crashed. |
67 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) {} | 70 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) {} |
68 | 71 |
69 // A context menu should be shown, to be built using the context information | 72 // A context menu should be shown, to be built using the context information |
70 // provided in the supplied params. | 73 // provided in the supplied params. |
71 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, | 74 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 const MediaStreamRequest& request, | 122 const MediaStreamRequest& request, |
120 const MediaResponseCallback& callback); | 123 const MediaResponseCallback& callback); |
121 | 124 |
122 protected: | 125 protected: |
123 virtual ~RenderFrameHostDelegate() {} | 126 virtual ~RenderFrameHostDelegate() {} |
124 }; | 127 }; |
125 | 128 |
126 } // namespace content | 129 } // namespace content |
127 | 130 |
128 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 131 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
OLD | NEW |