OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/omnibox/omnibox_log.h" | 5 #include "chrome/browser/omnibox/omnibox_log.h" |
6 | 6 |
7 OmniboxLog::OmniboxLog( | 7 OmniboxLog::OmniboxLog( |
8 const base::string16& text, | 8 const base::string16& text, |
9 bool just_deleted_text, | 9 bool just_deleted_text, |
10 metrics::OmniboxInputType::Type input_type, | 10 metrics::OmniboxInputType::Type input_type, |
11 bool is_popup_open, | 11 bool is_popup_open, |
12 size_t selected_index, | 12 size_t selected_index, |
13 bool is_paste_and_go, | 13 bool is_paste_and_go, |
14 bool last_action_was_paste, | |
15 SessionID::id_type tab_id, | 14 SessionID::id_type tab_id, |
16 metrics::OmniboxEventProto::PageClassification current_page_classification, | 15 metrics::OmniboxEventProto::PageClassification current_page_classification, |
17 base::TimeDelta elapsed_time_since_user_first_modified_omnibox, | 16 base::TimeDelta elapsed_time_since_user_first_modified_omnibox, |
18 size_t completed_length, | 17 size_t completed_length, |
19 base::TimeDelta elapsed_time_since_last_change_to_default_match, | 18 base::TimeDelta elapsed_time_since_last_change_to_default_match, |
20 const AutocompleteResult& result) | 19 const AutocompleteResult& result) |
21 : text(text), | 20 : text(text), |
22 just_deleted_text(just_deleted_text), | 21 just_deleted_text(just_deleted_text), |
23 input_type(input_type), | 22 input_type(input_type), |
24 is_popup_open(is_popup_open), | 23 is_popup_open(is_popup_open), |
25 selected_index(selected_index), | 24 selected_index(selected_index), |
26 is_paste_and_go(is_paste_and_go), | 25 is_paste_and_go(is_paste_and_go), |
27 last_action_was_paste(last_action_was_paste), | |
28 tab_id(tab_id), | 26 tab_id(tab_id), |
29 current_page_classification(current_page_classification), | 27 current_page_classification(current_page_classification), |
30 elapsed_time_since_user_first_modified_omnibox( | 28 elapsed_time_since_user_first_modified_omnibox( |
31 elapsed_time_since_user_first_modified_omnibox), | 29 elapsed_time_since_user_first_modified_omnibox), |
32 completed_length(completed_length), | 30 completed_length(completed_length), |
33 elapsed_time_since_last_change_to_default_match( | 31 elapsed_time_since_last_change_to_default_match( |
34 elapsed_time_since_last_change_to_default_match), | 32 elapsed_time_since_last_change_to_default_match), |
35 result(result), | 33 result(result), |
36 providers_info() { | 34 providers_info() { |
37 } | 35 } |
38 | 36 |
39 OmniboxLog::~OmniboxLog() {} | 37 OmniboxLog::~OmniboxLog() {} |
OLD | NEW |