| 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 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/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h" | 11 #include "third_party/WebKit/public/platform/WebURL.h" |
| 12 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLRequest.h" | 12 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
| 13 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLResponse.h" | 13 #include "third_party/WebKit/public/platform/WebURLResponse.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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 typedef std::map<WebKit::WebURL, ResponseInfo> URLToResponseMap; | 102 typedef std::map<WebKit::WebURL, ResponseInfo> URLToResponseMap; |
| 103 URLToResponseMap url_to_reponse_info_; | 103 URLToResponseMap url_to_reponse_info_; |
| 104 | 104 |
| 105 WebKit::WebURLRequest last_handled_asynchronous_request_; | 105 WebKit::WebURLRequest last_handled_asynchronous_request_; |
| 106 | 106 |
| 107 DISALLOW_COPY_AND_ASSIGN(WebURLLoaderMockFactory); | 107 DISALLOW_COPY_AND_ASSIGN(WebURLLoaderMockFactory); |
| 108 }; | 108 }; |
| 109 | 109 |
| 110 #endif // WEBKIT_SUPPORT_WEBURL_LOADER_MOCK_FACTORY_H_ | 110 #endif // WEBKIT_SUPPORT_WEBURL_LOADER_MOCK_FACTORY_H_ |
| 111 | 111 |
| OLD | NEW |