| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/metrics/metrics_log.h" | 5 #include "chrome/browser/metrics/metrics_log.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
| 12 #include "base/file_version_info.h" | 12 #include "base/file_version_info.h" |
| 13 #include "base/perftimer.h" | 13 #include "base/perftimer.h" |
| 14 #include "base/scoped_ptr.h" | 14 #include "base/scoped_ptr.h" |
| 15 #include "base/string_util.h" | 15 #include "base/string_util.h" |
| 16 #include "base/sys_info.h" | 16 #include "base/sys_info.h" |
| 17 #include "base/third_party/nspr/prtime.h" | 17 #include "base/third_party/nspr/prtime.h" |
| 18 #include "base/time.h" | 18 #include "base/time.h" |
| 19 #include "base/utf_string_conversions.h" | 19 #include "base/utf_string_conversions.h" |
| 20 #include "chrome/browser/autocomplete/autocomplete.h" | 20 #include "chrome/browser/autocomplete/autocomplete.h" |
| 21 #include "chrome/browser/browser_process.h" | 21 #include "chrome/browser/browser_process.h" |
| 22 #include "chrome/browser/gpu_process_host.h" | 22 #include "chrome/browser/gpu_process_host.h" |
| 23 #include "chrome/browser/pref_service.h" | 23 #include "chrome/browser/prefs/pref_service.h" |
| 24 #include "chrome/common/chrome_version_info.h" | 24 #include "chrome/common/chrome_version_info.h" |
| 25 #include "chrome/common/logging_chrome.h" | 25 #include "chrome/common/logging_chrome.h" |
| 26 #include "chrome/common/pref_names.h" | 26 #include "chrome/common/pref_names.h" |
| 27 #include "googleurl/src/gurl.h" | 27 #include "googleurl/src/gurl.h" |
| 28 | 28 |
| 29 #define OPEN_ELEMENT_FOR_SCOPE(name) ScopedElement scoped_element(this, name) | 29 #define OPEN_ELEMENT_FOR_SCOPE(name) ScopedElement scoped_element(this, name) |
| 30 | 30 |
| 31 // http://blogs.msdn.com/oldnewthing/archive/2004/10/25/247180.aspx | 31 // http://blogs.msdn.com/oldnewthing/archive/2004/10/25/247180.aspx |
| 32 #if defined(OS_WIN) | 32 #if defined(OS_WIN) |
| 33 extern "C" IMAGE_DOS_HEADER __ImageBase; | 33 extern "C" IMAGE_DOS_HEADER __ImageBase; |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 443 const std::string result_type(AutocompleteMatch::TypeToString(i->type)); | 443 const std::string result_type(AutocompleteMatch::TypeToString(i->type)); |
| 444 if (!result_type.empty()) | 444 if (!result_type.empty()) |
| 445 WriteAttribute("resulttype", result_type); | 445 WriteAttribute("resulttype", result_type); |
| 446 WriteIntAttribute("relevance", i->relevance); | 446 WriteIntAttribute("relevance", i->relevance); |
| 447 WriteIntAttribute("isstarred", i->starred ? 1 : 0); | 447 WriteIntAttribute("isstarred", i->starred ? 1 : 0); |
| 448 } | 448 } |
| 449 } | 449 } |
| 450 | 450 |
| 451 ++num_events_; | 451 ++num_events_; |
| 452 } | 452 } |
| OLD | NEW |