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

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

Issue 11193051: To fix the cross-site post submission bug. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix FileRead Permission Created 8 years, 2 months 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_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/observer_list.h" 14 #include "base/observer_list.h"
15 #include "base/process_util.h" 15 #include "base/process_util.h"
16 #include "content/browser/renderer_host/render_widget_host_impl.h" 16 #include "content/browser/renderer_host/render_widget_host_impl.h"
17 #include "content/browser/site_instance_impl.h" 17 #include "content/browser/site_instance_impl.h"
18 #include "content/common/accessibility_node_data.h" 18 #include "content/common/accessibility_node_data.h"
19 #include "content/public/browser/notification_observer.h" 19 #include "content/public/browser/notification_observer.h"
20 #include "content/public/browser/render_view_host.h" 20 #include "content/public/browser/render_view_host.h"
21 #include "content/public/common/javascript_message_type.h" 21 #include "content/public/common/javascript_message_type.h"
22 #include "content/public/common/window_container_type.h" 22 #include "content/public/common/window_container_type.h"
23 #include "net/base/load_states.h" 23 #include "net/base/load_states.h"
24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h"
25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h"
26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h"
27 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLRequest.h"
27 #include "webkit/glue/window_open_disposition.h" 28 #include "webkit/glue/window_open_disposition.h"
28 29
29 class ChildProcessSecurityPolicyImpl; 30 class ChildProcessSecurityPolicyImpl;
30 class SessionStorageNamespaceImpl; 31 class SessionStorageNamespaceImpl;
31 class SkBitmap; 32 class SkBitmap;
32 class ViewMsg_Navigate; 33 class ViewMsg_Navigate;
33 struct AccessibilityHostMsg_NotificationParams; 34 struct AccessibilityHostMsg_NotificationParams;
34 struct MediaPlayerAction; 35 struct MediaPlayerAction;
35 struct ViewHostMsg_CreateWindow_Params; 36 struct ViewHostMsg_CreateWindow_Params;
36 struct ViewHostMsg_DidFailProvisionalLoadWithError_Params; 37 struct ViewHostMsg_DidFailProvisionalLoadWithError_Params;
(...skipping 17 matching lines...) Expand all
54 class MediaPlayerManagerAndroid; 55 class MediaPlayerManagerAndroid;
55 #endif 56 #endif
56 class PowerSaveBlocker; 57 class PowerSaveBlocker;
57 class RenderViewHostObserver; 58 class RenderViewHostObserver;
58 class RenderWidgetHostDelegate; 59 class RenderWidgetHostDelegate;
59 class SessionStorageNamespace; 60 class SessionStorageNamespace;
60 class TestRenderViewHost; 61 class TestRenderViewHost;
61 struct ContextMenuParams; 62 struct ContextMenuParams;
62 struct FileChooserParams; 63 struct FileChooserParams;
63 struct Referrer; 64 struct Referrer;
65 struct WebHTTPPOSTBodyParams;
64 struct ShowDesktopNotificationHostMsgParams; 66 struct ShowDesktopNotificationHostMsgParams;
65 67
66 // NotificationObserver used to listen for EXECUTE_JAVASCRIPT_RESULT 68 // NotificationObserver used to listen for EXECUTE_JAVASCRIPT_RESULT
67 // notifications. 69 // notifications.
68 class ExecuteNotificationObserver : public NotificationObserver { 70 class ExecuteNotificationObserver : public NotificationObserver {
69 public: 71 public:
70 explicit ExecuteNotificationObserver(int id); 72 explicit ExecuteNotificationObserver(int id);
71 virtual ~ExecuteNotificationObserver(); 73 virtual ~ExecuteNotificationObserver();
72 virtual void Observe(int type, 74 virtual void Observe(int type,
73 const NotificationSource& source, 75 const NotificationSource& source,
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 void OnMsgDidStopLoading(); 511 void OnMsgDidStopLoading();
510 void OnMsgDidChangeLoadProgress(double load_progress); 512 void OnMsgDidChangeLoadProgress(double load_progress);
511 void OnMsgDocumentAvailableInMainFrame(); 513 void OnMsgDocumentAvailableInMainFrame();
512 void OnMsgDocumentOnLoadCompletedInMainFrame(int32 page_id); 514 void OnMsgDocumentOnLoadCompletedInMainFrame(int32 page_id);
513 void OnMsgContextMenu(const ContextMenuParams& params); 515 void OnMsgContextMenu(const ContextMenuParams& params);
514 void OnMsgToggleFullscreen(bool enter_fullscreen); 516 void OnMsgToggleFullscreen(bool enter_fullscreen);
515 void OnMsgOpenURL(const GURL& url, 517 void OnMsgOpenURL(const GURL& url,
516 const Referrer& referrer, 518 const Referrer& referrer,
517 WindowOpenDisposition disposition, 519 WindowOpenDisposition disposition,
518 int64 source_frame_id); 520 int64 source_frame_id);
521 void OnMsgOpenPostURL(const GURL& url,
522 const Referrer& referrer,
523 WindowOpenDisposition disposition,
524 int64 source_frame_id,
525 std::vector<content::WebHTTPPOSTBodyParams> post_data);
michaeln 2012/10/23 23:22:18 ditto, probably don't want to pass by value
irobert 2012/11/01 19:26:31 Done.
519 void OnMsgDidContentsPreferredSizeChange(const gfx::Size& new_size); 526 void OnMsgDidContentsPreferredSizeChange(const gfx::Size& new_size);
520 void OnMsgDidChangeScrollbarsForMainFrame(bool has_horizontal_scrollbar, 527 void OnMsgDidChangeScrollbarsForMainFrame(bool has_horizontal_scrollbar,
521 bool has_vertical_scrollbar); 528 bool has_vertical_scrollbar);
522 void OnMsgDidChangeScrollOffsetPinningForMainFrame(bool is_pinned_to_left, 529 void OnMsgDidChangeScrollOffsetPinningForMainFrame(bool is_pinned_to_left,
523 bool is_pinned_to_right); 530 bool is_pinned_to_right);
524 void OnMsgDidChangeNumWheelEvents(int count); 531 void OnMsgDidChangeNumWheelEvents(int count);
525 void OnMsgSelectionChanged(const string16& text, 532 void OnMsgSelectionChanged(const string16& text,
526 size_t offset, 533 size_t offset,
527 const ui::Range& range); 534 const ui::Range& range);
528 void OnMsgSelectionBoundsChanged(const gfx::Rect& start_rect, 535 void OnMsgSelectionBoundsChanged(const gfx::Rect& start_rect,
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 709 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
703 }; 710 };
704 711
705 #if defined(COMPILER_MSVC) 712 #if defined(COMPILER_MSVC)
706 #pragma warning(pop) 713 #pragma warning(pop)
707 #endif 714 #endif
708 715
709 } // namespace content 716 } // namespace content
710 717
711 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 718 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698