OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |