| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 WebURLLoaderMockFactory_h | 5 #ifndef WebURLLoaderMockFactory_h |
| 6 #define WebURLLoaderMockFactory_h | 6 #define WebURLLoaderMockFactory_h |
| 7 | 7 |
| 8 #include "public/platform/WebCommon.h" | 8 #include "public/platform/WebCommon.h" |
| 9 #include "public/platform/WebData.h" | 9 #include "public/platform/WebData.h" |
| 10 #include "public/platform/WebString.h" | 10 #include "public/platform/WebString.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 // Causes all pending asynchronous requests to be served. When this method | 47 // Causes all pending asynchronous requests to be served. When this method |
| 48 // returns all the pending requests have been processed. | 48 // returns all the pending requests have been processed. |
| 49 // Note: this may not work as expected if more requests could be made | 49 // Note: this may not work as expected if more requests could be made |
| 50 // asynchronously from different threads (e.g. when HTML parser thread | 50 // asynchronously from different threads (e.g. when HTML parser thread |
| 51 // is being involved). | 51 // is being involved). |
| 52 // DO NOT USE THIS for Frame loading; always use methods defined in | 52 // DO NOT USE THIS for Frame loading; always use methods defined in |
| 53 // FrameTestHelpers instead. | 53 // FrameTestHelpers instead. |
| 54 virtual void serveAsynchronousRequests() = 0; | 54 virtual void serveAsynchronousRequests() = 0; |
| 55 | 55 |
| 56 // Set a delegate that allows callbacks for all WebURLLoaderClients to be inte
rcepted. | 56 // Set a delegate that allows callbacks for all WebURLLoaderClients to be |
| 57 // intercepted. |
| 57 virtual void setLoaderDelegate(WebURLLoaderTestDelegate*) = 0; | 58 virtual void setLoaderDelegate(WebURLLoaderTestDelegate*) = 0; |
| 58 }; | 59 }; |
| 59 | 60 |
| 60 } // namespace blink | 61 } // namespace blink |
| 61 | 62 |
| 62 #endif // WebURLLoaderMockFactory_h | 63 #endif // WebURLLoaderMockFactory_h |
| OLD | NEW |