OLD | NEW |
(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_ |
OLD | NEW |