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

Side by Side Diff: ppapi/proxy/audio_input_resource.cc

Issue 14307011: ppapi: Remove use of ALLOW_THIS_IN_INITIALIZER_LIST. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « no previous file | ppapi/proxy/device_enumeration_resource_helper_unittest.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 #include "ppapi/proxy/audio_input_resource.h" 5 #include "ppapi/proxy/audio_input_resource.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "ipc/ipc_platform_file.h" 9 #include "ipc/ipc_platform_file.h"
10 #include "media/audio/audio_parameters.h" 10 #include "media/audio/audio_parameters.h"
(...skipping 13 matching lines...) Expand all
24 24
25 AudioInputResource::AudioInputResource( 25 AudioInputResource::AudioInputResource(
26 Connection connection, 26 Connection connection,
27 PP_Instance instance) 27 PP_Instance instance)
28 : PluginResource(connection, instance), 28 : PluginResource(connection, instance),
29 open_state_(BEFORE_OPEN), 29 open_state_(BEFORE_OPEN),
30 capturing_(false), 30 capturing_(false),
31 shared_memory_size_(0), 31 shared_memory_size_(0),
32 audio_input_callback_(NULL), 32 audio_input_callback_(NULL),
33 user_data_(NULL), 33 user_data_(NULL),
34 ALLOW_THIS_IN_INITIALIZER_LIST(enumeration_helper_(this)) { 34 enumeration_helper_(this) {
35 SendCreate(RENDERER, PpapiHostMsg_AudioInput_Create()); 35 SendCreate(RENDERER, PpapiHostMsg_AudioInput_Create());
36 } 36 }
37 37
38 AudioInputResource::~AudioInputResource() { 38 AudioInputResource::~AudioInputResource() {
39 Close(); 39 Close();
40 } 40 }
41 41
42 thunk::PPB_AudioInput_API* AudioInputResource::AsPPB_AudioInput_API() { 42 thunk::PPB_AudioInput_API* AudioInputResource::AsPPB_AudioInput_API() {
43 return this; 43 return this;
44 } 44 }
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 // While closing the stream, we may receive buffers whose size is different 270 // While closing the stream, we may receive buffers whose size is different
271 // from |data_buffer_size|. 271 // from |data_buffer_size|.
272 CHECK_LE(buffer->params.size, data_buffer_size); 272 CHECK_LE(buffer->params.size, data_buffer_size);
273 if (buffer->params.size > 0) 273 if (buffer->params.size > 0)
274 audio_input_callback_(&buffer->audio[0], buffer->params.size, user_data_); 274 audio_input_callback_(&buffer->audio[0], buffer->params.size, user_data_);
275 } 275 }
276 } 276 }
277 277
278 } // namespace proxy 278 } // namespace proxy
279 } // namespace ppapi 279 } // namespace ppapi
OLDNEW
« no previous file with comments | « no previous file | ppapi/proxy/device_enumeration_resource_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698