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

Side by Side Diff: components/metrics/profiler/tracking_synchronizer_observer.h

Issue 577823002: Moves ProfilerMetricsProvider to //components/metrics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaase Created 6 years, 3 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
« no previous file with comments | « components/metrics/profiler/tracking_synchronizer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_METRICS_TRACKING_SYNCHRONIZER_OBSERVER_H_ 5 #ifndef COMPONENTS_METRICS_PROFILER_TRACKING_SYNCHRONIZER_OBSERVER_H_
6 #define CHROME_BROWSER_METRICS_TRACKING_SYNCHRONIZER_OBSERVER_H_ 6 #define COMPONENTS_METRICS_PROFILER_TRACKING_SYNCHRONIZER_OBSERVER_H_
7 7
8 namespace tracked_objects { 8 namespace tracked_objects {
9 struct ProcessDataSnapshot; 9 struct ProcessDataSnapshot;
10 } 10 }
11 11
12 namespace chrome_browser_metrics { 12 namespace metrics {
13 13
14 // Observer for notifications from the TrackingSynchronizer class. 14 // Observer for notifications from the TrackingSynchronizer class.
15 class TrackingSynchronizerObserver { 15 class TrackingSynchronizerObserver {
16 public: 16 public:
17 // Received |profiler_data| from a single process of |process_type|. 17 // Received |profiler_data| from a single process of |process_type|.
18 // The observer should assume there might be more data coming until 18 // The observer should assume there might be more data coming until
19 // |FinishedReceivingData()| is called. 19 // |FinishedReceivingData()| is called.
20 virtual void ReceivedProfilerData( 20 virtual void ReceivedProfilerData(
21 const tracked_objects::ProcessDataSnapshot& profiler_data, 21 const tracked_objects::ProcessDataSnapshot& profiler_data,
22 int process_type) = 0; 22 int process_type) = 0;
23 23
24 // The observer should not expect any more calls to |ReceivedProfilerData()| 24 // The observer should not expect any more calls to |ReceivedProfilerData()|
25 // (without re-registering). This is sent either when data from all processes 25 // (without re-registering). This is sent either when data from all processes
26 // has been gathered, or when the request times out. 26 // has been gathered, or when the request times out.
27 virtual void FinishedReceivingProfilerData() {} 27 virtual void FinishedReceivingProfilerData() {}
28 28
29 protected: 29 protected:
30 TrackingSynchronizerObserver() {} 30 TrackingSynchronizerObserver() {}
31 virtual ~TrackingSynchronizerObserver() {} 31 virtual ~TrackingSynchronizerObserver() {}
32 32
33 private: 33 private:
34 DISALLOW_COPY_AND_ASSIGN(TrackingSynchronizerObserver); 34 DISALLOW_COPY_AND_ASSIGN(TrackingSynchronizerObserver);
35 }; 35 };
36 36
37 } // namespace chrome_browser_metrics 37 } // namespace metrics
38 38
39 #endif // CHROME_BROWSER_METRICS_TRACKING_SYNCHRONIZER_OBSERVER_H_ 39 #endif // COMPONENTS_METRICS_PROFILER_TRACKING_SYNCHRONIZER_OBSERVER_H_
OLDNEW
« no previous file with comments | « components/metrics/profiler/tracking_synchronizer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698