OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
13 #include "content/public/common/page_transition_types.h" | 13 #include "content/public/common/page_transition_types.h" |
| 14 #include "content/public/common/referrer.h" |
14 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
15 #include "net/base/host_port_pair.h" | 16 #include "net/base/host_port_pair.h" |
16 #include "webkit/glue/password_form.h" | 17 #include "webkit/glue/password_form.h" |
17 | 18 |
18 namespace content { | 19 namespace content { |
19 | 20 |
20 // Struct used by TabContentsObserver. | 21 // Struct used by TabContentsObserver. |
21 struct CONTENT_EXPORT FrameNavigateParams { | 22 struct CONTENT_EXPORT FrameNavigateParams { |
22 FrameNavigateParams(); | 23 FrameNavigateParams(); |
23 ~FrameNavigateParams(); | 24 ~FrameNavigateParams(); |
24 | 25 |
25 // Page ID of this navigation. The renderer creates a new unique page ID | 26 // 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 | 27 // 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 | 28 // page IDs for user actions, and the old page IDs will be reloaded when |
28 // iframes are loaded automatically. | 29 // iframes are loaded automatically. |
29 int32 page_id; | 30 int32 page_id; |
30 | 31 |
31 // URL of the page being loaded. | 32 // URL of the page being loaded. |
32 GURL url; | 33 GURL url; |
33 | 34 |
34 // The base URL for the page's document when the frame was committed. Empty if | 35 // The base URL for the page's document when the frame was committed. Empty if |
35 // similar to 'url' above. Note that any base element in the page has not been | 36 // similar to 'url' above. Note that any base element in the page has not been |
36 // parsed yet and is therefore not reflected. | 37 // parsed yet and is therefore not reflected. |
37 // This is of interest when a MHTML file is loaded, as the base URL has been | 38 // This is of interest when a MHTML file is loaded, as the base URL has been |
38 // set to original URL of the site the MHTML represents. | 39 // set to original URL of the site the MHTML represents. |
39 GURL base_url; | 40 GURL base_url; |
40 | 41 |
41 // URL of the referrer of this load. WebKit generates this based on the | 42 // URL of the referrer of this load. WebKit generates this based on the |
42 // source of the event that caused the load. | 43 // source of the event that caused the load. |
43 GURL referrer; | 44 content::Referrer referrer; |
44 | 45 |
45 // The type of transition. | 46 // The type of transition. |
46 PageTransition transition; | 47 PageTransition transition; |
47 | 48 |
48 // Lists the redirects that occurred on the way to the current page. This | 49 // Lists the redirects that occurred on the way to the current page. This |
49 // vector has the same format as reported by the WebDataSource in the glue, | 50 // vector has the same format as reported by the WebDataSource in the glue, |
50 // with the current page being the last one in the list (so even when | 51 // with the current page being the last one in the list (so even when |
51 // there's no redirect, there will be one entry in the list. | 52 // there's no redirect, there will be one entry in the list. |
52 std::vector<GURL> redirects; | 53 std::vector<GURL> redirects; |
53 | 54 |
(...skipping 11 matching lines...) Expand all Loading... |
65 // Contents MIME type of main frame. | 66 // Contents MIME type of main frame. |
66 std::string contents_mime_type; | 67 std::string contents_mime_type; |
67 | 68 |
68 // Remote address of the socket which fetched this resource. | 69 // Remote address of the socket which fetched this resource. |
69 net::HostPortPair socket_address; | 70 net::HostPortPair socket_address; |
70 }; | 71 }; |
71 | 72 |
72 } // namespace content | 73 } // namespace content |
73 | 74 |
74 #endif // CONTENT_PUBLIC_COMMON_FRAME_NAVIGATE_PARAMS_H_ | 75 #endif // CONTENT_PUBLIC_COMMON_FRAME_NAVIGATE_PARAMS_H_ |
OLD | NEW |