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_HTTP_SERVER_H_ | 5 #ifndef IOS_WEB_PUBLIC_TEST_HTTP_SERVER_H_ |
6 #define IOS_WEB_PUBLIC_TEST_HTTP_SERVER_H_ | 6 #define IOS_WEB_PUBLIC_TEST_HTTP_SERVER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #import "base/mac/scoped_nsobject.h" | 11 #import "base/mac/scoped_nsobject.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/synchronization/lock.h" | 14 #include "base/synchronization/lock.h" |
15 #include "ios/web/public/test/response_providers/response_provider.h" | 15 #import "ios/web/public/test/response_providers/response_provider.h" |
16 | 16 |
17 @class GCDWebServer; | 17 @class GCDWebServer; |
18 | 18 |
19 namespace web { | 19 namespace web { |
20 namespace test { | 20 namespace test { |
21 | 21 |
22 // A convience class for wrapping a ResponseProvider so that it can be used | 22 // A convience class for wrapping a ResponseProvider so that it can be used |
23 // inside data structures that operate on ref counted objects. This class is a | 23 // inside data structures that operate on ref counted objects. This class is a |
24 // ref counted container for a ResponseProvider. | 24 // ref counted container for a ResponseProvider. |
25 // This object exists for legacy reasons since a large part of the code base | 25 // This object exists for legacy reasons since a large part of the code base |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 // The list of providers to service a request. | 124 // The list of providers to service a request. |
125 std::vector<scoped_refptr<RefCountedResponseProviderWrapper>> providers_; | 125 std::vector<scoped_refptr<RefCountedResponseProviderWrapper>> providers_; |
126 DISALLOW_COPY_AND_ASSIGN(HttpServer); | 126 DISALLOW_COPY_AND_ASSIGN(HttpServer); |
127 }; | 127 }; |
128 | 128 |
129 } // namespace test | 129 } // namespace test |
130 } // namspace web | 130 } // namspace web |
131 | 131 |
132 #endif // IOS_WEB_PUBLIC_TEST_HTTP_SERVER_H_ | 132 #endif // IOS_WEB_PUBLIC_TEST_HTTP_SERVER_H_ |
133 | 133 |
OLD | NEW |