| 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" | |
| 13 #include "content/public/common/referrer.h" | 12 #include "content/public/common/referrer.h" |
| 14 #include "net/base/host_port_pair.h" | 13 #include "net/base/host_port_pair.h" |
| 14 #include "ui/base/page_transition_types.h" |
| 15 #include "url/gurl.h" | 15 #include "url/gurl.h" |
| 16 | 16 |
| 17 namespace content { | 17 namespace content { |
| 18 | 18 |
| 19 // Struct used by WebContentsObserver. | 19 // Struct used by WebContentsObserver. |
| 20 struct CONTENT_EXPORT FrameNavigateParams { | 20 struct CONTENT_EXPORT FrameNavigateParams { |
| 21 FrameNavigateParams(); | 21 FrameNavigateParams(); |
| 22 ~FrameNavigateParams(); | 22 ~FrameNavigateParams(); |
| 23 | 23 |
| 24 // Page ID of this navigation. The renderer creates a new unique page ID | 24 // Page ID of this navigation. The renderer creates a new unique page ID |
| (...skipping 10 matching lines...) Expand all Loading... |
| 35 // parsed yet and is therefore not reflected. | 35 // parsed yet and is therefore not reflected. |
| 36 // This is of interest when a MHTML file is loaded, as the base URL has been | 36 // This is of interest when a MHTML file is loaded, as the base URL has been |
| 37 // set to original URL of the site the MHTML represents. | 37 // set to original URL of the site the MHTML represents. |
| 38 GURL base_url; | 38 GURL base_url; |
| 39 | 39 |
| 40 // URL of the referrer of this load. WebKit generates this based on the | 40 // URL of the referrer of this load. WebKit generates this based on the |
| 41 // source of the event that caused the load. | 41 // source of the event that caused the load. |
| 42 content::Referrer referrer; | 42 content::Referrer referrer; |
| 43 | 43 |
| 44 // The type of transition. | 44 // The type of transition. |
| 45 PageTransition transition; | 45 ui::PageTransition transition; |
| 46 | 46 |
| 47 // Lists the redirects that occurred on the way to the current page. This | 47 // Lists the redirects that occurred on the way to the current page. This |
| 48 // vector has the same format as reported by the WebDataSource in the glue, | 48 // vector has the same format as reported by the WebDataSource in the glue, |
| 49 // with the current page being the last one in the list (so even when | 49 // with the current page being the last one in the list (so even when |
| 50 // there's no redirect, there will be one entry in the list. | 50 // there's no redirect, there will be one entry in the list. |
| 51 std::vector<GURL> redirects; | 51 std::vector<GURL> redirects; |
| 52 | 52 |
| 53 // Set to false if we want to update the session history but not update | 53 // Set to false if we want to update the session history but not update |
| 54 // the browser history. E.g., on unreachable urls. | 54 // the browser history. E.g., on unreachable urls. |
| 55 bool should_update_history; | 55 bool should_update_history; |
| 56 | 56 |
| 57 // See SearchableFormData for a description of these. | 57 // See SearchableFormData for a description of these. |
| 58 GURL searchable_form_url; | 58 GURL searchable_form_url; |
| 59 std::string searchable_form_encoding; | 59 std::string searchable_form_encoding; |
| 60 | 60 |
| 61 // Contents MIME type of main frame. | 61 // Contents MIME type of main frame. |
| 62 std::string contents_mime_type; | 62 std::string contents_mime_type; |
| 63 | 63 |
| 64 // Remote address of the socket which fetched this resource. | 64 // Remote address of the socket which fetched this resource. |
| 65 net::HostPortPair socket_address; | 65 net::HostPortPair socket_address; |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 } // namespace content | 68 } // namespace content |
| 69 | 69 |
| 70 #endif // CONTENT_PUBLIC_COMMON_FRAME_NAVIGATE_PARAMS_H_ | 70 #endif // CONTENT_PUBLIC_COMMON_FRAME_NAVIGATE_PARAMS_H_ |
| OLD | NEW |