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

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

Issue 10077001: [UMA] Use proper C++ objects to serialize tracked_objects across process boundaries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix yet another IWYU in the chromeos/ code... Created 8 years, 8 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 #include "content/public/common/process_type.h"
10
11 namespace tracked_objects {
12 struct ProcessDataSnapshot;
13 }
14
15 namespace chrome_browser_metrics {
16
17 // Observer for notifications from the TrackingSynchronizer class.
18 class TrackingSynchronizerObserver {
19 public:
20 // Received |profiler_data| from a single process of |process_type|.
21 // The observer should assume there might be more data coming until
22 // |FinishedReceivingData()| is called.
23 virtual void ReceivedProfilerData(
24 const tracked_objects::ProcessDataSnapshot& profiler_data,
25 content::ProcessType process_type) = 0;
26
27 // The observer should not expect any more calls to |ReceivedProfilerData()|
28 // (without re-registering). This is sent either when data from all processes
29 // has been gathered, or when the request times out.
30 virtual void FinishedReceivingProfilerData() {}
31
32 protected:
33 TrackingSynchronizerObserver() {}
34 virtual ~TrackingSynchronizerObserver() {}
35
36 private:
37 DISALLOW_COPY_AND_ASSIGN(TrackingSynchronizerObserver);
38 };
39
40 } // namespace chrome_browser_metrics
41
42 #endif // CHROME_BROWSER_METRICS_TRACKING_SYNCHRONIZER_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/metrics/tracking_synchronizer.cc ('k') | chrome/browser/resources/profiler/profiler.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698