| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/message_loop_helpers.h" | 10 #include "base/message_loop_helpers.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 // Unregister the same and stop receiving callbacks. | 48 // Unregister the same and stop receiving callbacks. |
| 49 void Detach(); | 49 void Detach(); |
| 50 | 50 |
| 51 // Have MediaInternals send all the data it has. | 51 // Have MediaInternals send all the data it has. |
| 52 void GetEverything(); | 52 void GetEverything(); |
| 53 | 53 |
| 54 // MediaInternalsObserver implementation. Called on the IO thread. | 54 // MediaInternalsObserver implementation. Called on the IO thread. |
| 55 virtual void OnUpdate(const string16& update) OVERRIDE; | 55 virtual void OnUpdate(const string16& update) OVERRIDE; |
| 56 | 56 |
| 57 // net::NetLog::ThreadSafeObserver implementation. Callable from any thread: | 57 // net::NetLog::ThreadSafeObserver implementation. Callable from any thread: |
| 58 virtual void OnAddEntry(net::NetLog::EventType type, | 58 virtual void OnAddEntry(const net::NetLog::Entry& entry) OVERRIDE; |
| 59 const base::TimeTicks& time, | |
| 60 const net::NetLog::Source& source, | |
| 61 net::NetLog::EventPhase phase, | |
| 62 net::NetLog::EventParameters* params) OVERRIDE; | |
| 63 | 59 |
| 64 private: | 60 private: |
| 65 friend struct content::BrowserThread::DeleteOnThread< | 61 friend struct content::BrowserThread::DeleteOnThread< |
| 66 content::BrowserThread::UI>; | 62 content::BrowserThread::UI>; |
| 67 friend class base::DeleteHelper<MediaInternalsProxy>; | 63 friend class base::DeleteHelper<MediaInternalsProxy>; |
| 68 virtual ~MediaInternalsProxy(); | 64 virtual ~MediaInternalsProxy(); |
| 69 | 65 |
| 70 // Build a dictionary mapping constant names to values. | 66 // Build a dictionary mapping constant names to values. |
| 71 base::Value* GetConstants(); | 67 base::Value* GetConstants(); |
| 72 | 68 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 87 | 83 |
| 88 MediaInternalsMessageHandler* handler_; | 84 MediaInternalsMessageHandler* handler_; |
| 89 IOThread* io_thread_; | 85 IOThread* io_thread_; |
| 90 scoped_ptr<base::ListValue> pending_net_updates_; | 86 scoped_ptr<base::ListValue> pending_net_updates_; |
| 91 content::NotificationRegistrar registrar_; | 87 content::NotificationRegistrar registrar_; |
| 92 | 88 |
| 93 DISALLOW_COPY_AND_ASSIGN(MediaInternalsProxy); | 89 DISALLOW_COPY_AND_ASSIGN(MediaInternalsProxy); |
| 94 }; | 90 }; |
| 95 | 91 |
| 96 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_MEDIA_INTERNALS_PROXY_H_ | 92 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_MEDIA_INTERNALS_PROXY_H_ |
| OLD | NEW |