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

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

Issue 385024: Propagate the "first party for cookies" from WebKit through the resource... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Upload before checkin Created 11 years, 1 month 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 bool SimpleDataSource::IsStreaming() { 115 bool SimpleDataSource::IsStreaming() {
116 return false; 116 return false;
117 } 117 }
118 118
119 void SimpleDataSource::OnDownloadProgress(uint64 position, uint64 size) {} 119 void SimpleDataSource::OnDownloadProgress(uint64 position, uint64 size) {}
120 120
121 void SimpleDataSource::OnUploadProgress(uint64 position, uint64 size) {} 121 void SimpleDataSource::OnUploadProgress(uint64 position, uint64 size) {}
122 122
123 bool SimpleDataSource::OnReceivedRedirect( 123 bool SimpleDataSource::OnReceivedRedirect(
124 const GURL& new_url, 124 const GURL& new_url,
125 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info) { 125 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info,
126 GURL* new_first_party_for_cookies) {
126 SetURL(new_url); 127 SetURL(new_url);
128 *new_first_party_for_cookies = GURL();
127 return true; 129 return true;
128 } 130 }
129 131
130 void SimpleDataSource::OnReceivedResponse( 132 void SimpleDataSource::OnReceivedResponse(
131 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info, 133 const webkit_glue::ResourceLoaderBridge::ResponseInfo& info,
132 bool content_filtered) { 134 bool content_filtered) {
133 size_ = info.content_length; 135 size_ = info.content_length;
134 } 136 }
135 137
136 void SimpleDataSource::OnReceivedData(const char* data, int len) { 138 void SimpleDataSource::OnReceivedData(const char* data, int len) {
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 // If scheme is file or data, say we are loaded. 221 // If scheme is file or data, say we are loaded.
220 host()->SetLoaded(url_.SchemeIsFile() || IsDataProtocol(url_)); 222 host()->SetLoaded(url_.SchemeIsFile() || IsDataProtocol(url_));
221 } else { 223 } else {
222 host()->SetError(media::PIPELINE_ERROR_NETWORK); 224 host()->SetError(media::PIPELINE_ERROR_NETWORK);
223 } 225 }
224 initialize_callback_->Run(); 226 initialize_callback_->Run();
225 initialize_callback_.reset(); 227 initialize_callback_.reset();
226 } 228 }
227 229
228 } // namespace webkit_glue 230 } // namespace webkit_glue
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698