Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Side by Side Diff: content/public/renderer/document_state.cc

Issue 18601004: Add the UMA PLT.BeginToFinish{,Doc}_AfterPreconnectRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unittest compilation failure Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 #include "content/public/renderer/document_state.h" 5 #include "content/public/renderer/document_state.h"
6 6
7 #include "content/public/common/password_form.h" 7 #include "content/public/common/password_form.h"
8 #include "content/public/renderer/navigation_state.h" 8 #include "content/public/renderer/navigation_state.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 DocumentState::DocumentState() 12 DocumentState::DocumentState()
13 : load_histograms_recorded_(false), 13 : load_histograms_recorded_(false),
14 web_timing_histograms_recorded_(false), 14 web_timing_histograms_recorded_(false),
15 was_fetched_via_spdy_(false), 15 was_fetched_via_spdy_(false),
16 was_npn_negotiated_(false), 16 was_npn_negotiated_(false),
17 was_alternate_protocol_available_(false), 17 was_alternate_protocol_available_(false),
18 connection_info_(net::HttpResponseInfo::CONNECTION_INFO_UNKNOWN), 18 connection_info_(net::HttpResponseInfo::CONNECTION_INFO_UNKNOWN),
19 was_fetched_via_proxy_(false), 19 was_fetched_via_proxy_(false),
20 was_prefetcher_(false), 20 was_prefetcher_(false),
21 was_referred_by_prefetcher_(false), 21 was_referred_by_prefetcher_(false),
22 was_after_preconnect_request_(false),
22 load_type_(UNDEFINED_LOAD), 23 load_type_(UNDEFINED_LOAD),
23 can_load_local_resources_(false) { 24 can_load_local_resources_(false) {
24 } 25 }
25 26
26 DocumentState::~DocumentState() {} 27 DocumentState::~DocumentState() {}
27 28
28 void DocumentState::set_password_form_data( 29 void DocumentState::set_password_form_data(
29 scoped_ptr<PasswordForm> data) { 30 scoped_ptr<PasswordForm> data) {
30 password_form_data_.reset(data.release()); 31 password_form_data_.reset(data.release());
31 } 32 }
32 33
33 void DocumentState::set_navigation_state(NavigationState* navigation_state) { 34 void DocumentState::set_navigation_state(NavigationState* navigation_state) {
34 navigation_state_.reset(navigation_state); 35 navigation_state_.reset(navigation_state);
35 } 36 }
36 37
37 } // namespace content 38 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698