Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 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 DataConsumerTee_h | |
| 6 #define DataConsumerTee_h | |
| 7 | |
| 8 #include "public/platform/WebDataConsumerHandle.h" | |
| 9 | |
| 10 #include "wtf/OwnPtr.h" | |
| 11 #include "wtf/PassOwnPtr.h" | |
| 12 | |
| 13 namespace blink { | |
| 14 | |
| 15 class ExecutionContext; | |
| 16 | |
| 17 class DataConsumerTee { | |
| 18 public: | |
| 19 // Create two handles from one. |in| must be a valid unlocked handle. | |
| 20 static void create(ExecutionContext*, PassOwnPtr<WebDataConsumerHandle> in, OwnPtr<WebDataConsumerHandle>* out1, OwnPtr<WebDataConsumerHandle>* out2); | |
|
hiroshige
2015/06/19 06:40:35
nit: Should we name the argument as |src|, |dest1/
yhirano
2015/06/19 07:27:52
Done.
| |
| 21 }; | |
| 22 | |
| 23 } // namespace blink | |
| 24 | |
| 25 #endif // DataConsumerTee_h | |
| OLD | NEW |