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

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

Issue 10837003: CPM Refactor and Cleanup (Closed) Base URL: http://git.chromium.org/chromium/src.git@dc_startup_times
Patch Set: Merged with latest master Created 8 years, 4 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_UTIL_H_
6 #define CHROME_BROWSER_PERFORMANCE_MONITOR_UTIL_H_ 6 #define CHROME_BROWSER_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"
(...skipping 20 matching lines...) Expand all
31 // PostTaskToDatabaseThreadAndReply. 31 // PostTaskToDatabaseThreadAndReply.
32 bool PostTaskToDatabaseThreadAndReply( 32 bool PostTaskToDatabaseThreadAndReply(
33 const tracked_objects::Location& from_here, 33 const tracked_objects::Location& from_here,
34 const base::Closure& request, 34 const base::Closure& request,
35 const base::Closure& reply); 35 const base::Closure& reply);
36 36
37 // These are a collection of methods designed to create an event to store the 37 // These are a collection of methods designed to create an event to store the
38 // pertinent information, given all the fields. Please use these methods to 38 // pertinent information, given all the fields. Please use these methods to
39 // create any PerformanceMonitor events, as this will ensure strong-typing 39 // create any PerformanceMonitor events, as this will ensure strong-typing
40 // guards that performance_monitor::Event() will not. 40 // guards that performance_monitor::Event() will not.
41 scoped_ptr<Event> CreateExtensionInstallEvent( 41 scoped_ptr<Event> CreateExtensionEvent(const EventType type,
42 const base::Time& time, 42 const base::Time& time,
43 const std::string& id, 43 const std::string& id,
44 const std::string& name, 44 const std::string& name,
45 const std::string& url, 45 const std::string& url,
46 const int& location, 46 const int location,
47 const std::string& version, 47 const std::string& version,
48 const std::string& description); 48 const std::string& description);
49 49
50 scoped_ptr<Event> CreateExtensionUnloadEvent( 50 scoped_ptr<Event> CreateRendererFreezeEvent(const base::Time& time,
51 const base::Time& time, 51 const std::string& url);
52 const std::string& id,
53 const std::string& name,
54 const std::string& url,
55 const int& location,
56 const std::string& version,
57 const std::string& description,
58 const extension_misc::UnloadedExtensionReason& reason);
59 52
60 scoped_ptr<Event> CreateExtensionUninstallEvent( 53 scoped_ptr<Event> CreateCrashEvent(const base::Time& time,
61 const base::Time& time, 54 const EventType& type);
62 const std::string& id,
63 const std::string& name,
64 const std::string& url,
65 const int& location,
66 const std::string& version,
67 const std::string& description);
68
69 scoped_ptr<Event> CreateExtensionEnableEvent(
70 const base::Time& time,
71 const std::string& id,
72 const std::string& name,
73 const std::string& url,
74 const int& location,
75 const std::string& version,
76 const std::string& description);
77
78 scoped_ptr<Event> CreateExtensionUpdateEvent(
79 const base::Time& time,
80 const std::string& id,
81 const std::string& name,
82 const std::string& url,
83 const int& location,
84 const std::string& version,
85 const std::string& description);
86
87 scoped_ptr<Event> CreateRendererFreezeEvent(
88 const base::Time& time,
89 const std::string& url);
90
91 scoped_ptr<Event> CreateCrashEvent(
92 const base::Time& time,
93 const EventType& type);
94 55
95 scoped_ptr<Event> CreateUncleanExitEvent(const base::Time& time, 56 scoped_ptr<Event> CreateUncleanExitEvent(const base::Time& time,
96 const std::string& profile_name); 57 const std::string& profile_name);
97 58
98 scoped_ptr<Event> CreateChromeUpdateEvent( 59 scoped_ptr<Event> CreateChromeUpdateEvent(const base::Time& time,
99 const base::Time& time, 60 const std::string& previous_version,
100 const std::string& previous_version, 61 const std::string& current_version);
101 const std::string& current_version);
102 62
103 } // namespace util 63 } // namespace util
104 } // namespace performance_monitor 64 } // namespace performance_monitor
105 65
106 #endif // CHROME_BROWSER_PERFORMANCE_MONITOR_UTIL_H__ 66 #endif // CHROME_BROWSER_PERFORMANCE_MONITOR_UTIL_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698