| 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 #include "webkit/glue/media/buffered_resource_loader.h" | 5 #include "webkit/glue/media/buffered_resource_loader.h" |
| 6 | 6 |
| 7 #include "base/format_macros.h" | 7 #include "base/format_macros.h" |
| 8 #include "base/stringprintf.h" |
| 8 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 9 #include "net/base/net_errors.h" | 10 #include "net/base/net_errors.h" |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" |
| 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKitClient.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKitClient.h" |
| 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" |
| 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLError.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLError.h" |
| 14 #include "webkit/glue/multipart_response_delegate.h" | 15 #include "webkit/glue/multipart_response_delegate.h" |
| 15 #include "webkit/glue/webkit_glue.h" | 16 #include "webkit/glue/webkit_glue.h" |
| 16 | 17 |
| 17 using WebKit::WebFrame; | 18 using WebKit::WebFrame; |
| (...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 644 void BufferedResourceLoader::NotifyNetworkEvent() { | 645 void BufferedResourceLoader::NotifyNetworkEvent() { |
| 645 if (event_callback_.get()) | 646 if (event_callback_.get()) |
| 646 event_callback_->Run(); | 647 event_callback_->Run(); |
| 647 } | 648 } |
| 648 | 649 |
| 649 bool BufferedResourceLoader::IsRangeRequest() const { | 650 bool BufferedResourceLoader::IsRangeRequest() const { |
| 650 return first_byte_position_ != kPositionNotSpecified; | 651 return first_byte_position_ != kPositionNotSpecified; |
| 651 } | 652 } |
| 652 | 653 |
| 653 } // namespace webkit_glue | 654 } // namespace webkit_glue |
| OLD | NEW |