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 | 10 |
11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
12 #include "content/public/common/page_transition_types.h" | 12 #include "content/public/common/page_transition_types.h" |
13 #include "content/public/common/password_form.h" | 13 #include "content/public/common/password_form.h" |
14 #include "content/public/common/referrer.h" | 14 #include "content/public/common/referrer.h" |
15 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
16 #include "net/base/host_port_pair.h" | 16 #include "net/base/host_port_pair.h" |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 | 19 |
20 // Each WebHTTPPOSTBodyParams struct is for an element in the WebHTTPBody. | |
21 struct CONTENT_EXPORT WebHTTPPOSTBodyParams { | |
22 WebHTTPPOSTBodyParams(); | |
23 ~WebHTTPPOSTBodyParams(); | |
24 | |
25 std::string method; | |
26 enum Type { TypeData, TypeFile, TypeBlob, TypeURL } type; | |
27 | |
28 std::string data; | |
29 std::string filePath; | |
30 long long fileStart; | |
31 long long fileLength; // -1 means to the end of the file. | |
32 double modificationTime; | |
33 | |
34 // TODO:Do not clear how to use this field | |
35 GURL url; // For TypeBlob or TypeURL. | |
36 //WebURL blobURL; | |
37 | |
38 // To pass HTTP Header Info | |
39 // TODO: Will Move to a new struct only for headers | |
michaeln
2012/10/23 23:22:18
Move the |method| data member too?
| |
40 std::string ContentType; | |
41 }; | |
42 | |
20 // Struct used by WebContentsObserver. | 43 // Struct used by WebContentsObserver. |
21 struct CONTENT_EXPORT FrameNavigateParams { | 44 struct CONTENT_EXPORT FrameNavigateParams { |
22 FrameNavigateParams(); | 45 FrameNavigateParams(); |
23 ~FrameNavigateParams(); | 46 ~FrameNavigateParams(); |
24 | 47 |
25 // Page ID of this navigation. The renderer creates a new unique page ID | 48 // 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 | 49 // 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 | 50 // page IDs for user actions, and the old page IDs will be reloaded when |
28 // iframes are loaded automatically. | 51 // iframes are loaded automatically. |
29 int32 page_id; | 52 int32 page_id; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
65 // Contents MIME type of main frame. | 88 // Contents MIME type of main frame. |
66 std::string contents_mime_type; | 89 std::string contents_mime_type; |
67 | 90 |
68 // Remote address of the socket which fetched this resource. | 91 // Remote address of the socket which fetched this resource. |
69 net::HostPortPair socket_address; | 92 net::HostPortPair socket_address; |
70 }; | 93 }; |
71 | 94 |
72 } // namespace content | 95 } // namespace content |
73 | 96 |
74 #endif // CONTENT_PUBLIC_COMMON_FRAME_NAVIGATE_PARAMS_H_ | 97 #endif // CONTENT_PUBLIC_COMMON_FRAME_NAVIGATE_PARAMS_H_ |
OLD | NEW |