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); |
}; |