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

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

Issue 8604005: Add OVERRIDE to chrome/browser/ui/webui/. (Closed) Base URL: svn://svn.chromium.org/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_MEDIA_MEDIA_INTERNALS_PROXY_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_MEDIA_MEDIA_INTERNALS_PROXY_H_
6 #define CHROME_BROWSER_UI_WEBUI_MEDIA_MEDIA_INTERNALS_PROXY_H_ 6 #define CHROME_BROWSER_UI_WEBUI_MEDIA_MEDIA_INTERNALS_PROXY_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 21 matching lines...) Expand all
32 MediaInternalsProxy, 32 MediaInternalsProxy,
33 content::BrowserThread::DeleteOnUIThread>, 33 content::BrowserThread::DeleteOnUIThread>,
34 public ChromeNetLog::ThreadSafeObserverImpl, 34 public ChromeNetLog::ThreadSafeObserverImpl,
35 public content::NotificationObserver { 35 public content::NotificationObserver {
36 public: 36 public:
37 MediaInternalsProxy(); 37 MediaInternalsProxy();
38 38
39 // content::NotificationObserver implementation. 39 // content::NotificationObserver implementation.
40 virtual void Observe(int type, 40 virtual void Observe(int type,
41 const content::NotificationSource& source, 41 const content::NotificationSource& source,
42 const content::NotificationDetails& details); 42 const content::NotificationDetails& details) OVERRIDE;
43 43
44 // Register a Handler and start receiving callbacks from MediaInternals. 44 // Register a Handler and start receiving callbacks from MediaInternals.
45 void Attach(MediaInternalsMessageHandler* handler); 45 void Attach(MediaInternalsMessageHandler* handler);
46 46
47 // Unregister the same and stop receiving callbacks. 47 // Unregister the same and stop receiving callbacks.
48 void Detach(); 48 void Detach();
49 49
50 // Have MediaInternals send all the data it has. 50 // Have MediaInternals send all the data it has.
51 void GetEverything(); 51 void GetEverything();
52 52
53 // MediaInternalsObserver implementation. Called on the IO thread. 53 // MediaInternalsObserver implementation. Called on the IO thread.
54 virtual void OnUpdate(const string16& update); 54 virtual void OnUpdate(const string16& update) OVERRIDE;
55 55
56 // ChromeNetLog::ThreadSafeObserver implementation. Callable from any thread: 56 // ChromeNetLog::ThreadSafeObserver implementation. Callable from any thread:
57 virtual void OnAddEntry(net::NetLog::EventType type, 57 virtual void OnAddEntry(net::NetLog::EventType type,
58 const base::TimeTicks& time, 58 const base::TimeTicks& time,
59 const net::NetLog::Source& source, 59 const net::NetLog::Source& source,
60 net::NetLog::EventPhase phase, 60 net::NetLog::EventPhase phase,
61 net::NetLog::EventParameters* params) OVERRIDE; 61 net::NetLog::EventParameters* params) OVERRIDE;
62 62
63 private: 63 private:
64 friend struct content::BrowserThread::DeleteOnThread< 64 friend struct content::BrowserThread::DeleteOnThread<
(...skipping 21 matching lines...) Expand all
86 86
87 MediaInternalsMessageHandler* handler_; 87 MediaInternalsMessageHandler* handler_;
88 IOThread* io_thread_; 88 IOThread* io_thread_;
89 scoped_ptr<base::ListValue> pending_net_updates_; 89 scoped_ptr<base::ListValue> pending_net_updates_;
90 content::NotificationRegistrar registrar_; 90 content::NotificationRegistrar registrar_;
91 91
92 DISALLOW_COPY_AND_ASSIGN(MediaInternalsProxy); 92 DISALLOW_COPY_AND_ASSIGN(MediaInternalsProxy);
93 }; 93 };
94 94
95 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_MEDIA_INTERNALS_PROXY_H_ 95 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_MEDIA_INTERNALS_PROXY_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/input_window_dialog_webui.h ('k') | chrome/browser/ui/webui/ntp/foreign_session_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698