Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: third_party/WebKit/public/platform/WebURLLoaderMockFactory.h

Issue 2537753002: Remove WebURLLoader* argument from WebURLLoaderClient methods (Closed)
Patch Set: a Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/WebURLLoaderClient.h ('k') | third_party/WebKit/public/platform/WebURLLoaderTestDelegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698