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

Side by Side Diff: chrome/browser/ui/webui/media_internals_proxy.h

Issue 7272036: Make MediaInternalsUI talk to MediaInternals. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Moving MediaInternalsProxy to its own file. Created 9 years, 5 months 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
(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_BROWSER_UI_WEBUI_MEDIA_INTERNALS_PROXY_H_
6 #define CHROME_BROWSER_UI_WEBUI_MEDIA_INTERNALS_PROXY_H_
7 #pragma once
8
9 #include "base/memory/ref_counted.h"
10 #include "base/string16.h"
11 #include "chrome/browser/media/media_internals_observer.h"
12
13 class IOThread;
14 class MediaInternalsUI;
15
16 class MediaInternalsProxy
17 : public MediaInternalsObserver,
scherkus (not reviewing) 2011/06/29 17:55:12 docs for class
Scott Franklin 2011/06/29 18:44:33 Done.
18 public base::RefCountedThreadSafe<MediaInternalsProxy> {
19 public:
20 // Methods for MediaInternalsUI. Called on UI thread.
21 MediaInternalsProxy();
scherkus (not reviewing) 2011/06/29 17:55:12 nit: typically have a blank line between the ctor/
Scott Franklin 2011/06/29 18:44:33 Done.
22 void SetUI(MediaInternalsUI* ui);
scherkus (not reviewing) 2011/06/29 17:55:12 why not not pass in the ui in the ctor? then inst
Scott Franklin 2011/06/29 18:44:33 I can't call PostTask in the ctor (which makes sen
23 void RemoveUI();
24 void GetEverything();
scherkus (not reviewing) 2011/06/29 17:55:12 docs for non-interface-implementation methods
Scott Franklin 2011/06/29 18:44:33 Done.
25
26 // MediaInternalsObserver implementation. Called on IO thread.
27 virtual void OnUpdate(const string16& update);
28
29 private:
30 friend class base::RefCountedThreadSafe<MediaInternalsProxy>;
31 virtual ~MediaInternalsProxy();
32
33 void ObserveMediaInternalsOnIOThread();
34 void StopObservingMediaInternalsOnIOThread();
35 void GetEverythingOnIOThread();
36 void UpdateUIOnUIThread(const string16& update);
37
38 MediaInternalsUI* ui_;
39 IOThread* io_thread_;
40 };
scherkus (not reviewing) 2011/06/29 17:55:12 DISALLOW etc
Scott Franklin 2011/06/29 18:44:33 Done.
41
42 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_INTERNALS_PROXY_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/media_internals_proxy.cc » ('j') | chrome/browser/ui/webui/media_internals_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698