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

Side by Side Diff: chrome/browser/metrics/tracking_synchronizer_observer.h

Issue 9702014: [UMA] Use proper C++ objects to serialize tracked_objects across process boundaries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_METRICS_TRACKING_SYNCHRONIZER_OBSERVER_H_
6 #define CHROME_BROWSER_METRICS_TRACKING_SYNCHRONIZER_OBSERVER_H_
7 #pragma once
8
9 namespace content {
10 struct SerializedProfilerData;
11 }
12
13 namespace chrome_browser_metrics {
14
15 // Observer for notifications from the TrackingSynchronizer class.
16 class TrackingSynchronizerObserver {
17 public:
18 // Received profiler |data| from a single process. The observer should assume
19 // there might be more data coming until |FinishedReceivingData()| is called.
20 virtual void ReceivedProfilerData(
21 const content::SerializedProfilerData& data) = 0;
22
23 // The observer should not expect any more calls to |ReceivedProfilerData()|
24 // (without re-registering). This is sent either when data from all processes
25 // has been gathered, or when the request times out.
26 virtual void FinishedReceivingProfilerData() {}
27
28 protected:
29 TrackingSynchronizerObserver() {}
30 virtual ~TrackingSynchronizerObserver() {}
31
32 private:
33 DISALLOW_COPY_AND_ASSIGN(TrackingSynchronizerObserver);
34 };
35
36 } // namespace chrome_browser_metrics
37
38 #endif // CHROME_BROWSER_METRICS_TRACKING_SYNCHRONIZER_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698