summaryrefslogtreecommitdiffstats
path: root/content/browser/frame_host/navigation_request_info.h
blob: 1800531b9acc9eb1b1d55e128a0c8e181e12019c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_INFO_H_
#define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_INFO_H_

#include <string>

#include "base/basictypes.h"
#include "content/common/frame_messages.h"
#include "content/public/common/referrer.h"
#include "url/gurl.h"

namespace content {

// A struct to hold the parameters needed to start a navigation request in
// ResourceDispatcherHost. It is initialized on the UI thread, and then passed
// to the IO thread by a NavigationRequest object.
struct NavigationRequestInfo {
  explicit NavigationRequestInfo(
      const FrameHostMsg_BeginNavigation_Params& params);

  const FrameHostMsg_BeginNavigation_Params navigation_params;

  // ---------------------------------------------------------------------------
  // The following parameters should be filled in by RenderFrameHostManager
  // before the navigation request is sent to the ResourceDispatcherHost.

  // Usually the URL of the document in the top-level window, which may be
  // checked by the third-party cookie blocking policy.
  GURL first_party_for_cookies;
  bool is_main_frame;
  bool parent_is_main_frame;
};

}  // namespace content

#endif  // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_INFO_H_