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/frame_navigate_params.h" | |
17 #include "content/public/common/javascript_message_type.h" | 18 #include "content/public/common/javascript_message_type.h" |
18 #include "content/public/common/media_stream_request.h" | 19 #include "content/public/common/media_stream_request.h" |
19 #include "net/base/load_states.h" | 20 #include "net/base/load_states.h" |
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.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; |
31 struct ViewMsg_PostRequest_Params; | |
30 | 32 |
31 namespace webkit_glue { | 33 namespace webkit_glue { |
32 struct WebPreferences; | 34 struct WebPreferences; |
33 } | 35 } |
34 | 36 |
35 namespace base { | 37 namespace base { |
36 class ListValue; | 38 class ListValue; |
37 class TimeTicks; | 39 class TimeTicks; |
38 } | 40 } |
39 | 41 |
(...skipping 18 matching lines...) Expand all Loading... | |
58 class RenderViewHostDelegateView; | 60 class RenderViewHostDelegateView; |
59 class SessionStorageNamespace; | 61 class SessionStorageNamespace; |
60 class WebContents; | 62 class WebContents; |
61 class WebContentsImpl; | 63 class WebContentsImpl; |
62 struct ContextMenuParams; | 64 struct ContextMenuParams; |
63 struct FileChooserParams; | 65 struct FileChooserParams; |
64 struct GlobalRequestID; | 66 struct GlobalRequestID; |
65 struct NativeWebKeyboardEvent; | 67 struct NativeWebKeyboardEvent; |
66 struct Referrer; | 68 struct Referrer; |
67 struct RendererPreferences; | 69 struct RendererPreferences; |
70 struct ViewMsg_Request; | |
michaeln
2012/11/05 23:38:29
stray code from before
irobert
2012/11/06 05:39:20
Done.
| |
68 | 71 |
69 typedef base::Callback< void(const MediaStreamDevices&) > MediaResponseCallback; | 72 typedef base::Callback< void(const MediaStreamDevices&) > MediaResponseCallback; |
70 | 73 |
71 // | 74 // |
72 // RenderViewHostDelegate | 75 // RenderViewHostDelegate |
73 // | 76 // |
74 // An interface implemented by an object interested in knowing about the state | 77 // An interface implemented by an object interested in knowing about the state |
75 // of the RenderViewHost. | 78 // of the RenderViewHost. |
76 // | 79 // |
77 // This interface currently encompasses every type of message that was | 80 // This interface currently encompasses every type of message that was |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
414 // calling |callback|. | 417 // calling |callback|. |
415 virtual void RequestMediaAccessPermission( | 418 virtual void RequestMediaAccessPermission( |
416 const MediaStreamRequest* request, | 419 const MediaStreamRequest* request, |
417 const MediaResponseCallback& callback) {} | 420 const MediaResponseCallback& callback) {} |
418 | 421 |
419 #if defined(OS_ANDROID) | 422 #if defined(OS_ANDROID) |
420 virtual void AttachLayer(WebKit::WebLayer* layer) {} | 423 virtual void AttachLayer(WebKit::WebLayer* layer) {} |
421 virtual void RemoveLayer(WebKit::WebLayer* layer) {} | 424 virtual void RemoveLayer(WebKit::WebLayer* layer) {} |
422 #endif | 425 #endif |
423 | 426 |
427 | |
428 // For Cross-Navigation Post Submisstion | |
429 virtual void RequestOpenPostURL( | |
michaeln
2012/11/05 23:38:29
In previous snapshots you had it as an open questi
irobert
2012/11/06 05:39:20
Yes. I am also have the same feeling, since the on
| |
430 RenderViewHost* rvh, | |
431 const GURL& url, | |
432 const Referrer& referrer, | |
433 WindowOpenDisposition disposition, | |
434 int64 source_frame_id, | |
435 const ViewMsg_PostRequest_Params& request) {} | |
436 | |
437 virtual void RequestTransferPostURL( | |
438 const GURL& url, | |
439 const Referrer& referrer, | |
440 WindowOpenDisposition disposition, | |
441 int64 source_frame_id, | |
442 const GlobalRequestID& old_request_id, | |
443 const ViewMsg_PostRequest_Params& request) {} | |
444 | |
424 protected: | 445 protected: |
425 virtual ~RenderViewHostDelegate() {} | 446 virtual ~RenderViewHostDelegate() {} |
426 }; | 447 }; |
427 | 448 |
428 } // namespace content | 449 } // namespace content |
429 | 450 |
430 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 451 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |