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

Side by Side Diff: content/test/webrtc_audio_device_test.h

Issue 11232014: Move a bunch of code in content\renderer to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/webplugin_delegate_proxy.cc ('k') | content/test/webrtc_audio_device_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_ 5 #ifndef CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_
6 #define CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_ 6 #define CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/file_path.h" 10 #include "base/file_path.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/message_loop.h" 13 #include "base/message_loop.h"
14 #include "content/browser/renderer_host/media/mock_media_observer.h" 14 #include "content/browser/renderer_host/media/mock_media_observer.h"
15 #include "content/public/renderer/content_renderer_client.h" 15 #include "content/public/renderer/content_renderer_client.h"
16 #include "media/base/channel_layout.h" 16 #include "media/base/channel_layout.h"
17 #include "ipc/ipc_channel.h" 17 #include "ipc/ipc_channel.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 #include "third_party/webrtc/common_types.h" 19 #include "third_party/webrtc/common_types.h"
20 20
21 class AudioInputRendererHost; 21 class AudioInputRendererHost;
22 class AudioRendererHost; 22 class AudioRendererHost;
23 class RenderThreadImpl;
24 class WebRTCMockRenderProcess;
25
26 namespace content {
27 class ContentRendererClient;
28 class MockResourceContext;
29 class ResourceContext;
30 class TestBrowserThread;
31 }
32 23
33 namespace media { 24 namespace media {
34 class AudioManager; 25 class AudioManager;
35 } 26 }
36 27
37 namespace media_stream { 28 namespace media_stream {
38 class MediaStreamManager; 29 class MediaStreamManager;
39 } 30 }
40 31
41 namespace net { 32 namespace net {
42 class URLRequestContext; 33 class URLRequestContext;
43 } 34 }
44 35
45 namespace webrtc { 36 namespace webrtc {
46 class VoENetwork; 37 class VoENetwork;
47 } 38 }
48 39
49 #if defined(OS_WIN) 40 #if defined(OS_WIN)
50 namespace base { 41 namespace base {
51 namespace win { 42 namespace win {
52 class ScopedCOMInitializer; 43 class ScopedCOMInitializer;
53 } 44 }
54 } 45 }
55 #endif 46 #endif
56 47
48 namespace content {
49 class ContentRendererClient;
50 class MockResourceContext;
51 class RenderThreadImpl;
52 class ResourceContext;
53 class TestBrowserThread;
54 class WebRTCMockRenderProcess;
55
57 // Scoped class for WebRTC interfaces. Fetches the wrapped interface 56 // Scoped class for WebRTC interfaces. Fetches the wrapped interface
58 // in the constructor via WebRTC's GetInterface mechanism and then releases 57 // in the constructor via WebRTC's GetInterface mechanism and then releases
59 // the reference in the destructor. 58 // the reference in the destructor.
60 template<typename T> 59 template<typename T>
61 class ScopedWebRTCPtr { 60 class ScopedWebRTCPtr {
62 public: 61 public:
63 template<typename Engine> 62 template<typename Engine>
64 explicit ScopedWebRTCPtr(Engine* e) 63 explicit ScopedWebRTCPtr(Engine* e)
65 : ptr_(T::GetInterface(e)) {} 64 : ptr_(T::GetInterface(e)) {}
66 explicit ScopedWebRTCPtr(T* p) : ptr_(p) {} 65 explicit ScopedWebRTCPtr(T* p) : ptr_(p) {}
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 explicit WebRTCTransportImpl(webrtc::VoENetwork* network); 203 explicit WebRTCTransportImpl(webrtc::VoENetwork* network);
205 virtual ~WebRTCTransportImpl(); 204 virtual ~WebRTCTransportImpl();
206 205
207 virtual int SendPacket(int channel, const void* data, int len) OVERRIDE; 206 virtual int SendPacket(int channel, const void* data, int len) OVERRIDE;
208 virtual int SendRTCPPacket(int channel, const void* data, int len) OVERRIDE; 207 virtual int SendRTCPPacket(int channel, const void* data, int len) OVERRIDE;
209 208
210 private: 209 private:
211 webrtc::VoENetwork* network_; 210 webrtc::VoENetwork* network_;
212 }; 211 };
213 212
213 } // namespace content
214
214 #endif // CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_ 215 #endif // CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_
OLDNEW
« no previous file with comments | « content/renderer/webplugin_delegate_proxy.cc ('k') | content/test/webrtc_audio_device_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698