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

Side by Side Diff: content/renderer/render_view_impl.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_RENDERER_RENDER_VIEW_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/gtest_prod_util.h" 11 #include "base/gtest_prod_util.h"
12 #include "base/id_map.h" 12 #include "base/id_map.h"
13 #include "base/memory/linked_ptr.h" 13 #include "base/memory/linked_ptr.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/observer_list.h" 15 #include "base/observer_list.h"
16 #include "base/timer.h" 16 #include "base/timer.h"
17 #include "base/values.h" 17 #include "base/values.h"
18 #include "build/build_config.h" 18 #include "build/build_config.h"
19 #include "content/common/content_export.h" 19 #include "content/common/content_export.h"
20 #include "content/common/edit_command.h" 20 #include "content/common/edit_command.h"
21 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" 21 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h"
22 #include "content/common/navigation_gesture.h" 22 #include "content/common/navigation_gesture.h"
23 #include "content/common/view_message_enums.h" 23 #include "content/common/view_message_enums.h"
24 #include "content/public/common/frame_navigate_params.h"
24 #include "content/public/common/javascript_message_type.h" 25 #include "content/public/common/javascript_message_type.h"
25 #include "content/public/common/page_zoom.h" 26 #include "content/public/common/page_zoom.h"
26 #include "content/public/common/referrer.h" 27 #include "content/public/common/referrer.h"
27 #include "content/public/common/renderer_preferences.h" 28 #include "content/public/common/renderer_preferences.h"
28 #include "content/public/common/stop_find_action.h" 29 #include "content/public/common/stop_find_action.h"
29 #include "content/public/renderer/render_view.h" 30 #include "content/public/renderer/render_view.h"
30 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h" 31 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h"
31 #include "content/renderer/render_widget.h" 32 #include "content/renderer/render_widget.h"
32 #include "content/renderer/renderer_webcookiejar_impl.h" 33 #include "content/renderer/renderer_webcookiejar_impl.h"
33 #include "ipc/ipc_platform_file.h" 34 #include "ipc/ipc_platform_file.h"
(...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 // called, that means we have got whole html page. In here we should 853 // called, that means we have got whole html page. In here we should
853 // finally get right encoding of page. 854 // finally get right encoding of page.
854 void UpdateEncoding(WebKit::WebFrame* frame, 855 void UpdateEncoding(WebKit::WebFrame* frame,
855 const std::string& encoding_name); 856 const std::string& encoding_name);
856 857
857 void OpenURL(WebKit::WebFrame* frame, 858 void OpenURL(WebKit::WebFrame* frame,
858 const GURL& url, 859 const GURL& url,
859 const Referrer& referrer, 860 const Referrer& referrer,
860 WebKit::WebNavigationPolicy policy); 861 WebKit::WebNavigationPolicy policy);
861 862
863 void OpenPostURL(WebKit::WebFrame* frame,
864 const GURL& url,
865 const content::Referrer& referrer,
866 WebKit::WebNavigationPolicy policy,
867 const ViewMsg_Request& request);
868
862 bool RunJavaScriptMessage(JavaScriptMessageType type, 869 bool RunJavaScriptMessage(JavaScriptMessageType type,
863 const string16& message, 870 const string16& message,
864 const string16& default_value, 871 const string16& default_value,
865 const GURL& frame_url, 872 const GURL& frame_url,
866 string16* result); 873 string16* result);
867 874
868 // Sends a message and runs a nested message loop. 875 // Sends a message and runs a nested message loop.
869 bool SendAndRunNestedMessageLoop(IPC::SyncMessage* message); 876 bool SendAndRunNestedMessageLoop(IPC::SyncMessage* message);
870 877
871 // Called when the "pinned to left/right edge" state needs to be updated. 878 // Called when the "pinned to left/right edge" state needs to be updated.
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
1544 // use the Observer interface to filter IPC messages and receive frame change 1551 // use the Observer interface to filter IPC messages and receive frame change
1545 // notifications. 1552 // notifications.
1546 // --------------------------------------------------------------------------- 1553 // ---------------------------------------------------------------------------
1547 1554
1548 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1555 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1549 }; 1556 };
1550 1557
1551 } // namespace content 1558 } // namespace content
1552 1559
1553 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1560 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698