| 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 CONTENT_CHILD_WEB_DATA_CONSUMER_HANDLE_IMPL_H_ | 5 #ifndef CONTENT_CHILD_WEB_DATA_CONSUMER_HANDLE_IMPL_H_ |
| 6 #define CONTENT_CHILD_WEB_DATA_CONSUMER_HANDLE_IMPL_H_ | 6 #define CONTENT_CHILD_WEB_DATA_CONSUMER_HANDLE_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "mojo/message_pump/handle_watcher.h" | 10 #include "mojo/message_pump/handle_watcher.h" |
| 11 #include "mojo/public/cpp/system/data_pipe.h" |
| 11 #include "third_party/WebKit/public/platform/WebDataConsumerHandle.h" | 12 #include "third_party/WebKit/public/platform/WebDataConsumerHandle.h" |
| 12 #include "third_party/mojo/src/mojo/public/cpp/system/data_pipe.h" | |
| 13 | 13 |
| 14 namespace content { | 14 namespace content { |
| 15 | 15 |
| 16 class CONTENT_EXPORT WebDataConsumerHandleImpl final | 16 class CONTENT_EXPORT WebDataConsumerHandleImpl final |
| 17 : public NON_EXPORTED_BASE(blink::WebDataConsumerHandle) { | 17 : public NON_EXPORTED_BASE(blink::WebDataConsumerHandle) { |
| 18 typedef mojo::ScopedDataPipeConsumerHandle Handle; | 18 typedef mojo::ScopedDataPipeConsumerHandle Handle; |
| 19 class Context; | 19 class Context; |
| 20 | 20 |
| 21 public: | 21 public: |
| 22 class CONTENT_EXPORT ReaderImpl final : public NON_EXPORTED_BASE(Reader) { | 22 class CONTENT_EXPORT ReaderImpl final : public NON_EXPORTED_BASE(Reader) { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 49 private: | 49 private: |
| 50 ReaderImpl* obtainReaderInternal(Client* client) override; | 50 ReaderImpl* obtainReaderInternal(Client* client) override; |
| 51 const char* debugName() const override; | 51 const char* debugName() const override; |
| 52 | 52 |
| 53 scoped_refptr<Context> context_; | 53 scoped_refptr<Context> context_; |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 } // namespace content | 56 } // namespace content |
| 57 | 57 |
| 58 #endif // CONTENT_CHILD_WEB_DATA_CONSUMER_HANDLE_IMPL_H_ | 58 #endif // CONTENT_CHILD_WEB_DATA_CONSUMER_HANDLE_IMPL_H_ |
| OLD | NEW |