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

Side by Side Diff: content/renderer/pepper/audio_helper.cc

Issue 20777009: A few more cleanups to the pepper code. Dispatch IPCs in the sockets implementations directly by ha… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix browsertest Created 7 years, 4 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 | « content/content_renderer.gypi ('k') | content/renderer/pepper/pepper_browser_connection.h » ('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 "content/renderer/pepper/audio_helper.h" 5 #include "content/renderer/pepper/audio_helper.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/renderer/pepper/common.h" 8 #include "content/renderer/pepper/common.h"
9 #include "content/renderer/pepper/resource_helper.h"
10 #include "ppapi/c/pp_completion_callback.h" 9 #include "ppapi/c/pp_completion_callback.h"
11 #include "ppapi/c/pp_errors.h" 10 #include "ppapi/c/pp_errors.h"
12 11
13 using ppapi::TrackedCallback; 12 using ppapi::TrackedCallback;
14 13
15 namespace content { 14 namespace content {
16 15
17 // AudioHelper ----------------------------------------------------------------- 16 // AudioHelper -----------------------------------------------------------------
18 17
19 AudioHelper::AudioHelper() : shared_memory_size_for_create_callback_(0) { 18 AudioHelper::AudioHelper() : shared_memory_size_for_create_callback_(0) {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 } 78 }
80 } 79 }
81 80
82 void AudioHelper::SetCreateCallback( 81 void AudioHelper::SetCreateCallback(
83 scoped_refptr< ::ppapi::TrackedCallback> create_callback) { 82 scoped_refptr< ::ppapi::TrackedCallback> create_callback) {
84 DCHECK(!TrackedCallback::IsPending(create_callback_)); 83 DCHECK(!TrackedCallback::IsPending(create_callback_));
85 create_callback_ = create_callback; 84 create_callback_ = create_callback;
86 } 85 }
87 86
88 } // namespace content 87 } // namespace content
OLDNEW
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/pepper/pepper_browser_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698