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/common/handle_watcher.h" | 10 #include "mojo/message_pump/handle_watcher.h" |
11 #include "third_party/WebKit/public/platform/WebDataConsumerHandle.h" | 11 #include "third_party/WebKit/public/platform/WebDataConsumerHandle.h" |
12 #include "third_party/mojo/src/mojo/public/cpp/system/data_pipe.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 |
(...skipping 25 matching lines...) Expand all Loading... |
46 private: | 46 private: |
47 virtual ReaderImpl* obtainReaderInternal(Client* client); | 47 virtual ReaderImpl* obtainReaderInternal(Client* client); |
48 const char* debugName() const override; | 48 const char* debugName() const override; |
49 | 49 |
50 scoped_refptr<Context> context_; | 50 scoped_refptr<Context> context_; |
51 }; | 51 }; |
52 | 52 |
53 } // namespace content | 53 } // namespace content |
54 | 54 |
55 #endif // CONTENT_CHILD_WEB_DATA_CONSUMER_HANDLE_IMPL_H_ | 55 #endif // CONTENT_CHILD_WEB_DATA_CONSUMER_HANDLE_IMPL_H_ |
OLD | NEW |