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

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: 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_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 <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "content/public/common/frame_navigate_params.h"
15
14 #include "base/basictypes.h" 16 #include "base/basictypes.h"
15 #include "base/gtest_prod_util.h" 17 #include "base/gtest_prod_util.h"
16 #include "base/id_map.h" 18 #include "base/id_map.h"
17 #include "base/memory/linked_ptr.h" 19 #include "base/memory/linked_ptr.h"
18 #include "base/memory/weak_ptr.h" 20 #include "base/memory/weak_ptr.h"
19 #include "base/observer_list.h" 21 #include "base/observer_list.h"
20 #include "base/timer.h" 22 #include "base/timer.h"
21 #include "base/values.h" 23 #include "base/values.h"
22 #include "build/build_config.h" 24 #include "build/build_config.h"
23 #include "content/common/content_export.h" 25 #include "content/common/content_export.h"
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 // called, that means we have got whole html page. In here we should 891 // called, that means we have got whole html page. In here we should
890 // finally get right encoding of page. 892 // finally get right encoding of page.
891 void UpdateEncoding(WebKit::WebFrame* frame, 893 void UpdateEncoding(WebKit::WebFrame* frame,
892 const std::string& encoding_name); 894 const std::string& encoding_name);
893 895
894 void OpenURL(WebKit::WebFrame* frame, 896 void OpenURL(WebKit::WebFrame* frame,
895 const GURL& url, 897 const GURL& url,
896 const content::Referrer& referrer, 898 const content::Referrer& referrer,
897 WebKit::WebNavigationPolicy policy); 899 WebKit::WebNavigationPolicy policy);
898 900
901 void OpenPostURL(WebKit::WebFrame* frame,
902 const GURL& url,
903 const content::Referrer& referrer,
904 WebKit::WebNavigationPolicy policy,
905 std::vector<content::WebHTTPPOSTBodyParams> post_data);
michaeln 2012/10/23 23:22:18 ditto nix pass by value
irobert 2012/11/01 19:26:31 Done.
906
899 bool RunJavaScriptMessage(content::JavaScriptMessageType type, 907 bool RunJavaScriptMessage(content::JavaScriptMessageType type,
900 const string16& message, 908 const string16& message,
901 const string16& default_value, 909 const string16& default_value,
902 const GURL& frame_url, 910 const GURL& frame_url,
903 string16* result); 911 string16* result);
904 912
905 // Sends a message and runs a nested message loop. 913 // Sends a message and runs a nested message loop.
906 bool SendAndRunNestedMessageLoop(IPC::SyncMessage* message); 914 bool SendAndRunNestedMessageLoop(IPC::SyncMessage* message);
907 915
908 // Called when the "pinned to left/right edge" state needs to be updated. 916 // Called when the "pinned to left/right edge" state needs to be updated.
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after
1597 // bunch of stuff, you should probably create a helper class and put your 1605 // bunch of stuff, you should probably create a helper class and put your
1598 // data and methods on that to avoid bloating RenderView more. You can 1606 // data and methods on that to avoid bloating RenderView more. You can
1599 // use the Observer interface to filter IPC messages and receive frame change 1607 // use the Observer interface to filter IPC messages and receive frame change
1600 // notifications. 1608 // notifications.
1601 // --------------------------------------------------------------------------- 1609 // ---------------------------------------------------------------------------
1602 1610
1603 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1611 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1604 }; 1612 };
1605 1613
1606 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1614 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698