| 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" | 
|  11 #include "public/platform/WebURLLoaderTestDelegate.h" |  11 #include "public/platform/WebURLLoaderTestDelegate.h" | 
|  12  |  12  | 
|  13 #include <memory> |  13 #include <memory> | 
|  14  |  14  | 
|  15 namespace blink { |  15 namespace blink { | 
|  16  |  16  | 
|  17 class WebURL; |  17 class WebURL; | 
 |  18 class WebURLLoader; | 
|  18 class WebURLResponse; |  19 class WebURLResponse; | 
|  19 struct WebURLError; |  20 struct WebURLError; | 
|  20  |  21  | 
|  21 class WebURLLoaderMockFactory { |  22 class WebURLLoaderMockFactory { | 
|  22  public: |  23  public: | 
|  23   static std::unique_ptr<WebURLLoaderMockFactory> create(); |  24   static std::unique_ptr<WebURLLoaderMockFactory> create(); | 
|  24  |  25  | 
|  25   virtual ~WebURLLoaderMockFactory() {} |  26   virtual ~WebURLLoaderMockFactory() {} | 
|  26  |  27  | 
|  27   // Create a WebURLLoader that takes care of mocked requests. |  28   // Create a WebURLLoader that takes care of mocked requests. | 
| (...skipping 26 matching lines...) Expand all  Loading... | 
|  54   virtual void serveAsynchronousRequests() = 0; |  55   virtual void serveAsynchronousRequests() = 0; | 
|  55  |  56  | 
|  56   // Set a delegate that allows callbacks for all WebURLLoaderClients to be |  57   // Set a delegate that allows callbacks for all WebURLLoaderClients to be | 
|  57   // intercepted. |  58   // intercepted. | 
|  58   virtual void setLoaderDelegate(WebURLLoaderTestDelegate*) = 0; |  59   virtual void setLoaderDelegate(WebURLLoaderTestDelegate*) = 0; | 
|  59 }; |  60 }; | 
|  60  |  61  | 
|  61 }  // namespace blink |  62 }  // namespace blink | 
|  62  |  63  | 
|  63 #endif  // WebURLLoaderMockFactory_h |  64 #endif  // WebURLLoaderMockFactory_h | 
| OLD | NEW |