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

Side by Side Diff: chrome/browser/performance_monitor/performance_monitor_util.h

Issue 10987040: Fix CPM casting issue; refactor renderer crash events (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Nit fixes, latest master Created 8 years, 2 months 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
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_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
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 42 const std::string& url);
43 scoped_ptr<Event> CreateCrashEvent(const base::Time& time,
44 const EventType& type);
45 43
46 scoped_ptr<Event> CreateUncleanExitEvent(const base::Time& time, 44 scoped_ptr<Event> CreateUncleanExitEvent(const base::Time& time,
47 const std::string& profile_name); 45 const std::string& profile_name);
48 46
49 scoped_ptr<Event> CreateChromeUpdateEvent(const base::Time& time, 47 scoped_ptr<Event> CreateChromeUpdateEvent(const base::Time& time,
50 const std::string& previous_version, 48 const std::string& previous_version,
51 const std::string& current_version); 49 const std::string& current_version);
52 50
53 } // namespace util 51 } // namespace util
54 } // namespace performance_monitor 52 } // namespace performance_monitor
55 53
56 #endif // CHROME_BROWSER_PERFORMANCE_MONITOR_UTIL_H__ 54 #endif // CHROME_BROWSER_PERFORMANCE_MONITOR_PERFORMANCE_MONITOR_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698