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

Side by Side Diff: content/browser/media/media_internals_proxy.h

Issue 2333923004: Extracting NetLog inner classes into their own classes. (Closed)
Patch Set: Some nit fixes and better, impl-agnostic naming of net_log_parameters_callback_typedef.h -> net/log… Created 4 years, 2 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
OLDNEW
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 CONTENT_BROWSER_MEDIA_MEDIA_INTERNALS_PROXY_H_ 5 #ifndef CONTENT_BROWSER_MEDIA_MEDIA_INTERNALS_PROXY_H_
6 #define CONTENT_BROWSER_MEDIA_MEDIA_INTERNALS_PROXY_H_ 6 #define CONTENT_BROWSER_MEDIA_MEDIA_INTERNALS_PROXY_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // Register a Handler and start receiving callbacks from MediaInternals. 45 // Register a Handler and start receiving callbacks from MediaInternals.
46 void Attach(MediaInternalsMessageHandler* handler); 46 void Attach(MediaInternalsMessageHandler* handler);
47 47
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 // net::NetLog::ThreadSafeObserver implementation. Callable from any thread: 54 // net::NetLog::ThreadSafeObserver implementation. Callable from any thread:
55 void OnAddEntry(const net::NetLog::Entry& entry) override; 55 void OnAddEntry(const net::NetLogEntry& entry) override;
56 56
57 private: 57 private:
58 friend struct BrowserThread::DeleteOnThread<BrowserThread::UI>; 58 friend struct BrowserThread::DeleteOnThread<BrowserThread::UI>;
59 friend class base::DeleteHelper<MediaInternalsProxy>; 59 friend class base::DeleteHelper<MediaInternalsProxy>;
60 ~MediaInternalsProxy() override; 60 ~MediaInternalsProxy() override;
61 61
62 // Build a dictionary mapping constant names to values. 62 // Build a dictionary mapping constant names to values.
63 base::Value* GetConstants(); 63 base::Value* GetConstants();
64 64
65 void ObserveMediaInternalsOnIOThread(); 65 void ObserveMediaInternalsOnIOThread();
(...skipping 17 matching lines...) Expand all
83 std::unique_ptr<base::ListValue> pending_net_updates_; 83 std::unique_ptr<base::ListValue> pending_net_updates_;
84 NotificationRegistrar registrar_; 84 NotificationRegistrar registrar_;
85 MediaInternals::UpdateCallback update_callback_; 85 MediaInternals::UpdateCallback update_callback_;
86 86
87 DISALLOW_COPY_AND_ASSIGN(MediaInternalsProxy); 87 DISALLOW_COPY_AND_ASSIGN(MediaInternalsProxy);
88 }; 88 };
89 89
90 } // namespace content 90 } // namespace content
91 91
92 #endif // CONTENT_BROWSER_MEDIA_MEDIA_INTERNALS_PROXY_H_ 92 #endif // CONTENT_BROWSER_MEDIA_MEDIA_INTERNALS_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698