 Chromium Code Reviews
 Chromium Code Reviews Issue 11193051:
  To fix the cross-site post submission bug. 
  Base URL: svn://svn.chromium.org/chrome/trunk/src
    
  
    Issue 11193051:
  To fix the cross-site post submission bug. 
  Base URL: svn://svn.chromium.org/chrome/trunk/src| 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_PUBLIC_COMMON_FRAME_NAVIGATE_PARAMS_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_FRAME_NAVIGATE_PARAMS_H_ | 
| 6 #define CONTENT_PUBLIC_COMMON_FRAME_NAVIGATE_PARAMS_H_ | 6 #define CONTENT_PUBLIC_COMMON_FRAME_NAVIGATE_PARAMS_H_ | 
| 7 | 7 | 
| 8 #include <string> | 8 #include <string> | 
| 9 #include <vector> | 9 #include <vector> | 
| 10 #include <map> | |
| 10 | 11 | 
| 11 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" | 
| 12 #include "content/public/common/page_transition_types.h" | 13 #include "content/public/common/page_transition_types.h" | 
| 13 #include "content/public/common/password_form.h" | 14 #include "content/public/common/password_form.h" | 
| 14 #include "content/public/common/referrer.h" | 15 #include "content/public/common/referrer.h" | 
| 15 #include "googleurl/src/gurl.h" | 16 #include "googleurl/src/gurl.h" | 
| 16 #include "net/base/host_port_pair.h" | 17 #include "net/base/host_port_pair.h" | 
| 18 #include "webkit/glue/resource_request_body.h" | |
| 17 | 19 | 
| 18 namespace content { | 20 namespace content { | 
| 19 | 21 | 
| 22 // ViewMsg_Request will store all the request info. | |
| 23 // I believe we should have a new file for this struct. | |
| 24 struct CONTENT_EXPORT ViewMsg_Request { | |
| 25 ViewMsg_Request(); | |
| 26 ~ViewMsg_Request(); | |
| 27 | |
| 28 std::string method; | |
| 29 GURL url; | |
| 30 std::map<std::string, std::string> headers; | |
| 31 scoped_refptr<webkit_glue::ResourceRequestBody> request_body; | |
| 
michaeln
2012/11/02 00:08:23
Would these additional params make more sense as a
 
irobert
2012/11/02 17:22:55
I think the question is whether do we need to keep
 
michaeln
2012/11/02 22:50:02
Can you point me to a bug about redirect chain bei
 | |
| 32 }; | |
| 33 | |
| 20 // Struct used by WebContentsObserver. | 34 // Struct used by WebContentsObserver. | 
| 21 struct CONTENT_EXPORT FrameNavigateParams { | 35 struct CONTENT_EXPORT FrameNavigateParams { | 
| 22 FrameNavigateParams(); | 36 FrameNavigateParams(); | 
| 23 ~FrameNavigateParams(); | 37 ~FrameNavigateParams(); | 
| 24 | 38 | 
| 25 // Page ID of this navigation. The renderer creates a new unique page ID | 39 // Page ID of this navigation. The renderer creates a new unique page ID | 
| 26 // anytime a new session history entry is created. This means you'll get new | 40 // anytime a new session history entry is created. This means you'll get new | 
| 27 // page IDs for user actions, and the old page IDs will be reloaded when | 41 // page IDs for user actions, and the old page IDs will be reloaded when | 
| 28 // iframes are loaded automatically. | 42 // iframes are loaded automatically. | 
| 29 int32 page_id; | 43 int32 page_id; | 
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 65 // Contents MIME type of main frame. | 79 // Contents MIME type of main frame. | 
| 66 std::string contents_mime_type; | 80 std::string contents_mime_type; | 
| 67 | 81 | 
| 68 // Remote address of the socket which fetched this resource. | 82 // Remote address of the socket which fetched this resource. | 
| 69 net::HostPortPair socket_address; | 83 net::HostPortPair socket_address; | 
| 70 }; | 84 }; | 
| 71 | 85 | 
| 72 } // namespace content | 86 } // namespace content | 
| 73 | 87 | 
| 74 #endif // CONTENT_PUBLIC_COMMON_FRAME_NAVIGATE_PARAMS_H_ | 88 #endif // CONTENT_PUBLIC_COMMON_FRAME_NAVIGATE_PARAMS_H_ | 
| OLD | NEW |