| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "base/message_loop.h" | 5 #include "base/message_loop.h" |
| 6 #include "base/process_util.h" | 6 #include "base/process_util.h" |
| 7 #include "media/base/filter_host.h" | 7 #include "media/base/filter_host.h" |
| 8 #include "net/base/load_flags.h" | 8 #include "net/base/load_flags.h" |
| 9 #include "net/base/data_url.h" | 9 #include "net/base/data_url.h" |
| 10 #include "net/http/http_response_headers.h" | 10 #include "net/http/http_response_headers.h" |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 113 |
| 114 bool SimpleDataSource::GetSize(int64* size_out) { | 114 bool SimpleDataSource::GetSize(int64* size_out) { |
| 115 *size_out = size_; | 115 *size_out = size_; |
| 116 return true; | 116 return true; |
| 117 } | 117 } |
| 118 | 118 |
| 119 bool SimpleDataSource::IsStreaming() { | 119 bool SimpleDataSource::IsStreaming() { |
| 120 return false; | 120 return false; |
| 121 } | 121 } |
| 122 | 122 |
| 123 void SimpleDataSource::OnDownloadProgress(uint64 position, uint64 size) {} | |
| 124 | |
| 125 void SimpleDataSource::OnUploadProgress(uint64 position, uint64 size) {} | |
| 126 | |
| 127 bool SimpleDataSource::OnReceivedRedirect( | 123 bool SimpleDataSource::OnReceivedRedirect( |
| 128 const GURL& new_url, | 124 const GURL& new_url, |
| 129 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info, | 125 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info, |
| 130 bool* has_new_first_party_for_cookies, | 126 bool* has_new_first_party_for_cookies, |
| 131 GURL* new_first_party_for_cookies) { | 127 GURL* new_first_party_for_cookies) { |
| 132 SetURL(new_url); | 128 SetURL(new_url); |
| 133 // TODO(wtc): should we return a new first party for cookies URL? | 129 // TODO(wtc): should we return a new first party for cookies URL? |
| 134 *has_new_first_party_for_cookies = false; | 130 *has_new_first_party_for_cookies = false; |
| 135 return true; | 131 return true; |
| 136 } | 132 } |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 // If scheme is file or data, say we are loaded. | 223 // If scheme is file or data, say we are loaded. |
| 228 host()->SetLoaded(url_.SchemeIsFile() || IsDataProtocol(url_)); | 224 host()->SetLoaded(url_.SchemeIsFile() || IsDataProtocol(url_)); |
| 229 } else { | 225 } else { |
| 230 host()->SetError(media::PIPELINE_ERROR_NETWORK); | 226 host()->SetError(media::PIPELINE_ERROR_NETWORK); |
| 231 } | 227 } |
| 232 initialize_callback_->Run(); | 228 initialize_callback_->Run(); |
| 233 initialize_callback_.reset(); | 229 initialize_callback_.reset(); |
| 234 } | 230 } |
| 235 | 231 |
| 236 } // namespace webkit_glue | 232 } // namespace webkit_glue |
| OLD | NEW |