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

Side by Side Diff: third_party/WebKit/Source/web/tests/sim/SimRequest.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 SimRequest_h 5 #ifndef SimRequest_h
6 #define SimRequest_h 6 #define SimRequest_h
7 7
8 #include "public/platform/WebURLError.h" 8 #include "public/platform/WebURLError.h"
9 #include "public/platform/WebURLResponse.h" 9 #include "public/platform/WebURLResponse.h"
10 #include "wtf/text/WTFString.h" 10 #include "wtf/text/WTFString.h"
(...skipping 30 matching lines...) Expand all
41 const WebURLError& error() const { return m_error; } 41 const WebURLError& error() const { return m_error; }
42 const WebURLResponse& response() const { return m_response; } 42 const WebURLResponse& response() const { return m_response; }
43 43
44 private: 44 private:
45 friend class SimNetwork; 45 friend class SimNetwork;
46 46
47 void reset(); 47 void reset();
48 48
49 // Used by SimNetwork. 49 // Used by SimNetwork.
50 void didReceiveResponse(WebURLLoaderClient*, 50 void didReceiveResponse(WebURLLoaderClient*,
51 WebURLLoader*,
52 const WebURLResponse&); 51 const WebURLResponse&);
53 void didFail(const WebURLError&); 52 void didFail(const WebURLError&);
54 53
55 String m_url; 54 String m_url;
56 WebURLLoader* m_loader; 55 WebURLLoader* m_loader;
57 WebURLResponse m_response; 56 WebURLResponse m_response;
58 WebURLError m_error; 57 WebURLError m_error;
59 WebURLLoaderClient* m_client; 58 WebURLLoaderClient* m_client;
60 unsigned m_totalEncodedDataLength; 59 unsigned m_totalEncodedDataLength;
61 bool m_isReady; 60 bool m_isReady;
62 }; 61 };
63 62
64 } // namespace blink 63 } // namespace blink
65 64
66 #endif 65 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/sim/SimNetwork.cpp ('k') | third_party/WebKit/Source/web/tests/sim/SimRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698