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

Unified Diff: chrome/renderer/media/data_source_impl.cc

Issue 42635: Lots of files touched for a very simple change. Everywhere we used a const M... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/media/data_source_impl.h ('k') | media/base/factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/media/data_source_impl.cc
===================================================================
--- chrome/renderer/media/data_source_impl.cc (revision 12568)
+++ chrome/renderer/media/data_source_impl.cc (working copy)
@@ -215,10 +215,10 @@
"GET",
GURL(uri),
GURL(uri),
- GURL(), // TODO(hclam): provide referer here.
- "null", // TODO(abarth): provide frame_origin
- "null", // TODO(abarth): provide main_frame_origin
- std::string(), // Provide no header.
+ GURL(), // TODO(hclam): provide referer here.
+ "null", // TODO(abarth): provide frame_origin
+ "null", // TODO(abarth): provide main_frame_origin
+ std::string(), // Provide no header.
// Prefer to load from cache, also enable downloading the file, the
// resource will be saved to a single response data file if it's possible.
net::LOAD_PREFERRING_CACHE | net::LOAD_ENABLE_DOWNLOAD_FILE,
@@ -244,9 +244,9 @@
AutoLock auto_lock(lock_);
downloaded_bytes_ = position;
if (!total_bytes_known_) {
- if (size == kuint64max)
+ if (size == kuint64max) {
total_bytes_ = position;
- else {
+ } else {
total_bytes_ = size;
total_bytes_known_ = true;
}
@@ -308,6 +308,6 @@
return uri_;
}
-const media::MediaFormat* DataSourceImpl::GetMediaFormat() {
- return &media_format_;
+const media::MediaFormat& DataSourceImpl::media_format() {
+ return media_format_;
}
« no previous file with comments | « chrome/renderer/media/data_source_impl.h ('k') | media/base/factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698