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

Side by Side Diff: chrome/browser/autocomplete/autocomplete_log.h

Issue 11316057: Omnibox: Log Elapsed Time Since Last Time The Default Match Changed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 1 month 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 | Annotate | Revision Log
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 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_LOG_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_LOG_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_LOG_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_LOG_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 11 matching lines...) Expand all
22 AutocompleteLog( 22 AutocompleteLog(
23 const string16& text, 23 const string16& text,
24 bool just_deleted_text, 24 bool just_deleted_text,
25 AutocompleteInput::Type input_type, 25 AutocompleteInput::Type input_type,
26 size_t selected_index, 26 size_t selected_index,
27 SessionID::id_type tab_id, 27 SessionID::id_type tab_id,
28 metrics::OmniboxEventProto::PageClassification 28 metrics::OmniboxEventProto::PageClassification
29 current_page_classification, 29 current_page_classification,
30 base::TimeDelta elapsed_time_since_user_first_modified_omnibox, 30 base::TimeDelta elapsed_time_since_user_first_modified_omnibox,
31 size_t inline_autocompleted_length, 31 size_t inline_autocompleted_length,
32 base::TimeDelta elapsed_time_since_last_change_to_default_match,
32 const AutocompleteResult& result); 33 const AutocompleteResult& result);
33 ~AutocompleteLog(); 34 ~AutocompleteLog();
34 35
35 // The user's input text in the omnibox. 36 // The user's input text in the omnibox.
36 string16 text; 37 string16 text;
37 38
38 // Whether the user deleted text immediately before selecting an omnibox 39 // Whether the user deleted text immediately before selecting an omnibox
39 // suggestion. This is usually the result of pressing backspace or delete. 40 // suggestion. This is usually the result of pressing backspace or delete.
40 bool just_deleted_text; 41 bool just_deleted_text;
41 42
(...skipping 18 matching lines...) Expand all
60 // delta should be computed starting from the second series of 61 // delta should be computed starting from the second series of
61 // modifications. If we somehow skipped the logic to record 62 // modifications. If we somehow skipped the logic to record
62 // the time the user began typing (this should only happen in 63 // the time the user began typing (this should only happen in
63 // unit tests), this elapsed time is set to -1 milliseconds. 64 // unit tests), this elapsed time is set to -1 milliseconds.
64 base::TimeDelta elapsed_time_since_user_first_modified_omnibox; 65 base::TimeDelta elapsed_time_since_user_first_modified_omnibox;
65 66
66 // Inline autocompleted length (if displayed). Set to string16::npos 67 // Inline autocompleted length (if displayed). Set to string16::npos
67 // if not available. 68 // if not available.
68 size_t inline_autocompleted_length; 69 size_t inline_autocompleted_length;
69 70
71 // The amount of time since the last time the default (i.e., inline)
72 // match changed. This will certainly be less than
73 // elapsed_time_since_user_first_modified_omnibox.
74 base::TimeDelta elapsed_time_since_last_change_to_default_match;
75
70 // Result set. 76 // Result set.
71 const AutocompleteResult& result; 77 const AutocompleteResult& result;
72 78
73 // Diagnostic information from providers. See 79 // Diagnostic information from providers. See
74 // AutocompleteController::AddProvidersInfo() and 80 // AutocompleteController::AddProvidersInfo() and
75 // AutocompleteProvider::AddProviderInfo() above. 81 // AutocompleteProvider::AddProviderInfo() above.
76 ProvidersInfo providers_info; 82 ProvidersInfo providers_info;
77 }; 83 };
78 84
79 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_LOG_H_ 85 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_LOG_H_
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_controller.cc ('k') | chrome/browser/autocomplete/autocomplete_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698