| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |