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

Side by Side Diff: content/worker/worker_webkitplatformsupport_impl.cc

Issue 10020053: Initial implementation of Encrypted Media Extensions in Chrome. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: removed key_systems namespace Created 8 years, 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/worker/worker_webkitplatformsupport_impl.h" 5 #include "content/worker/worker_webkitplatformsupport_impl.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "content/common/database_util.h" 9 #include "content/common/database_util.h"
10 #include "content/common/fileapi/webblobregistry_impl.h" 10 #include "content/common/fileapi/webblobregistry_impl.h"
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 } 235 }
236 236
237 WebMimeRegistry::SupportsType 237 WebMimeRegistry::SupportsType
238 WorkerWebKitPlatformSupportImpl::supportsMediaMIMEType( 238 WorkerWebKitPlatformSupportImpl::supportsMediaMIMEType(
239 const WebString&, const WebString&) { 239 const WebString&, const WebString&) {
240 NOTREACHED(); 240 NOTREACHED();
241 return WebMimeRegistry::IsSupported; 241 return WebMimeRegistry::IsSupported;
242 } 242 }
243 243
244 WebMimeRegistry::SupportsType 244 WebMimeRegistry::SupportsType
245 WorkerWebKitPlatformSupportImpl::supportsMediaMIMEType(
246 const WebString&, const WebString&, const WebString&) {
247 NOTREACHED();
248 return WebMimeRegistry::IsSupported;
249 }
250
251 WebMimeRegistry::SupportsType
245 WorkerWebKitPlatformSupportImpl::supportsNonImageMIMEType( 252 WorkerWebKitPlatformSupportImpl::supportsNonImageMIMEType(
246 const WebString&) { 253 const WebString&) {
247 NOTREACHED(); 254 NOTREACHED();
248 return WebMimeRegistry::IsSupported; 255 return WebMimeRegistry::IsSupported;
249 } 256 }
250 257
251 WebString WorkerWebKitPlatformSupportImpl::mimeTypeForExtension( 258 WebString WorkerWebKitPlatformSupportImpl::mimeTypeForExtension(
252 const WebString& file_extension) { 259 const WebString& file_extension) {
253 std::string mime_type; 260 std::string mime_type;
254 SendSyncMessageFromAnyThread(new MimeRegistryMsg_GetMimeTypeFromExtension( 261 SendSyncMessageFromAnyThread(new MimeRegistryMsg_GetMimeTypeFromExtension(
(...skipping 25 matching lines...) Expand all
280 new MimeRegistryMsg_GetPreferredExtensionForMimeType( 287 new MimeRegistryMsg_GetPreferredExtensionForMimeType(
281 UTF16ToASCII(mime_type), &file_extension)); 288 UTF16ToASCII(mime_type), &file_extension));
282 return webkit_glue::FilePathStringToWebString(file_extension); 289 return webkit_glue::FilePathStringToWebString(file_extension);
283 } 290 }
284 291
285 WebBlobRegistry* WorkerWebKitPlatformSupportImpl::blobRegistry() { 292 WebBlobRegistry* WorkerWebKitPlatformSupportImpl::blobRegistry() {
286 if (!blob_registry_.get()) 293 if (!blob_registry_.get())
287 blob_registry_.reset(new WebBlobRegistryImpl(WorkerThread::current())); 294 blob_registry_.reset(new WebBlobRegistryImpl(WorkerThread::current()));
288 return blob_registry_.get(); 295 return blob_registry_.get();
289 } 296 }
OLDNEW
« no previous file with comments | « content/worker/worker_webkitplatformsupport_impl.h ('k') | webkit/glue/simple_webmimeregistry_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698