OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_URL_RESPONSE_BODY_CONSUMER_H_ | 5 #ifndef CONTENT_CHILD_URL_RESPONSE_BODY_CONSUMER_H_ |
6 #define CONTENT_CHILD_URL_RESPONSE_BODY_CONSUMER_H_ | 6 #define CONTENT_CHILD_URL_RESPONSE_BODY_CONSUMER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <utility> | 11 #include <utility> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
17 #include "base/single_thread_task_runner.h" | 17 #include "base/single_thread_task_runner.h" |
18 #include "content/common/content_export.h" | 18 #include "content/common/content_export.h" |
19 #include "content/common/url_loader.mojom.h" | 19 #include "content/public/common/url_loader.mojom.h" |
20 #include "mojo/public/cpp/system/data_pipe.h" | 20 #include "mojo/public/cpp/system/data_pipe.h" |
21 #include "mojo/public/cpp/system/simple_watcher.h" | 21 #include "mojo/public/cpp/system/simple_watcher.h" |
22 | 22 |
23 namespace content { | 23 namespace content { |
24 | 24 |
25 class ResourceDispatcher; | 25 class ResourceDispatcher; |
26 struct ResourceRequestCompletionStatus; | 26 struct ResourceRequestCompletionStatus; |
27 | 27 |
28 // This class pulls data from a data pipe and dispatches it to the | 28 // This class pulls data from a data pipe and dispatches it to the |
29 // ResourceDispatcher. This class is used only for mojo-enabled requests. | 29 // ResourceDispatcher. This class is used only for mojo-enabled requests. |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 bool has_seen_end_of_data_; | 84 bool has_seen_end_of_data_; |
85 bool is_deferred_ = false; | 85 bool is_deferred_ = false; |
86 bool is_in_on_readable_ = false; | 86 bool is_in_on_readable_ = false; |
87 | 87 |
88 DISALLOW_COPY_AND_ASSIGN(URLResponseBodyConsumer); | 88 DISALLOW_COPY_AND_ASSIGN(URLResponseBodyConsumer); |
89 }; | 89 }; |
90 | 90 |
91 } // namespace content | 91 } // namespace content |
92 | 92 |
93 #endif // CONTENT_CHILD_URL_RESPONSE_BODY_CONSUMER_H_ | 93 #endif // CONTENT_CHILD_URL_RESPONSE_BODY_CONSUMER_H_ |
OLD | NEW |