OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2005, 2006, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006, 2011 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 void attachThreadedDataReceiver(PassOwnPtr<blink::WebThreadedDataReceiver>); | 69 void attachThreadedDataReceiver(PassOwnPtr<blink::WebThreadedDataReceiver>); |
70 | 70 |
71 void releaseResources(); | 71 void releaseResources(); |
72 | 72 |
73 void didChangePriority(ResourceLoadPriority, int intraPriorityValue); | 73 void didChangePriority(ResourceLoadPriority, int intraPriorityValue); |
74 | 74 |
75 // WebURLLoaderClient | 75 // WebURLLoaderClient |
76 void willSendRequest(blink::WebURLLoader*, blink::WebURLRequest&, const blin
k::WebURLResponse& redirectResponse) override; | 76 void willSendRequest(blink::WebURLLoader*, blink::WebURLRequest&, const blin
k::WebURLResponse& redirectResponse) override; |
77 void didSendData(blink::WebURLLoader*, unsigned long long bytesSent, unsigne
d long long totalBytesToBeSent) override; | 77 void didSendData(blink::WebURLLoader*, unsigned long long bytesSent, unsigne
d long long totalBytesToBeSent) override; |
78 void didReceiveResponse(blink::WebURLLoader*, const blink::WebURLResponse&)
override; | 78 void didReceiveResponse(blink::WebURLLoader*, const blink::WebURLResponse&)
override; |
| 79 void didReceiveResponse(blink::WebURLLoader*, const blink::WebURLResponse&,
WebDataConsumerHandle*) override; |
79 void didReceiveData(blink::WebURLLoader*, const char*, int, int encodedDataL
ength) override; | 80 void didReceiveData(blink::WebURLLoader*, const char*, int, int encodedDataL
ength) override; |
80 void didReceiveCachedMetadata(blink::WebURLLoader*, const char* data, int le
ngth) override; | 81 void didReceiveCachedMetadata(blink::WebURLLoader*, const char* data, int le
ngth) override; |
81 void didFinishLoading(blink::WebURLLoader*, double finishTime, int64_t encod
edDataLength) override; | 82 void didFinishLoading(blink::WebURLLoader*, double finishTime, int64_t encod
edDataLength) override; |
82 void didFail(blink::WebURLLoader*, const blink::WebURLError&) override; | 83 void didFail(blink::WebURLLoader*, const blink::WebURLError&) override; |
83 void didDownloadData(blink::WebURLLoader*, int, int) override; | 84 void didDownloadData(blink::WebURLLoader*, int, int) override; |
84 | 85 |
85 const KURL& url() const { return m_request.url(); } | 86 const KURL& url() const { return m_request.url(); } |
86 bool isLoadedBy(ResourceLoaderHost*) const; | 87 bool isLoadedBy(ResourceLoaderHost*) const; |
87 | 88 |
88 bool reachedTerminalState() const { return m_state == Terminated; } | 89 bool reachedTerminalState() const { return m_state == Terminated; } |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 // Used for sanity checking to make sure we don't experience illegal state | 146 // Used for sanity checking to make sure we don't experience illegal state |
146 // transitions. | 147 // transitions. |
147 ConnectionState m_connectionState; | 148 ConnectionState m_connectionState; |
148 | 149 |
149 OwnPtr<RequestCountTracker> m_requestCountTracker; | 150 OwnPtr<RequestCountTracker> m_requestCountTracker; |
150 }; | 151 }; |
151 | 152 |
152 } | 153 } |
153 | 154 |
154 #endif | 155 #endif |
OLD | NEW |