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_SERVER_H_ | 5 #ifndef CHROME_BROWSER_GOOGLE_APIS_TEST_SERVER_HTTP_SERVER_H_ |
6 #define CHROME_BROWSER_GOOGLE_APIS_TEST_SERVER_HTTP_SERVER_H_ | 6 #define CHROME_BROWSER_GOOGLE_APIS_TEST_SERVER_HTTP_SERVER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
16 #include "googleurl/src/gurl.h" | 16 #include "googleurl/src/gurl.h" |
17 #include "net/base/tcp_listen_socket.h" | 17 #include "net/socket/tcp_listen_socket.h" |
18 | 18 |
19 namespace google_apis { | 19 namespace google_apis { |
20 namespace test_server { | 20 namespace test_server { |
21 | 21 |
22 class HttpConnection; | 22 class HttpConnection; |
23 class HttpResponse; | 23 class HttpResponse; |
24 struct HttpRequest; | 24 struct HttpRequest; |
25 | 25 |
26 // This class is required to be able to have composition instead of inheritance, | 26 // This class is required to be able to have composition instead of inheritance, |
27 class HttpListenSocket: public net::TCPListenSocket { | 27 class HttpListenSocket: public net::TCPListenSocket { |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 // invalidate its weak pointers before any other members are destroyed. | 138 // invalidate its weak pointers before any other members are destroyed. |
139 base::WeakPtrFactory<HttpServer> weak_factory_; | 139 base::WeakPtrFactory<HttpServer> weak_factory_; |
140 | 140 |
141 DISALLOW_COPY_AND_ASSIGN(HttpServer); | 141 DISALLOW_COPY_AND_ASSIGN(HttpServer); |
142 }; | 142 }; |
143 | 143 |
144 } // namespace test_servers | 144 } // namespace test_servers |
145 } // namespace google_apis | 145 } // namespace google_apis |
146 | 146 |
147 #endif // CHROME_BROWSER_GOOGLE_APIS_TEST_SERVER_HTTP_SERVER_H_ | 147 #endif // CHROME_BROWSER_GOOGLE_APIS_TEST_SERVER_HTTP_SERVER_H_ |
OLD | NEW |