| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 WEBKIT_GLUE_MEDIA_BUFFERED_RESOURCE_LOADER_H_ | 5 #ifndef WEBKIT_GLUE_MEDIA_BUFFERED_RESOURCE_LOADER_H_ |
| 6 #define WEBKIT_GLUE_MEDIA_BUFFERED_RESOURCE_LOADER_H_ | 6 #define WEBKIT_GLUE_MEDIA_BUFFERED_RESOURCE_LOADER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 virtual void didReceiveResponse( | 128 virtual void didReceiveResponse( |
| 129 WebKit::WebURLLoader* loader, | 129 WebKit::WebURLLoader* loader, |
| 130 const WebKit::WebURLResponse& response); | 130 const WebKit::WebURLResponse& response); |
| 131 virtual void didDownloadData( | 131 virtual void didDownloadData( |
| 132 WebKit::WebURLLoader* loader, | 132 WebKit::WebURLLoader* loader, |
| 133 int data_length); | 133 int data_length); |
| 134 virtual void didReceiveData( | 134 virtual void didReceiveData( |
| 135 WebKit::WebURLLoader* loader, | 135 WebKit::WebURLLoader* loader, |
| 136 const char* data, | 136 const char* data, |
| 137 int data_length, | 137 int data_length, |
| 138 int length_received); | 138 int raw_data_length); |
| 139 virtual void didReceiveCachedMetadata( | 139 virtual void didReceiveCachedMetadata( |
| 140 WebKit::WebURLLoader* loader, | 140 WebKit::WebURLLoader* loader, |
| 141 const char* data, int dataLength); | 141 const char* data, int dataLength); |
| 142 virtual void didFinishLoading( | 142 virtual void didFinishLoading( |
| 143 WebKit::WebURLLoader* loader, | 143 WebKit::WebURLLoader* loader, |
| 144 double finishTime); | 144 double finishTime); |
| 145 virtual void didFail( | 145 virtual void didFail( |
| 146 WebKit::WebURLLoader* loader, | 146 WebKit::WebURLLoader* loader, |
| 147 const WebKit::WebURLError&); | 147 const WebKit::WebURLError&); |
| 148 | 148 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 | 257 |
| 258 // Used to ensure mocks for unittests are used instead of reset in Start(). | 258 // Used to ensure mocks for unittests are used instead of reset in Start(). |
| 259 bool keep_test_loader_; | 259 bool keep_test_loader_; |
| 260 | 260 |
| 261 DISALLOW_COPY_AND_ASSIGN(BufferedResourceLoader); | 261 DISALLOW_COPY_AND_ASSIGN(BufferedResourceLoader); |
| 262 }; | 262 }; |
| 263 | 263 |
| 264 } // namespace webkit_glue | 264 } // namespace webkit_glue |
| 265 | 265 |
| 266 #endif // WEBKIT_GLUE_MEDIA_BUFFERED_RESOURCE_LOADER_H_ | 266 #endif // WEBKIT_GLUE_MEDIA_BUFFERED_RESOURCE_LOADER_H_ |
| OLD | NEW |