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

Side by Side Diff: ppapi/proxy/proxy_array_output.h

Issue 10081020: PPAPI: Make blocking completion callbacks work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: export AssertLockHeld Created 8 years, 6 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 | « ppapi/proxy/ppb_video_decoder_proxy.cc ('k') | ppapi/shared_impl/ppapi_globals.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 #ifndef PPAPI_PROXY_PROXY_ARRAY_OUTPUT_H_ 5 #ifndef PPAPI_PROXY_PROXY_ARRAY_OUTPUT_H_
6 #define PPAPI_PROXY_PROXY_ARRAY_OUTPUT_H_ 6 #define PPAPI_PROXY_PROXY_ARRAY_OUTPUT_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 12 matching lines...) Expand all
23 // int32_t result, 23 // int32_t result,
24 // scoped_refptr<RefCountedArrayOutputAdapter<PP_Resource> > output) { 24 // scoped_refptr<RefCountedArrayOutputAdapter<PP_Resource> > output) {
25 // // Vector is in output->output(). 25 // // Vector is in output->output().
26 // } 26 // }
27 // 27 //
28 // void ScheduleCallback() { 28 // void ScheduleCallback() {
29 // base::scoped_refptr<RefCountedArrayOutputAdapter<PP_Resource> > output; 29 // base::scoped_refptr<RefCountedArrayOutputAdapter<PP_Resource> > output;
30 // 30 //
31 // callback = factory.NewOptionalCallback(&OnCallbackComplete, output); 31 // callback = factory.NewOptionalCallback(&OnCallbackComplete, output);
32 // DoSomethingAsynchronously(output->pp_array_output(), 32 // DoSomethingAsynchronously(output->pp_array_output(),
33 // callback.PP_CompletionCallback()); 33 // callback.pp_completion_callback());
34 // ... 34 // ...
35 namespace ppapi { 35 namespace ppapi {
36 namespace proxy { 36 namespace proxy {
37 37
38 // Non-templatized base class for the array output conversion. It provides the 38 // Non-templatized base class for the array output conversion. It provides the
39 // C implementation of a PP_ArrayOutput whose callback function is implemented 39 // C implementation of a PP_ArrayOutput whose callback function is implemented
40 // as a virtual call on a derived class. Do not use directly, use one of the 40 // as a virtual call on a derived class. Do not use directly, use one of the
41 // derived classes below. 41 // derived classes below.
42 class ArrayOutputAdapterBase { 42 class ArrayOutputAdapterBase {
43 public: 43 public:
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 public: 129 public:
130 RefCountedArrayOutputAdapter() 130 RefCountedArrayOutputAdapter()
131 : ArrayOutputAdapterWithStorage<T>() { 131 : ArrayOutputAdapterWithStorage<T>() {
132 } 132 }
133 }; 133 };
134 134
135 } // namespace proxy 135 } // namespace proxy
136 } // namespace ppapi 136 } // namespace ppapi
137 137
138 #endif // PPAPI_PROXY_PROXY_ARRAY_OUTPUT_H_ 138 #endif // PPAPI_PROXY_PROXY_ARRAY_OUTPUT_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_video_decoder_proxy.cc ('k') | ppapi/shared_impl/ppapi_globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698