Re-subimission of https://codereview.chromium.org/1041213003/
[chromium-blink-merge.git] / content / public / renderer / document_state.cc
blob9add6b064663632963a1db18636de4ed6468f18a
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
3 // found in the LICENSE file.
5 #include "content/public/renderer/document_state.h"
7 #include "content/public/renderer/navigation_state.h"
9 namespace content {
11 DocumentState::DocumentState()
12 : load_histograms_recorded_(false),
13 web_timing_histograms_recorded_(false),
14 was_fetched_via_spdy_(false),
15 was_npn_negotiated_(false),
16 was_alternate_protocol_available_(false),
17 connection_info_(net::HttpResponseInfo::CONNECTION_INFO_UNKNOWN),
18 was_fetched_via_proxy_(false),
19 was_prefetcher_(false),
20 was_referred_by_prefetcher_(false),
21 was_after_preconnect_request_(false),
22 load_type_(UNDEFINED_LOAD),
23 can_load_local_resources_(false) {
26 DocumentState::~DocumentState() {}
28 void DocumentState::set_navigation_state(NavigationState* navigation_state) {
29 navigation_state_.reset(navigation_state);
32 } // namespace content