Chromium Code Reviews| 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 CHROME_BROWSER_GOOGLE_APIS_TEST_SERVER_HTTP_CONNECTION_H_ | 5 #ifndef NET_TEST_EMBEDDED_TEST_SERVER_HTTP_CONNECTION_H_ |
| 6 #define CHROME_BROWSER_GOOGLE_APIS_TEST_SERVER_HTTP_CONNECTION_H_ | 6 #define NET_TEST_EMBEDDED_TEST_SERVER_HTTP_CONNECTION_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/strings/string_piece.h" | 11 #include "base/strings/string_piece.h" |
| 12 #include "chrome/browser/google_apis/test_server/http_request.h" | 12 #include "net/test/embedded_test_server/http_request.h" |
| 13 | 13 |
| 14 namespace net { | 14 namespace net { |
| 15 class StreamListenSocket; | 15 class StreamListenSocket; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace google_apis { | 18 namespace google_apis { |
|
Ryan Hamilton
2013/05/06 15:33:09
Here and elsewhere, I think this should be net:: n
Paweł Hajdan Jr.
2013/05/06 23:52:47
Both comments make sense, I'd just prefer to do mo
| |
| 19 namespace test_server { | 19 namespace test_server { |
|
Ryan Hamilton
2013/05/06 15:33:09
embedded_test_server::? to match the directory str
| |
| 20 | 20 |
| 21 class HttpConnection; | 21 class HttpConnection; |
| 22 class HttpResponse; | 22 class HttpResponse; |
| 23 | 23 |
| 24 // Calblack called when a request is parsed. Response should be sent | 24 // Calblack called when a request is parsed. Response should be sent |
| 25 // using HttpConnection::SendResponse() on the |connection| argument. | 25 // using HttpConnection::SendResponse() on the |connection| argument. |
| 26 typedef base::Callback<void(HttpConnection* connection, | 26 typedef base::Callback<void(HttpConnection* connection, |
| 27 scoped_ptr<HttpRequest> request)> | 27 scoped_ptr<HttpRequest> request)> |
| 28 HandleRequestCallback; | 28 HandleRequestCallback; |
| 29 | 29 |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 49 scoped_refptr<net::StreamListenSocket> socket_; | 49 scoped_refptr<net::StreamListenSocket> socket_; |
| 50 const HandleRequestCallback callback_; | 50 const HandleRequestCallback callback_; |
| 51 HttpRequestParser request_parser_; | 51 HttpRequestParser request_parser_; |
| 52 | 52 |
| 53 DISALLOW_COPY_AND_ASSIGN(HttpConnection); | 53 DISALLOW_COPY_AND_ASSIGN(HttpConnection); |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 } // namespace test_server | 56 } // namespace test_server |
| 57 } // namespace google_apis | 57 } // namespace google_apis |
| 58 | 58 |
| 59 #endif // CHROME_BROWSER_GOOGLE_APIS_TEST_SERVER_HTTP_CONNECTION_H_ | 59 #endif // NET_TEST_EMBEDDED_TEST_SERVER_HTTP_CONNECTION_H_ |
| OLD | NEW |