| OLD | NEW | 
|   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  Loading... | 
|  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 | 
| OLD | NEW |