| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2011 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_RENDERER_RENDERER_TRACKING_H_ | |
| 6 #define CHROME_RENDERER_RENDERER_TRACKING_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include <map> | |
| 10 #include <string> | |
| 11 #include <vector> | |
| 12 | |
| 13 #include "base/basictypes.h" | |
| 14 #include "base/process.h" | |
| 15 #include "base/task.h" | |
| 16 #include "content/public/renderer/render_process_observer.h" | |
| 17 | |
| 18 class RendererTracking : public content::RenderProcessObserver { | |
| 19 public: | |
| 20 RendererTracking(); | |
| 21 virtual ~RendererTracking(); | |
| 22 | |
| 23 private: | |
| 24 // RenderProcessObserver implementation. | |
| 25 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; | |
| 26 | |
| 27 void OnGetRendererTrackingData(int sequence_number); | |
| 28 | |
| 29 void OnSetTrackingStatus(bool enable); | |
| 30 | |
| 31 // Extract tracking data from TrackedObjects and then send it off the | |
| 32 // Browser process. | |
| 33 void UploadAllTrackingData(int sequence_number); | |
| 34 | |
| 35 ScopedRunnableMethodFactory<RendererTracking> renderer_tracking_factory_; | |
| 36 | |
| 37 DISALLOW_COPY_AND_ASSIGN(RendererTracking); | |
| 38 }; | |
| 39 | |
| 40 #endif // CHROME_RENDERER_RENDERER_TRACKING_H_ | |
| OLD | NEW |