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

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 class AudioParameters; 18 class AudioParameters;
19
20 namespace content {
21
19 class PepperPluginDelegateImpl; 22 class PepperPluginDelegateImpl;
20 23
21 // PepperPlatformAudioInputImpl is operated on two threads: the main thread (the 24 // PepperPlatformAudioInputImpl is operated on two threads: the main thread (the
22 // thread on which objects are created) and the I/O thread. All public methods, 25 // thread on which objects are created) and the I/O thread. All public methods,
23 // except the destructor, must be called on the main thread. The notifications 26 // except the destructor, must be called on the main thread. The notifications
24 // to the users of this class (via the PlatformAudioInputClient interface) are 27 // to the users of this class (via the PlatformAudioInputClient interface) are
25 // also sent on the main thread. Internally, this class sends audio input IPC 28 // also sent on the main thread. Internally, this class sends audio input IPC
26 // messages and receives AudioInputMessageFilter::Delegate notifications on the 29 // messages and receives AudioInputMessageFilter::Delegate notifications on the
27 // I/O thread. 30 // I/O thread.
28 class PepperPlatformAudioInputImpl 31 class PepperPlatformAudioInputImpl
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // Whether ShutDownOnIOThread() has been called. THIS MUST ONLY BE ACCESSED ON 103 // Whether ShutDownOnIOThread() has been called. THIS MUST ONLY BE ACCESSED ON
101 // THE I/O THREAD. 104 // THE I/O THREAD.
102 bool shutdown_called_; 105 bool shutdown_called_;
103 106
104 // Initialized on the main thread and accessed on the I/O thread afterwards. 107 // Initialized on the main thread and accessed on the I/O thread afterwards.
105 AudioParameters params_; 108 AudioParameters params_;
106 109
107 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioInputImpl); 110 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioInputImpl);
108 }; 111 };
109 112
113 } // namespace content
114
110 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_IMPL_H_ 115 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_INPUT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698