OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_NETWORK_NET_ADAPTERS_ | 5 #ifndef CONTENT_COMMON_NET_ADAPTERS_ |
6 #define CONTENT_NETWORK_NET_ADAPTERS_ | 6 #define CONTENT_COMMON_NET_ADAPTERS_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "mojo/public/cpp/system/data_pipe.h" | 11 #include "mojo/public/cpp/system/data_pipe.h" |
12 #include "net/base/io_buffer.h" | 12 #include "net/base/io_buffer.h" |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 | 15 |
16 // These adapters are used to transfer data between a Mojo pipe and the net | 16 // These adapters are used to transfer data between a Mojo pipe and the net |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 public: | 61 public: |
62 explicit NetToMojoIOBuffer(NetToMojoPendingBuffer* pending_buffer); | 62 explicit NetToMojoIOBuffer(NetToMojoPendingBuffer* pending_buffer); |
63 | 63 |
64 private: | 64 private: |
65 ~NetToMojoIOBuffer() override; | 65 ~NetToMojoIOBuffer() override; |
66 scoped_refptr<NetToMojoPendingBuffer> pending_buffer_; | 66 scoped_refptr<NetToMojoPendingBuffer> pending_buffer_; |
67 }; | 67 }; |
68 | 68 |
69 } // namespace content | 69 } // namespace content |
70 | 70 |
71 #endif // CONTENT_NETWORK_NET_ADAPTERS_ | 71 #endif // CONTENT_COMMON_NET_ADAPTERS_ |
OLD | NEW |