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 WEBKIT_SUPPORT_WEBURL_LOADER_MOCK_FACTORY_H_ | 5 #ifndef CONTENT_TEST_WEBURL_LOADER_MOCK_FACTORY_H_ |
6 #define WEBKIT_SUPPORT_WEBURL_LOADER_MOCK_FACTORY_H_ | 6 #define CONTENT_TEST_WEBURL_LOADER_MOCK_FACTORY_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "third_party/WebKit/public/platform/WebURL.h" | 11 #include "third_party/WebKit/public/platform/WebURL.h" |
12 #include "third_party/WebKit/public/platform/WebURLError.h" | 12 #include "third_party/WebKit/public/platform/WebURLError.h" |
13 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 13 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
14 #include "third_party/WebKit/public/platform/WebURLResponse.h" | 14 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
15 | 15 |
16 namespace WebKit { | 16 namespace WebKit { |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 104 |
105 // Table of the registered URLs and the responses that they should receive. | 105 // Table of the registered URLs and the responses that they should receive. |
106 typedef std::map<GURL, ResponseInfo> URLToResponseMap; | 106 typedef std::map<GURL, ResponseInfo> URLToResponseMap; |
107 URLToResponseMap url_to_reponse_info_; | 107 URLToResponseMap url_to_reponse_info_; |
108 | 108 |
109 WebKit::WebURLRequest last_handled_asynchronous_request_; | 109 WebKit::WebURLRequest last_handled_asynchronous_request_; |
110 | 110 |
111 DISALLOW_COPY_AND_ASSIGN(WebURLLoaderMockFactory); | 111 DISALLOW_COPY_AND_ASSIGN(WebURLLoaderMockFactory); |
112 }; | 112 }; |
113 | 113 |
114 #endif // WEBKIT_SUPPORT_WEBURL_LOADER_MOCK_FACTORY_H_ | 114 #endif // CONTENT_TEST_WEBURL_LOADER_MOCK_FACTORY_H_ |
115 | 115 |
OLD | NEW |