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

Side by Side Diff: webkit/plugins/ppapi/audio_helper.cc

Issue 9307114: Coverity: Initialize member variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win fix. Created 8 years, 10 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/c/pp_completion_callback.h" 5 #include "ppapi/c/pp_completion_callback.h"
6 #include "webkit/plugins/ppapi/audio_helper.h" 6 #include "webkit/plugins/ppapi/audio_helper.h"
7 #include "webkit/plugins/ppapi/common.h" 7 #include "webkit/plugins/ppapi/common.h"
8 #include "webkit/plugins/ppapi/resource_helper.h" 8 #include "webkit/plugins/ppapi/resource_helper.h"
9 9
10 using ppapi::TrackedCallback; 10 using ppapi::TrackedCallback;
11 11
12 namespace webkit { 12 namespace webkit {
13 namespace ppapi { 13 namespace ppapi {
14 14
15 // AudioHelper ----------------------------------------------------------------- 15 // AudioHelper -----------------------------------------------------------------
16 16
17 AudioHelper::AudioHelper() { 17 AudioHelper::AudioHelper() : shared_memory_size_for_create_callback_(0) {
18 } 18 }
19 19
20 AudioHelper::~AudioHelper() { 20 AudioHelper::~AudioHelper() {
21 } 21 }
22 22
23 int32_t AudioHelper::GetSyncSocketImpl(int* sync_socket) { 23 int32_t AudioHelper::GetSyncSocketImpl(int* sync_socket) {
24 if (socket_for_create_callback_.get()) { 24 if (socket_for_create_callback_.get()) {
25 #if defined(OS_POSIX) 25 #if defined(OS_POSIX)
26 *sync_socket = socket_for_create_callback_->handle(); 26 *sync_socket = socket_for_create_callback_->handle();
27 #elif defined(OS_WIN) 27 #elif defined(OS_WIN)
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 } 78 }
79 79
80 void AudioHelper::SetCreateCallback( 80 void AudioHelper::SetCreateCallback(
81 scoped_refptr< ::ppapi::TrackedCallback> create_callback) { 81 scoped_refptr< ::ppapi::TrackedCallback> create_callback) {
82 DCHECK(!TrackedCallback::IsPending(create_callback_)); 82 DCHECK(!TrackedCallback::IsPending(create_callback_));
83 create_callback_ = create_callback; 83 create_callback_ = create_callback;
84 } 84 }
85 85
86 } // namespace ppapi 86 } // namespace ppapi
87 } // namespace webkit 87 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698