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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_WEBUI_TRACKING_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_TRACKING_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_TRACKING_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_TRACKING_UI_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h"
11 #include "base/values.h"
9 #include "chrome/browser/ui/webui/chrome_web_ui.h" 12 #include "chrome/browser/ui/webui/chrome_web_ui.h"
10 13
11 // The C++ back-end for the chrome://tracking2 webui page. 14 // The C++ back-end for the chrome://tracking2 webui page.
12 class TrackingUI : public ChromeWebUI { 15 class TrackingUI : public ChromeWebUI {
13 public: 16 public:
14 explicit TrackingUI(TabContents* contents); 17 explicit TrackingUI(TabContents* contents);
18 virtual ~TrackingUI();
19
20 // Send the data to the renderer.
21 void ReceivedData(base::Value* value);
22
23 // TODO(rtenneti): this should be private, made public because
24 // 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.
25 base::WeakPtr<TrackingUI> ui_weak_ptr_;
15 26
16 private: 27 private:
28 // Used to get |weak_ptr_| to self on the UI thread.
29 scoped_ptr<base::WeakPtrFactory<TrackingUI> > ui_weak_ptr_factory_;
30
17 DISALLOW_COPY_AND_ASSIGN(TrackingUI); 31 DISALLOW_COPY_AND_ASSIGN(TrackingUI);
18 }; 32 };
19 33
20 #endif // CHROME_BROWSER_UI_WEBUI_TRACKING_UI_H_ 34 #endif // CHROME_BROWSER_UI_WEBUI_TRACKING_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698