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

Side by Side Diff: content/renderer/pepper/pepper_platform_audio_input_impl.h

Issue 9959037: Put the Pepper stuff in the content 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_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_IMPL_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_IMPL_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_IMPL_H_ 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.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/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "content/renderer/media/audio_input_message_filter.h" 14 #include "content/renderer/media/audio_input_message_filter.h"
15 #include "media/audio/audio_parameters.h" 15 #include "media/audio/audio_parameters.h"
16 #include "webkit/plugins/ppapi/plugin_delegate.h" 16 #include "webkit/plugins/ppapi/plugin_delegate.h"
17 17
18 namespace media { 18 namespace media {
19 class AudioParameters; 19 class AudioParameters;
20 } 20 }
21 21
22 namespace content {
23
22 class PepperPluginDelegateImpl; 24 class PepperPluginDelegateImpl;
23 25
24 // PepperPlatformAudioInputImpl is operated on two threads: the main thread (the 26 // PepperPlatformAudioInputImpl is operated on two threads: the main thread (the
25 // thread on which objects are created) and the I/O thread. All public methods, 27 // thread on which objects are created) and the I/O thread. All public methods,
26 // except the destructor, must be called on the main thread. The notifications 28 // except the destructor, must be called on the main thread. The notifications
27 // to the users of this class (via the PlatformAudioInputClient interface) are 29 // to the users of this class (via the PlatformAudioInputClient interface) are
28 // also sent on the main thread. Internally, this class sends audio input IPC 30 // also sent on the main thread. Internally, this class sends audio input IPC
29 // messages and receives AudioInputMessageFilter::Delegate notifications on the 31 // messages and receives AudioInputMessageFilter::Delegate notifications on the
30 // I/O thread. 32 // I/O thread.
31 33
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // Whether ShutDownOnIOThread() has been called. THIS MUST ONLY BE ACCESSED ON 106 // Whether ShutDownOnIOThread() has been called. THIS MUST ONLY BE ACCESSED ON
105 // THE I/O THREAD. 107 // THE I/O THREAD.
106 bool shutdown_called_; 108 bool shutdown_called_;
107 109
108 // Initialized on the main thread and accessed on the I/O thread afterwards. 110 // Initialized on the main thread and accessed on the I/O thread afterwards.
109 media::AudioParameters params_; 111 media::AudioParameters params_;
110 112
111 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioInputImpl); 113 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioInputImpl);
112 }; 114 };
113 115
116 } // namespace content
117
114 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_IMPL_H_ 118 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_parent_context_provider.cc ('k') | content/renderer/pepper/pepper_platform_audio_input_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698