OLD | NEW |
1 // This file was GENERATED by command: | 1 // This file was GENERATED by command: |
2 // pump.py callback.h.pump | 2 // pump.py callback.h.pump |
3 // DO NOT EDIT BY HAND!!! | 3 // DO NOT EDIT BY HAND!!! |
4 | 4 |
5 | 5 |
6 | 6 |
7 // Copyright 2014 The Chromium Authors. All rights reserved. | 7 // Copyright 2014 The Chromium Authors. All rights reserved. |
8 // Use of this source code is governed by a BSD-style license that can be | 8 // Use of this source code is governed by a BSD-style license that can be |
9 // found in the LICENSE file. | 9 // found in the LICENSE file. |
10 | 10 |
11 #ifndef MOJO_PUBLIC_CPP_BINDINGS_CALLBACK_H_ | 11 #ifndef MOJO_PUBLIC_CPP_BINDINGS_CALLBACK_H_ |
12 #define MOJO_PUBLIC_CPP_BINDINGS_CALLBACK_H_ | 12 #define MOJO_PUBLIC_CPP_BINDINGS_CALLBACK_H_ |
13 | 13 |
14 #include "mojo/public/bindings/lib/callback_internal.h" | 14 #include "mojo/public/cpp/bindings/lib/callback_internal.h" |
15 #include "mojo/public/bindings/lib/shared_ptr.h" | 15 #include "mojo/public/cpp/bindings/lib/shared_ptr.h" |
16 | 16 |
17 namespace mojo { | 17 namespace mojo { |
18 | 18 |
19 template <typename Sig> | 19 template <typename Sig> |
20 class Callback; | 20 class Callback; |
21 | 21 |
22 template <> | 22 template <> |
23 class Callback<void()> { | 23 class Callback<void()> { |
24 public: | 24 public: |
25 struct Runnable { | 25 struct Runnable { |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 } | 452 } |
453 Sink sink; | 453 Sink sink; |
454 }; | 454 }; |
455 | 455 |
456 internal::SharedPtr<Runnable> sink_; | 456 internal::SharedPtr<Runnable> sink_; |
457 }; | 457 }; |
458 | 458 |
459 } // namespace mojo | 459 } // namespace mojo |
460 | 460 |
461 #endif // MOJO_PUBLIC_CPP_BINDINGS_CALLBACK_H_ | 461 #endif // MOJO_PUBLIC_CPP_BINDINGS_CALLBACK_H_ |
OLD | NEW |