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_COMPLETION_CALLBACK_FACTORY_H_ | 5 #ifndef PPAPI_PROXY_PROXY_COMPLETION_CALLBACK_FACTORY_H_ |
6 #define PPAPI_PROXY_PROXY_COMPLETION_CALLBACK_FACTORY_H_ | 6 #define PPAPI_PROXY_PROXY_COMPLETION_CALLBACK_FACTORY_H_ |
7 | 7 |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "ppapi/cpp/completion_callback.h" | 10 #include "ppapi/cpp/completion_callback.h" |
11 #include "ppapi/utility/completion_callback_factory.h" | 11 #include "ppapi/utility/completion_callback_factory.h" |
12 | 12 |
13 namespace ppapi { | 13 namespace ppapi { |
14 namespace proxy { | 14 namespace proxy { |
15 | 15 |
16 // This class is just like pp::NonThreadSafeThreadTraits but rather than using | 16 // This class is just like pp::NonThreadSafeThreadTraits but rather than using |
17 // pp::Module::core (which doesn't exist), it uses Chrome threads which do. | 17 // pp::Module::core (which doesn't exist), it uses Chrome threads which do. |
18 class ProxyNonThreadSafeThreadTraits { | 18 class ProxyNonThreadSafeThreadTraits { |
19 public: | 19 public: |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 ProxyCompletionCallbackFactory() | 78 ProxyCompletionCallbackFactory() |
79 : pp::CompletionCallbackFactory<T, ProxyNonThreadSafeThreadTraits>() {} | 79 : pp::CompletionCallbackFactory<T, ProxyNonThreadSafeThreadTraits>() {} |
80 ProxyCompletionCallbackFactory(T* t) | 80 ProxyCompletionCallbackFactory(T* t) |
81 : pp::CompletionCallbackFactory<T, ProxyNonThreadSafeThreadTraits>(t) {} | 81 : pp::CompletionCallbackFactory<T, ProxyNonThreadSafeThreadTraits>(t) {} |
82 }; | 82 }; |
83 | 83 |
84 } // namespace proxy | 84 } // namespace proxy |
85 } // namespace ppapi | 85 } // namespace ppapi |
86 | 86 |
87 #endif // PPAPI_PROXY_PROXY_COMPLETION_CALLBACK_FACTORY_H_ | 87 #endif // PPAPI_PROXY_PROXY_COMPLETION_CALLBACK_FACTORY_H_ |
OLD | NEW |