Add remoting and PPAPI tests to GN build
[chromium-blink-merge.git] / content / browser / frame_host / navigation_request_info.h
blob2721c3d73ad539ee9b6afb1263abf8d426d943ae
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_INFO_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_INFO_H_
8 #include <string>
10 #include "base/basictypes.h"
11 #include "base/memory/ref_counted.h"
12 #include "content/common/content_export.h"
13 #include "content/common/navigation_params.h"
14 #include "content/common/resource_request_body.h"
15 #include "content/public/common/referrer.h"
16 #include "url/gurl.h"
18 namespace content {
19 class ResourceRequestBody;
21 // A struct to hold the parameters needed to start a navigation request in
22 // ResourceDispatcherHost. It is initialized on the UI thread, and then passed
23 // to the IO thread by a NavigationRequest object.
24 struct CONTENT_EXPORT NavigationRequestInfo {
25 NavigationRequestInfo(const CommonNavigationParams& common_params,
26 const BeginNavigationParams& params,
27 const GURL& first_party_for_cookies,
28 bool is_main_frame,
29 bool parent_is_main_frame,
30 scoped_refptr<ResourceRequestBody> request_body);
31 ~NavigationRequestInfo();
33 const CommonNavigationParams common_params;
34 const BeginNavigationParams begin_params;
36 // Usually the URL of the document in the top-level window, which may be
37 // checked by the third-party cookie blocking policy.
38 const GURL first_party_for_cookies;
40 const bool is_main_frame;
41 const bool parent_is_main_frame;
43 scoped_refptr<ResourceRequestBody> request_body;
46 } // namespace content
48 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_INFO_H_