ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / content / common / navigation_params.cc
blob3213337f73fa563de524f0ee15d11f619dc800bd
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 #include "content/common/navigation_params.h"
7 #include "base/memory/ref_counted_memory.h"
9 namespace content {
11 CommonNavigationParams::CommonNavigationParams()
12 : transition(ui::PAGE_TRANSITION_LINK),
13 navigation_type(FrameMsg_Navigate_Type::NORMAL),
14 allow_download(true),
15 report_type(FrameMsg_UILoadMetricsReportType::NO_REPORT) {
18 CommonNavigationParams::CommonNavigationParams(
19 const GURL& url,
20 const Referrer& referrer,
21 ui::PageTransition transition,
22 FrameMsg_Navigate_Type::Value navigation_type,
23 bool allow_download,
24 base::TimeTicks ui_timestamp,
25 FrameMsg_UILoadMetricsReportType::Value report_type,
26 const GURL& base_url_for_data_url,
27 const GURL& history_url_for_data_url)
28 : url(url),
29 referrer(referrer),
30 transition(transition),
31 navigation_type(navigation_type),
32 allow_download(allow_download),
33 ui_timestamp(ui_timestamp),
34 report_type(report_type),
35 base_url_for_data_url(base_url_for_data_url),
36 history_url_for_data_url(history_url_for_data_url) {
39 CommonNavigationParams::~CommonNavigationParams() {
42 BeginNavigationParams::BeginNavigationParams()
43 : load_flags(0),
44 has_user_gesture(false) {
47 BeginNavigationParams::BeginNavigationParams(std::string method,
48 std::string headers,
49 int load_flags,
50 bool has_user_gesture)
51 : method(method),
52 headers(headers),
53 load_flags(load_flags),
54 has_user_gesture(has_user_gesture) {
57 CommitNavigationParams::CommitNavigationParams()
58 : is_overriding_user_agent(false) {
61 CommitNavigationParams::CommitNavigationParams(const PageState& page_state,
62 bool is_overriding_user_agent,
63 base::TimeTicks navigation_start)
64 : page_state(page_state),
65 is_overriding_user_agent(is_overriding_user_agent),
66 browser_navigation_start(navigation_start) {
69 CommitNavigationParams::~CommitNavigationParams() {}
71 } // namespace content