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

Side by Side Diff: content/renderer/media/webmediaplayer_impl.cc

Issue 104043010: Cleanup: Move kFileSystemScheme constant into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/renderer/media/webmediaplayer_impl.h" 5 #include "content/renderer/media/webmediaplayer_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 if (url.SchemeIs("ftp")) return kFtpURLScheme; 244 if (url.SchemeIs("ftp")) return kFtpURLScheme;
245 if (url.SchemeIs("chrome-extension")) return kChromeExtensionURLScheme; 245 if (url.SchemeIs("chrome-extension")) return kChromeExtensionURLScheme;
246 if (url.SchemeIs("javascript")) return kJavascriptURLScheme; 246 if (url.SchemeIs("javascript")) return kJavascriptURLScheme;
247 if (url.SchemeIs("file")) return kFileURLScheme; 247 if (url.SchemeIs("file")) return kFileURLScheme;
248 if (url.SchemeIs("blob")) return kBlobURLScheme; 248 if (url.SchemeIs("blob")) return kBlobURLScheme;
249 if (url.SchemeIs("data")) return kDataURLScheme; 249 if (url.SchemeIs("data")) return kDataURLScheme;
250 if (url.SchemeIs("filesystem")) return kFileSystemScheme; 250 if (url.SchemeIs("filesystem")) return kFileSystemScheme;
251 return kUnknownURLScheme; 251 return kUnknownURLScheme;
252 } 252 }
253 253
254 } // anonymous namespace 254 } // namespace
255 255
256 void WebMediaPlayerImpl::load(LoadType load_type, const blink::WebURL& url, 256 void WebMediaPlayerImpl::load(LoadType load_type, const blink::WebURL& url,
257 CORSMode cors_mode) { 257 CORSMode cors_mode) {
258 if (!defer_load_cb_.is_null()) { 258 if (!defer_load_cb_.is_null()) {
259 defer_load_cb_.Run(base::Bind( 259 defer_load_cb_.Run(base::Bind(
260 &WebMediaPlayerImpl::DoLoad, AsWeakPtr(), load_type, url, cors_mode)); 260 &WebMediaPlayerImpl::DoLoad, AsWeakPtr(), load_type, url, cors_mode));
261 return; 261 return;
262 } 262 }
263 DoLoad(load_type, url, cors_mode); 263 DoLoad(load_type, url, cors_mode);
264 } 264 }
(...skipping 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after
1302 // The |current_frame_| wasn't painted, it is being replaced, and we haven't 1302 // The |current_frame_| wasn't painted, it is being replaced, and we haven't
1303 // even gotten the chance to request a repaint for it yet. Mark it as dropped. 1303 // even gotten the chance to request a repaint for it yet. Mark it as dropped.
1304 TRACE_EVENT0("media", "WebMediaPlayerImpl:frameDropped"); 1304 TRACE_EVENT0("media", "WebMediaPlayerImpl:frameDropped");
1305 DVLOG(1) << "Frame dropped before being painted: " 1305 DVLOG(1) << "Frame dropped before being painted: "
1306 << current_frame_->GetTimestamp().InSecondsF(); 1306 << current_frame_->GetTimestamp().InSecondsF();
1307 if (frames_dropped_before_paint_ < kuint32max) 1307 if (frames_dropped_before_paint_ < kuint32max)
1308 frames_dropped_before_paint_++; 1308 frames_dropped_before_paint_++;
1309 } 1309 }
1310 1310
1311 } // namespace content 1311 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/url_constants.cc ('k') | content/shell/browser/shell_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698