Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Side by Side Diff: content/browser/renderer_host/render_view_host_delegate.h

Issue 11193051: To fix the cross-site post submission bug. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reuse ResourceRequestBody Struct Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 class RenderViewHostDelegateView; 59 class RenderViewHostDelegateView;
59 class SessionStorageNamespace; 60 class SessionStorageNamespace;
60 class WebContents; 61 class WebContents;
61 class WebContentsImpl; 62 class WebContentsImpl;
62 struct ContextMenuParams; 63 struct ContextMenuParams;
63 struct FileChooserParams; 64 struct FileChooserParams;
64 struct GlobalRequestID; 65 struct GlobalRequestID;
65 struct NativeWebKeyboardEvent; 66 struct NativeWebKeyboardEvent;
66 struct Referrer; 67 struct Referrer;
67 struct RendererPreferences; 68 struct RendererPreferences;
69 struct ViewMsg_Request;
68 70
69 typedef base::Callback< void(const MediaStreamDevices&) > MediaResponseCallback; 71 typedef base::Callback< void(const MediaStreamDevices&) > MediaResponseCallback;
70 72
71 // 73 //
72 // RenderViewHostDelegate 74 // RenderViewHostDelegate
73 // 75 //
74 // An interface implemented by an object interested in knowing about the state 76 // An interface implemented by an object interested in knowing about the state
75 // of the RenderViewHost. 77 // of the RenderViewHost.
76 // 78 //
77 // This interface currently encompasses every type of message that was 79 // This interface currently encompasses every type of message that was
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 // calling |callback|. 416 // calling |callback|.
415 virtual void RequestMediaAccessPermission( 417 virtual void RequestMediaAccessPermission(
416 const MediaStreamRequest* request, 418 const MediaStreamRequest* request,
417 const MediaResponseCallback& callback) {} 419 const MediaResponseCallback& callback) {}
418 420
419 #if defined(OS_ANDROID) 421 #if defined(OS_ANDROID)
420 virtual void AttachLayer(WebKit::WebLayer* layer) {} 422 virtual void AttachLayer(WebKit::WebLayer* layer) {}
421 virtual void RemoveLayer(WebKit::WebLayer* layer) {} 423 virtual void RemoveLayer(WebKit::WebLayer* layer) {}
422 #endif 424 #endif
423 425
426
427 // For Cross-Navigation Post Submisstion
428 virtual void RequestOpenPostURL(RenderViewHost* rvh,
429 const GURL& url,
430 const Referrer& referrer,
431 WindowOpenDisposition disposition,
432 int64 source_frame_id,
433 ViewMsg_Request request) {}
michaeln 2012/11/02 00:08:23 please avoid pass by value (with non primitive typ
irobert 2012/11/02 17:22:55 Done.
434
435 virtual void RequestTransferPostURL(
436 const GURL& url,
437 const Referrer& referrer,
438 WindowOpenDisposition disposition,
439 int64 source_frame_id,
440 const GlobalRequestID& old_request_id,
441 ViewMsg_Request request) {}
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698