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

Unified Diff: chrome/browser/ui/webui/tracking_ui.h

Issue 8413009: Changes to upload tracked_objects data from all renderer (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/tracking_ui.h
===================================================================
--- chrome/browser/ui/webui/tracking_ui.h (revision 108557)
+++ chrome/browser/ui/webui/tracking_ui.h (working copy)
@@ -6,14 +6,28 @@
#define CHROME_BROWSER_UI_WEBUI_TRACKING_UI_H_
#pragma once
+#include "base/memory/scoped_ptr.h"
+#include "base/memory/weak_ptr.h"
+#include "base/values.h"
#include "chrome/browser/ui/webui/chrome_web_ui.h"
// The C++ back-end for the chrome://tracking2 webui page.
class TrackingUI : public ChromeWebUI {
public:
explicit TrackingUI(TabContents* contents);
+ virtual ~TrackingUI();
+ // Send the data to the renderer.
+ void ReceivedData(base::Value* value);
+
+ // TODO(rtenneti): this should be private, made public because
+ // TrackingMessageHandler accesses it.
jar (doing other things) 2011/11/04 21:38:21 Maybe you can provide an accessor, or a test and c
ramant (doing other things) 2011/11/04 22:01:38 Done.
+ base::WeakPtr<TrackingUI> ui_weak_ptr_;
+
private:
+ // Used to get |weak_ptr_| to self on the UI thread.
+ scoped_ptr<base::WeakPtrFactory<TrackingUI> > ui_weak_ptr_factory_;
+
DISALLOW_COPY_AND_ASSIGN(TrackingUI);
};

Powered by Google App Engine
This is Rietveld 408576698