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" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
58 class RenderViewHost; | 58 class RenderViewHost; |
59 class RenderViewHostDelegateView; | 59 class RenderViewHostDelegateView; |
60 class SessionStorageNamespace; | 60 class SessionStorageNamespace; |
61 class WebContents; | 61 class WebContents; |
62 struct ContextMenuParams; | 62 struct ContextMenuParams; |
63 struct FileChooserParams; | 63 struct FileChooserParams; |
64 struct GlobalRequestID; | 64 struct GlobalRequestID; |
65 struct NativeWebKeyboardEvent; | 65 struct NativeWebKeyboardEvent; |
66 struct Referrer; | 66 struct Referrer; |
67 struct RendererPreferences; | 67 struct RendererPreferences; |
68 struct WebHTTPPOSTBodyParams; | |
68 | 69 |
69 typedef base::Callback< void(const MediaStreamDevices&) > MediaResponseCallback; | 70 typedef base::Callback< void(const MediaStreamDevices&) > MediaResponseCallback; |
70 | 71 |
71 // | 72 // |
72 // RenderViewHostDelegate | 73 // RenderViewHostDelegate |
73 // | 74 // |
74 // An interface implemented by an object interested in knowing about the state | 75 // An interface implemented by an object interested in knowing about the state |
75 // of the RenderViewHost. | 76 // of the RenderViewHost. |
76 // | 77 // |
77 // This interface currently encompasses every type of message that was | 78 // 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|. | 415 // calling |callback|. |
415 virtual void RequestMediaAccessPermission( | 416 virtual void RequestMediaAccessPermission( |
416 const MediaStreamRequest* request, | 417 const MediaStreamRequest* request, |
417 const MediaResponseCallback& callback) {} | 418 const MediaResponseCallback& callback) {} |
418 | 419 |
419 #if defined(OS_ANDROID) | 420 #if defined(OS_ANDROID) |
420 virtual void AttachLayer(WebKit::WebLayer* layer) {} | 421 virtual void AttachLayer(WebKit::WebLayer* layer) {} |
421 virtual void RemoveLayer(WebKit::WebLayer* layer) {} | 422 virtual void RemoveLayer(WebKit::WebLayer* layer) {} |
422 #endif | 423 #endif |
423 | 424 |
425 | |
426 // For Cross-Navigation Post Submisstion | |
427 virtual void RequestOpenPostURL(RenderViewHost* rvh, | |
428 const GURL& url, | |
429 const Referrer& referrer, | |
430 WindowOpenDisposition disposition, | |
431 int64 source_frame_id, | |
432 bool is_post, | |
433 std::vector<content::WebHTTPPOSTBodyParams> post_d ata) {} | |
michaeln
2012/10/23 23:22:18
post_data probably shouldn't be passed by value
irobert
2012/11/01 19:26:31
Done.
| |
434 virtual void RequestTransferPostURL( | |
435 const GURL& url, | |
436 const Referrer& referrer, | |
437 WindowOpenDisposition disposition, | |
438 int64 source_frame_id, | |
439 const GlobalRequestID& old_request_id, | |
440 bool is_post, | |
441 std::vector<content::WebHTTPPOSTBodyParams> post_data) {} | |
michaeln
2012/10/23 23:22:18
ditto
irobert
2012/11/01 19:26:31
Done.
| |
442 | |
424 protected: | 443 protected: |
425 virtual ~RenderViewHostDelegate() {} | 444 virtual ~RenderViewHostDelegate() {} |
426 }; | 445 }; |
427 | 446 |
428 } // namespace content | 447 } // namespace content |
429 | 448 |
430 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 449 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |