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

Side by Side Diff: content/child/request_extra_data.cc

Issue 18601004: Add the UMA PLT.BeginToFinish{,Doc}_AfterPreconnectRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: follow interface change Created 7 years, 5 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/child/request_extra_data.h" 5 #include "content/child/request_extra_data.h"
6 6
7 using WebKit::WebReferrerPolicy; 7 using WebKit::WebReferrerPolicy;
8 using WebKit::WebString; 8 using WebKit::WebString;
9 9
10 namespace content { 10 namespace content {
11 11
12 const int RequestExtraData::kType = 1;
13
12 RequestExtraData::RequestExtraData(WebReferrerPolicy referrer_policy, 14 RequestExtraData::RequestExtraData(WebReferrerPolicy referrer_policy,
13 const WebString& custom_user_agent, 15 const WebString& custom_user_agent,
16 bool was_after_preconnect_request,
14 bool is_main_frame, 17 bool is_main_frame,
15 int64 frame_id, 18 int64 frame_id,
16 bool parent_is_main_frame, 19 bool parent_is_main_frame,
17 int64 parent_frame_id, 20 int64 parent_frame_id,
18 bool allow_download, 21 bool allow_download,
19 PageTransition transition_type, 22 PageTransition transition_type,
20 int transferred_request_child_id, 23 int transferred_request_child_id,
21 int transferred_request_request_id) 24 int transferred_request_request_id)
22 : webkit_glue::WebURLRequestExtraDataImpl(referrer_policy, 25 : webkit_glue::WebURLRequestExtraDataImpl(referrer_policy,
23 custom_user_agent), 26 custom_user_agent),
27 was_after_preconnect_request_(was_after_preconnect_request),
24 is_main_frame_(is_main_frame), 28 is_main_frame_(is_main_frame),
25 frame_id_(frame_id), 29 frame_id_(frame_id),
26 parent_is_main_frame_(parent_is_main_frame), 30 parent_is_main_frame_(parent_is_main_frame),
27 parent_frame_id_(parent_frame_id), 31 parent_frame_id_(parent_frame_id),
28 allow_download_(allow_download), 32 allow_download_(allow_download),
29 transition_type_(transition_type), 33 transition_type_(transition_type),
30 transferred_request_child_id_(transferred_request_child_id), 34 transferred_request_child_id_(transferred_request_child_id),
31 transferred_request_request_id_(transferred_request_request_id) { 35 transferred_request_request_id_(transferred_request_request_id) {
36 set_type_id(kType);
32 } 37 }
33 38
34 RequestExtraData::~RequestExtraData() { 39 RequestExtraData::~RequestExtraData() {
35 } 40 }
36 41
37 } // namespace content 42 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698