OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 NET_TEST_EMBEDDED_TEST_SERVER_HTTP_RESPONSE_H_ | 5 #ifndef NET_TEST_EMBEDDED_TEST_SERVER_HTTP_RESPONSE_H_ |
6 #define NET_TEST_EMBEDDED_TEST_SERVER_HTTP_RESPONSE_H_ | 6 #define NET_TEST_EMBEDDED_TEST_SERVER_HTTP_RESPONSE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | |
11 #include "base/callback.h" | 10 #include "base/callback.h" |
12 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/macros.h" |
13 #include "base/strings/string_split.h" | 13 #include "base/strings/string_split.h" |
14 #include "net/http/http_status_code.h" | 14 #include "net/http/http_status_code.h" |
15 | 15 |
16 namespace net { | 16 namespace net { |
17 namespace test_server { | 17 namespace test_server { |
18 | 18 |
19 // Callback called when the response is done being sent. | 19 // Callback called when the response is done being sent. |
20 using SendCompleteCallback = base::Callback<void(void)>; | 20 using SendCompleteCallback = base::Callback<void(void)>; |
21 | 21 |
22 // Callback called when the response is ready to be sent that takes the | 22 // Callback called when the response is ready to be sent that takes the |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 std::string headers_; | 93 std::string headers_; |
94 const std::string contents_; | 94 const std::string contents_; |
95 | 95 |
96 DISALLOW_COPY_AND_ASSIGN(RawHttpResponse); | 96 DISALLOW_COPY_AND_ASSIGN(RawHttpResponse); |
97 }; | 97 }; |
98 | 98 |
99 } // namespace test_server | 99 } // namespace test_server |
100 } // namespace net | 100 } // namespace net |
101 | 101 |
102 #endif // NET_TEST_EMBEDDED_TEST_SERVER_HTTP_RESPONSE_H_ | 102 #endif // NET_TEST_EMBEDDED_TEST_SERVER_HTTP_RESPONSE_H_ |
OLD | NEW |