| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_INFO_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_INFO_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_INFO_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_INFO_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "content/common/content_export.h" |
| 11 #include "content/common/frame_messages.h" | 12 #include "content/common/frame_messages.h" |
| 12 #include "content/public/common/referrer.h" | 13 #include "content/public/common/referrer.h" |
| 13 #include "url/gurl.h" | 14 #include "url/gurl.h" |
| 14 | 15 |
| 15 namespace content { | 16 namespace content { |
| 16 | 17 |
| 17 // A struct to hold the parameters needed to start a navigation request in | 18 // A struct to hold the parameters needed to start a navigation request in |
| 18 // ResourceDispatcherHost. It is initialized on the UI thread, and then passed | 19 // ResourceDispatcherHost. It is initialized on the UI thread, and then passed |
| 19 // to the IO thread by a NavigationRequest object. | 20 // to the IO thread by a NavigationRequest object. |
| 20 struct NavigationRequestInfo { | 21 struct CONTENT_EXPORT NavigationRequestInfo { |
| 21 explicit NavigationRequestInfo( | 22 explicit NavigationRequestInfo( |
| 22 const FrameHostMsg_BeginNavigation_Params& params); | 23 const FrameHostMsg_BeginNavigation_Params& params); |
| 23 | 24 |
| 24 const FrameHostMsg_BeginNavigation_Params navigation_params; | 25 const FrameHostMsg_BeginNavigation_Params navigation_params; |
| 25 | 26 |
| 26 // --------------------------------------------------------------------------- | 27 // --------------------------------------------------------------------------- |
| 27 // The following parameters should be filled in by RenderFrameHostManager | 28 // The following parameters should be filled in by RenderFrameHostManager |
| 28 // before the navigation request is sent to the ResourceDispatcherHost. | 29 // before the navigation request is sent to the ResourceDispatcherHost. |
| 29 | 30 |
| 30 // Usually the URL of the document in the top-level window, which may be | 31 // Usually the URL of the document in the top-level window, which may be |
| 31 // checked by the third-party cookie blocking policy. | 32 // checked by the third-party cookie blocking policy. |
| 32 GURL first_party_for_cookies; | 33 GURL first_party_for_cookies; |
| 33 bool is_main_frame; | 34 bool is_main_frame; |
| 34 bool parent_is_main_frame; | 35 bool parent_is_main_frame; |
| 35 }; | 36 }; |
| 36 | 37 |
| 37 } // namespace content | 38 } // namespace content |
| 38 | 39 |
| 39 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_INFO_H_ | 40 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_INFO_H_ |
| OLD | NEW |