Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(491)

Side by Side Diff: webkit/glue/media/simple_data_source.cc

Issue 3053009: Pepper stream-to-file plumbing.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/glue/media/simple_data_source.h ('k') | webkit/glue/plugins/pepper_file_ref.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « webkit/glue/media/simple_data_source.h ('k') | webkit/glue/plugins/pepper_file_ref.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698