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

Side by Side Diff: content/browser/renderer_host/media/audio_input_sync_writer.h

Issue 9805001: Move media/audio files into media namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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
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_RENDERER_HOST_MEDIA_AUDIO_INPUT_SYNC_WRITER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_SYNC_WRITER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_SYNC_WRITER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_SYNC_WRITER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/file_descriptor_posix.h" 9 #include "base/file_descriptor_posix.h"
10 #include "base/process.h" 10 #include "base/process.h"
11 #include "base/sync_socket.h" 11 #include "base/sync_socket.h"
12 #include "media/audio/audio_input_controller.h" 12 #include "media/audio/audio_input_controller.h"
13 13
14 namespace base { 14 namespace base {
15 class SharedMemory; 15 class SharedMemory;
16 } 16 }
17 17
18 namespace media {
18 // A AudioInputController::SyncWriter implementation using SyncSocket. This 19 // A AudioInputController::SyncWriter implementation using SyncSocket. This
19 // is used by AudioInputController to provide a low latency data source for 20 // is used by AudioInputController to provide a low latency data source for
20 // transmitting audio packets between the browser process and the renderer 21 // transmitting audio packets between the browser process and the renderer
21 // process. 22 // process.
22 class AudioInputSyncWriter : public media::AudioInputController::SyncWriter { 23 class AudioInputSyncWriter : public media::AudioInputController::SyncWriter {
23 public: 24 public:
24 explicit AudioInputSyncWriter(base::SharedMemory* shared_memory); 25 explicit AudioInputSyncWriter(base::SharedMemory* shared_memory);
25 26
26 virtual ~AudioInputSyncWriter(); 27 virtual ~AudioInputSyncWriter();
27 28
(...skipping 16 matching lines...) Expand all
44 // Socket for transmitting audio data. 45 // Socket for transmitting audio data.
45 scoped_ptr<base::CancelableSyncSocket> socket_; 46 scoped_ptr<base::CancelableSyncSocket> socket_;
46 47
47 // Socket to be used by the renderer. The reference is released after 48 // Socket to be used by the renderer. The reference is released after
48 // PrepareForeignSocketHandle() is called and ran successfully. 49 // PrepareForeignSocketHandle() is called and ran successfully.
49 scoped_ptr<base::CancelableSyncSocket> foreign_socket_; 50 scoped_ptr<base::CancelableSyncSocket> foreign_socket_;
50 51
51 DISALLOW_IMPLICIT_CONSTRUCTORS(AudioInputSyncWriter); 52 DISALLOW_IMPLICIT_CONSTRUCTORS(AudioInputSyncWriter);
52 }; 53 };
53 54
55 } // namespace media
56
54 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_SYNC_WRITER_H_ 57 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_SYNC_WRITER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698