| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 SKY_ENGINE_PLATFORM_FETCHER_DATA_PIPE_DRAINER_H_ | 5 #ifndef SKY_ENGINE_PLATFORM_FETCHER_DATAPIPEDRAINER_H_ |
| 6 #define SKY_ENGINE_PLATFORM_FETCHER_DATA_PIPE_DRAINER_H_ | 6 #define SKY_ENGINE_PLATFORM_FETCHER_DATAPIPEDRAINER_H_ |
| 7 | 7 |
| 8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "mojo/common/handle_watcher.h" | 9 #include "mojo/common/handle_watcher.h" |
| 10 #include "mojo/public/cpp/system/core.h" | 10 #include "mojo/public/cpp/system/core.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class DataPipeDrainer { | 14 class DataPipeDrainer { |
| 15 public: | 15 public: |
| 16 class Client { | 16 class Client { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 34 mojo::ScopedDataPipeConsumerHandle source_; | 34 mojo::ScopedDataPipeConsumerHandle source_; |
| 35 mojo::common::HandleWatcher handle_watcher_; | 35 mojo::common::HandleWatcher handle_watcher_; |
| 36 | 36 |
| 37 base::WeakPtrFactory<DataPipeDrainer> weak_factory_; | 37 base::WeakPtrFactory<DataPipeDrainer> weak_factory_; |
| 38 | 38 |
| 39 DISALLOW_COPY_AND_ASSIGN(DataPipeDrainer); | 39 DISALLOW_COPY_AND_ASSIGN(DataPipeDrainer); |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 } // namespace blink | 42 } // namespace blink |
| 43 | 43 |
| 44 #endif // SKY_ENGINE_PLATFORM_FETCHER_DATA_PIPE_DRAINER_H_ | 44 #endif // SKY_ENGINE_PLATFORM_FETCHER_DATAPIPEDRAINER_H_ |
| OLD | NEW |