| 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_PERFORMANCE_MONITOR_UTIL_H_ | 5 #ifndef CHROME_BROWSER_PERFORMANCE_MONITOR_PERFORMANCE_MONITOR_UTIL_H_ |
| 6 #define CHROME_BROWSER_PERFORMANCE_MONITOR_UTIL_H_ | 6 #define CHROME_BROWSER_PERFORMANCE_MONITOR_PERFORMANCE_MONITOR_UTIL_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/time.h" | 9 #include "base/time.h" |
| 10 #include "base/tracked_objects.h" | 10 #include "base/tracked_objects.h" |
| 11 #include "chrome/browser/performance_monitor/database.h" | 11 #include "chrome/browser/performance_monitor/database.h" |
| 12 #include "chrome/browser/performance_monitor/event.h" | 12 #include "chrome/browser/performance_monitor/event.h" |
| 13 #include "chrome/browser/performance_monitor/metric.h" | 13 #include "chrome/browser/performance_monitor/metric.h" |
| 14 #include "chrome/common/extensions/extension_constants.h" | 14 #include "chrome/common/extensions/extension_constants.h" |
| 15 | 15 |
| 16 namespace performance_monitor { | 16 namespace performance_monitor { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 30 // guards that performance_monitor::Event() will not. | 30 // guards that performance_monitor::Event() will not. |
| 31 scoped_ptr<Event> CreateExtensionEvent(const EventType type, | 31 scoped_ptr<Event> CreateExtensionEvent(const EventType type, |
| 32 const base::Time& time, | 32 const base::Time& time, |
| 33 const std::string& id, | 33 const std::string& id, |
| 34 const std::string& name, | 34 const std::string& name, |
| 35 const std::string& url, | 35 const std::string& url, |
| 36 const int location, | 36 const int location, |
| 37 const std::string& version, | 37 const std::string& version, |
| 38 const std::string& description); | 38 const std::string& description); |
| 39 | 39 |
| 40 scoped_ptr<Event> CreateRendererFreezeEvent(const base::Time& time, | 40 scoped_ptr<Event> CreateRendererFailureEvent(const base::Time& time, |
| 41 const std::string& url); | 41 const EventType& type); |
| 42 | |
| 43 scoped_ptr<Event> CreateCrashEvent(const base::Time& time, | |
| 44 const EventType& type); | |
| 45 | 42 |
| 46 scoped_ptr<Event> CreateUncleanExitEvent(const base::Time& time, | 43 scoped_ptr<Event> CreateUncleanExitEvent(const base::Time& time, |
| 47 const std::string& profile_name); | 44 const std::string& profile_name); |
| 48 | 45 |
| 49 scoped_ptr<Event> CreateChromeUpdateEvent(const base::Time& time, | 46 scoped_ptr<Event> CreateChromeUpdateEvent(const base::Time& time, |
| 50 const std::string& previous_version, | 47 const std::string& previous_version, |
| 51 const std::string& current_version); | 48 const std::string& current_version); |
| 52 | 49 |
| 53 } // namespace util | 50 } // namespace util |
| 54 } // namespace performance_monitor | 51 } // namespace performance_monitor |
| 55 | 52 |
| 56 #endif // CHROME_BROWSER_PERFORMANCE_MONITOR_UTIL_H__ | 53 #endif // CHROME_BROWSER_PERFORMANCE_MONITOR_PERFORMANCE_MONITOR_UTIL_H_ |
| OLD | NEW |