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 IOS_WEB_PUBLIC_TEST_RESPONSE_PROVIDERS_RESPONSE_PROVIDER_H_ | 5 #ifndef IOS_WEB_PUBLIC_TEST_HTTP_SERVER_RESPONSE_PROVIDER_H_ |
6 #define IOS_WEB_PUBLIC_TEST_RESPONSE_PROVIDERS_RESPONSE_PROVIDER_H_ | 6 #define IOS_WEB_PUBLIC_TEST_HTTP_SERVER_RESPONSE_PROVIDER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "net/http/http_request_headers.h" | 13 #include "net/http/http_request_headers.h" |
14 #include "net/http/http_response_headers.h" | 14 #include "net/http/http_response_headers.h" |
15 #include "net/http/http_status_code.h" | 15 #include "net/http/http_status_code.h" |
16 #include "url/gurl.h" | 16 #include "url/gurl.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 static scoped_refptr<net::HttpResponseHeaders> GetResponseHeaders( | 68 static scoped_refptr<net::HttpResponseHeaders> GetResponseHeaders( |
69 const std::string& content_type, | 69 const std::string& content_type, |
70 net::HttpStatusCode response_code); | 70 net::HttpStatusCode response_code); |
71 // Gets configurable response based on |http_status| headers for redirecting | 71 // Gets configurable response based on |http_status| headers for redirecting |
72 // to |destination|. | 72 // to |destination|. |
73 static scoped_refptr<net::HttpResponseHeaders> GetRedirectResponseHeaders( | 73 static scoped_refptr<net::HttpResponseHeaders> GetRedirectResponseHeaders( |
74 const std::string& destination, | 74 const std::string& destination, |
75 const net::HttpStatusCode& http_status); | 75 const net::HttpStatusCode& http_status); |
76 | 76 |
77 ResponseProvider(); | 77 ResponseProvider(); |
78 virtual ~ResponseProvider() {}; | 78 virtual ~ResponseProvider() {} |
| 79 |
79 private: | 80 private: |
80 DISALLOW_COPY_AND_ASSIGN(ResponseProvider); | 81 DISALLOW_COPY_AND_ASSIGN(ResponseProvider); |
81 }; | 82 }; |
82 | 83 |
83 } // namspace web | 84 } // namspace web |
84 | 85 |
85 #endif // IOS_WEB_PUBLIC_TEST_RESPONSE_PROVIDERS_RESPONSE_PROVIDER_H_ | 86 #endif // IOS_WEB_PUBLIC_TEST_HTTP_SERVER_RESPONSE_PROVIDER_H_ |
OLD | NEW |