Content settings: remove some plugin-related code/resources when... there are no...
[chromium-blink-merge.git] / content / public / browser / profiler_subscriber.h
bloba70918d9fcb04f4832ea25b69d4773730403f7ba
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.
5 #ifndef CONTENT_PUBLIC_BROWSER_PROFILER_SUBSCRIBER_H_
6 #define CONTENT_PUBLIC_BROWSER_PROFILER_SUBSCRIBER_H_
8 #include "content/common/content_export.h"
9 #include "content/public/common/process_type.h"
11 namespace tracked_objects {
12 struct ProcessDataSnapshot;
15 namespace content {
17 // Objects interested in receiving profiler data derive from ProfilerSubscriber.
18 class CONTENT_EXPORT ProfilerSubscriber {
19 public:
20 // Send number of pending processes to subscriber. |end| is set to true if it
21 // is the last time. This is called on the UI thread.
22 virtual void OnPendingProcesses(int sequence_number,
23 int pending_processes,
24 bool end) = 0;
26 // Send |profiler_data| back to subscriber.
27 // This is called on the UI thread.
28 virtual void OnProfilerDataCollected(
29 int sequence_number,
30 const tracked_objects::ProcessDataSnapshot& profiler_data,
31 content::ProcessType process_type) = 0;
33 protected:
34 virtual ~ProfilerSubscriber() {}
37 } // namespace content
39 #endif // CONTENT_PUBLIC_BROWSER_PROFILER_SUBSCRIBER_H_