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 #ifndef COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_LOG_H_ | 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_LOG_H_ |
6 #define COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_LOG_H_ | 6 #define COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_LOG_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
12 #include "components/metrics/proto/omnibox_event.pb.h" | 12 #include "components/metrics/proto/omnibox_event.pb.h" |
13 #include "components/metrics/proto/omnibox_input_type.pb.h" | 13 #include "components/metrics/proto/omnibox_input_type.pb.h" |
14 #include "components/omnibox/browser/autocomplete_provider.h" | 14 #include "components/omnibox/browser/autocomplete_provider.h" |
15 #include "components/sessions/session_id.h" | 15 #include "components/sessions/core/session_id.h" |
16 | 16 |
17 class AutocompleteResult; | 17 class AutocompleteResult; |
18 | 18 |
19 // The data to log (via the metrics service) when the user selects an item from | 19 // The data to log (via the metrics service) when the user selects an item from |
20 // the omnibox popup. | 20 // the omnibox popup. |
21 struct OmniboxLog { | 21 struct OmniboxLog { |
22 OmniboxLog( | 22 OmniboxLog( |
23 const base::string16& text, | 23 const base::string16& text, |
24 bool just_deleted_text, | 24 bool just_deleted_text, |
25 metrics::OmniboxInputType::Type input_type, | 25 metrics::OmniboxInputType::Type input_type, |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 // Result set. | 91 // Result set. |
92 const AutocompleteResult& result; | 92 const AutocompleteResult& result; |
93 | 93 |
94 // Diagnostic information from providers. See | 94 // Diagnostic information from providers. See |
95 // AutocompleteController::AddProvidersInfo() and | 95 // AutocompleteController::AddProvidersInfo() and |
96 // AutocompleteProvider::AddProviderInfo() above. | 96 // AutocompleteProvider::AddProviderInfo() above. |
97 ProvidersInfo providers_info; | 97 ProvidersInfo providers_info; |
98 }; | 98 }; |
99 | 99 |
100 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_LOG_H_ | 100 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_LOG_H_ |
OLD | NEW |