OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CC_BASE_SWAP_PROMISE_H_ | |
6 #define CC_BASE_SWAP_PROMISE_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "base/callback.h" | |
11 #include "base/callback_forward.h" | |
12 | |
13 namespace cc { | |
14 | |
15 struct SwapPromise { | |
16 SwapPromise(const base::Closure& did_swap_cb, | |
17 const base::Callback<void(const std::string&)>& swap_aborted_cb) | |
18 : did_swap_callback(did_swap_cb), | |
19 swap_aborted_callback(swap_aborted_cb) {} | |
20 | |
21 ~SwapPromise() {} | |
22 | |
23 base::Closure did_swap_callback; | |
24 base::Callback<void(const std::string&)> swap_aborted_callback; | |
jamesr
2013/11/12 03:15:04
why does this take a std::string? from this patch
Yufeng Shen (Slow to review)
2013/11/13 21:05:04
Done.
| |
25 }; | |
26 | |
27 } // namespace cc | |
28 | |
29 #endif // CC_BASE_SWAP_PROMISE_H_ | |
OLD | NEW |