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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 // The RenderView's main frame document element is ready. This happens when | 225 // The RenderView's main frame document element is ready. This happens when |
225 // the document has finished parsing. | 226 // the document has finished parsing. |
226 virtual void DocumentAvailableInMainFrame(RenderViewHost* render_view_host) {} | 227 virtual void DocumentAvailableInMainFrame(RenderViewHost* render_view_host) {} |
227 | 228 |
228 // The onload handler in the RenderView's main frame has completed. | 229 // The onload handler in the RenderView's main frame has completed. |
229 virtual void DocumentOnLoadCompletedInMainFrame( | 230 virtual void DocumentOnLoadCompletedInMainFrame( |
230 RenderViewHost* render_view_host, | 231 RenderViewHost* render_view_host, |
231 int32 page_id) {} | 232 int32 page_id) {} |
232 | 233 |
233 // The page wants to open a URL with the specified disposition. | 234 // The page wants to open a URL with the specified disposition. |
234 virtual void RequestOpenURL(RenderViewHost* rvh, | 235 virtual void RequestOpenURL( |
235 const GURL& url, | 236 RenderViewHost* rvh, |
236 const Referrer& referrer, | 237 const GURL& url, |
237 WindowOpenDisposition disposition, | 238 const Referrer& referrer, |
238 int64 source_frame_id, | 239 WindowOpenDisposition disposition, |
239 bool is_redirect) {} | 240 int64 source_frame_id, |
| 241 bool is_redirect, |
| 242 std::string extra_header, |
| 243 scoped_refptr<webkit_glue::ResourceRequestBody> request_body) {} |
240 | 244 |
241 // The page wants to transfer the request to a new renderer. | 245 // The page wants to transfer the request to a new renderer. |
242 virtual void RequestTransferURL( | 246 virtual void RequestTransferURL( |
243 const GURL& url, | 247 const GURL& url, |
244 const Referrer& referrer, | 248 const Referrer& referrer, |
245 WindowOpenDisposition disposition, | 249 WindowOpenDisposition disposition, |
246 int64 source_frame_id, | 250 int64 source_frame_id, |
247 const GlobalRequestID& old_request_id, | 251 const GlobalRequestID& old_request_id, |
248 bool is_redirect) {} | 252 bool is_redirect, |
| 253 std::string extra_header, |
| 254 scoped_refptr<webkit_glue::ResourceRequestBody> request_body) {} |
249 | 255 |
250 // The page wants to close the active view in this tab. | 256 // The page wants to close the active view in this tab. |
251 virtual void RouteCloseEvent(RenderViewHost* rvh) {} | 257 virtual void RouteCloseEvent(RenderViewHost* rvh) {} |
252 | 258 |
253 // The page wants to post a message to the active view in this tab. | 259 // The page wants to post a message to the active view in this tab. |
254 virtual void RouteMessageEvent( | 260 virtual void RouteMessageEvent( |
255 RenderViewHost* rvh, | 261 RenderViewHost* rvh, |
256 const ViewMsg_PostMessage_Params& params) {} | 262 const ViewMsg_PostMessage_Params& params) {} |
257 | 263 |
258 // A javascript message, confirmation or prompt should be shown. | 264 // A javascript message, confirmation or prompt should be shown. |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 const MediaStreamRequest* request, | 420 const MediaStreamRequest* request, |
415 const MediaResponseCallback& callback) {} | 421 const MediaResponseCallback& callback) {} |
416 | 422 |
417 protected: | 423 protected: |
418 virtual ~RenderViewHostDelegate() {} | 424 virtual ~RenderViewHostDelegate() {} |
419 }; | 425 }; |
420 | 426 |
421 } // namespace content | 427 } // namespace content |
422 | 428 |
423 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 429 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |