OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/i18n/rtl.h" | 12 #include "base/i18n/rtl.h" |
13 #include "base/process_util.h" | 13 #include "base/process_util.h" |
14 #include "base/string16.h" | 14 #include "base/string16.h" |
15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
16 #include "content/public/common/context_menu_source_type.h" | 16 #include "content/public/common/context_menu_source_type.h" |
17 #include "content/public/common/javascript_message_type.h" | 17 #include "content/public/common/javascript_message_type.h" |
18 #include "content/public/common/media_stream_request.h" | 18 #include "content/public/common/media_stream_request.h" |
19 #include "net/base/load_states.h" | 19 #include "net/base/load_states.h" |
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
| 21 #include "webkit/glue/resource_request_body.h" |
21 #include "webkit/glue/window_open_disposition.h" | 22 #include "webkit/glue/window_open_disposition.h" |
22 | 23 |
23 class GURL; | 24 class GURL; |
24 class SkBitmap; | 25 class SkBitmap; |
25 class WebKeyboardEvent; | 26 class WebKeyboardEvent; |
26 struct ViewHostMsg_CreateWindow_Params; | 27 struct ViewHostMsg_CreateWindow_Params; |
27 struct ViewHostMsg_DidFailProvisionalLoadWithError_Params; | 28 struct ViewHostMsg_DidFailProvisionalLoadWithError_Params; |
28 struct ViewHostMsg_FrameNavigate_Params; | 29 struct ViewHostMsg_FrameNavigate_Params; |
29 struct ViewMsg_PostMessage_Params; | 30 struct ViewMsg_PostMessage_Params; |
30 | 31 |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 // The RenderView's main frame document element is ready. This happens when | 229 // The RenderView's main frame document element is ready. This happens when |
229 // the document has finished parsing. | 230 // the document has finished parsing. |
230 virtual void DocumentAvailableInMainFrame(RenderViewHost* render_view_host) {} | 231 virtual void DocumentAvailableInMainFrame(RenderViewHost* render_view_host) {} |
231 | 232 |
232 // The onload handler in the RenderView's main frame has completed. | 233 // The onload handler in the RenderView's main frame has completed. |
233 virtual void DocumentOnLoadCompletedInMainFrame( | 234 virtual void DocumentOnLoadCompletedInMainFrame( |
234 RenderViewHost* render_view_host, | 235 RenderViewHost* render_view_host, |
235 int32 page_id) {} | 236 int32 page_id) {} |
236 | 237 |
237 // The page wants to open a URL with the specified disposition. | 238 // The page wants to open a URL with the specified disposition. |
238 virtual void RequestOpenURL(RenderViewHost* rvh, | 239 virtual void RequestOpenURL( |
239 const GURL& url, | 240 RenderViewHost* rvh, |
240 const Referrer& referrer, | 241 const GURL& url, |
241 WindowOpenDisposition disposition, | 242 const Referrer& referrer, |
242 int64 source_frame_id) {} | 243 WindowOpenDisposition disposition, |
| 244 int64 source_frame_id, |
| 245 std::string extra_header, |
| 246 scoped_refptr<webkit_glue::ResourceRequestBody> request_body) {} |
243 | 247 |
244 // The page wants to transfer the request to a new renderer. | 248 // The page wants to transfer the request to a new renderer. |
245 virtual void RequestTransferURL( | 249 virtual void RequestTransferURL( |
246 const GURL& url, | 250 const GURL& url, |
247 const Referrer& referrer, | 251 const Referrer& referrer, |
248 WindowOpenDisposition disposition, | 252 WindowOpenDisposition disposition, |
249 int64 source_frame_id, | 253 int64 source_frame_id, |
250 const GlobalRequestID& old_request_id) {} | 254 const GlobalRequestID& old_request_id, |
| 255 std::string extra_header, |
| 256 scoped_refptr<webkit_glue::ResourceRequestBody> request_body) {} |
251 | 257 |
252 // The page wants to close the active view in this tab. | 258 // The page wants to close the active view in this tab. |
253 virtual void RouteCloseEvent(RenderViewHost* rvh) {} | 259 virtual void RouteCloseEvent(RenderViewHost* rvh) {} |
254 | 260 |
255 // The page wants to post a message to the active view in this tab. | 261 // The page wants to post a message to the active view in this tab. |
256 virtual void RouteMessageEvent( | 262 virtual void RouteMessageEvent( |
257 RenderViewHost* rvh, | 263 RenderViewHost* rvh, |
258 const ViewMsg_PostMessage_Params& params) {} | 264 const ViewMsg_PostMessage_Params& params) {} |
259 | 265 |
260 // A javascript message, confirmation or prompt should be shown. | 266 // A javascript message, confirmation or prompt should be shown. |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 virtual void RemoveLayer(WebKit::WebLayer* layer) {} | 427 virtual void RemoveLayer(WebKit::WebLayer* layer) {} |
422 #endif | 428 #endif |
423 | 429 |
424 protected: | 430 protected: |
425 virtual ~RenderViewHostDelegate() {} | 431 virtual ~RenderViewHostDelegate() {} |
426 }; | 432 }; |
427 | 433 |
428 } // namespace content | 434 } // namespace content |
429 | 435 |
430 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 436 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |