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 NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_CALLBACK_SOURCE_H | 5 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_CALLBACK_SOURCE_H |
6 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_CALLBACK_SOURCE_H | 6 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_CALLBACK_SOURCE_H |
7 | 7 |
8 #include "ppapi/cpp/completion_callback.h" | 8 #include "ppapi/cpp/completion_callback.h" |
9 | 9 |
10 namespace plugin { | 10 namespace plugin { |
(...skipping 13 matching lines...) Expand all Loading... |
24 template<class T> | 24 template<class T> |
25 class CallbackSource { | 25 class CallbackSource { |
26 public: | 26 public: |
27 virtual ~CallbackSource(); | 27 virtual ~CallbackSource(); |
28 // Returns a callback from callback_factory's NewCallbackWithOutput, | 28 // Returns a callback from callback_factory's NewCallbackWithOutput, |
29 // bound to the implementing object. | 29 // bound to the implementing object. |
30 virtual pp::CompletionCallbackWithOutput<T> GetCallback() = 0; | 30 virtual pp::CompletionCallbackWithOutput<T> GetCallback() = 0; |
31 }; | 31 }; |
32 } | 32 } |
33 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_CALLBACK_SOURCE_H | 33 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_CALLBACK_SOURCE_H |
OLD | NEW |