OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 WEBKIT_SUPPORT_WEBURL_LOADER_MOCK_FACTORY_H_ |
6 #define WEBKIT_SUPPORT_WEBURL_LOADER_MOCK_FACTORY_H_ | 6 #define WEBKIT_SUPPORT_WEBURL_LOADER_MOCK_FACTORY_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" |
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLRequest.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLReques
t.h" |
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLResponse.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLRespon
se.h" |
14 | 14 |
15 namespace WebKit { | 15 namespace WebKit { |
16 class WebData; | 16 class WebData; |
17 struct WebURLError; | 17 struct WebURLError; |
18 class WebURLLoader; | 18 class WebURLLoader; |
19 } | 19 } |
20 | 20 |
21 class WebURLLoaderMock; | 21 class WebURLLoaderMock; |
22 | 22 |
23 // A factory that creates WebURLLoaderMock to simulate resource loading in | 23 // A factory that creates WebURLLoaderMock to simulate resource loading in |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 86 |
87 // Table of the registered URLs and the responses that they should receive. | 87 // Table of the registered URLs and the responses that they should receive. |
88 typedef std::map<WebKit::WebURL, ResponseInfo> URLToResponseMap; | 88 typedef std::map<WebKit::WebURL, ResponseInfo> URLToResponseMap; |
89 URLToResponseMap url_to_reponse_info_; | 89 URLToResponseMap url_to_reponse_info_; |
90 | 90 |
91 DISALLOW_COPY_AND_ASSIGN(WebURLLoaderMockFactory); | 91 DISALLOW_COPY_AND_ASSIGN(WebURLLoaderMockFactory); |
92 }; | 92 }; |
93 | 93 |
94 #endif // WEBKIT_SUPPORT_WEBURL_LOADER_MOCK_FACTORY_H_ | 94 #endif // WEBKIT_SUPPORT_WEBURL_LOADER_MOCK_FACTORY_H_ |
95 | 95 |
OLD | NEW |