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

Side by Side Diff: webkit/glue/webkitplatformsupport_impl.cc

Issue 8570010: Moving media-related files from webkit/glue/ to webkit/media/. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: minor fixes Created 9 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
« no previous file with comments | « webkit/glue/webkit_glue.gypi ('k') | webkit/glue/webmediaplayer_delegate.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "webkit/glue/webkitplatformsupport_impl.h" 5 #include "webkit/glue/webkitplatformsupport_impl.h"
6 6
7 #if defined(OS_LINUX) 7 #if defined(OS_LINUX)
8 #include <malloc.h> 8 #include <malloc.h>
9 #endif 9 #endif
10 10
(...skipping 19 matching lines...) Expand all
30 #include "grit/webkit_resources.h" 30 #include "grit/webkit_resources.h"
31 #include "grit/webkit_strings.h" 31 #include "grit/webkit_strings.h"
32 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCookie.h" 32 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCookie.h"
33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebData.h" 33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebData.h"
34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h" 34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h"
35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginListBuilder. h" 35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginListBuilder. h"
36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" 36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h"
37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" 37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h"
38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebVector.h" 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebVector.h"
39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h"
40 #include "webkit/glue/media/audio_decoder.h"
41 #include "webkit/plugins/npapi/plugin_instance.h"
42 #include "webkit/plugins/webplugininfo.h"
43 #include "webkit/glue/webkit_glue.h" 40 #include "webkit/glue/webkit_glue.h"
44 #include "webkit/glue/websocketstreamhandle_impl.h" 41 #include "webkit/glue/websocketstreamhandle_impl.h"
45 #include "webkit/glue/webthread_impl.h" 42 #include "webkit/glue/webthread_impl.h"
46 #include "webkit/glue/weburlloader_impl.h" 43 #include "webkit/glue/weburlloader_impl.h"
44 #include "webkit/media/audio_decoder.h"
45 #include "webkit/plugins/npapi/plugin_instance.h"
46 #include "webkit/plugins/webplugininfo.h"
47 47
48 #if defined(OS_LINUX) 48 #if defined(OS_LINUX)
49 #include "v8/include/v8.h" 49 #include "v8/include/v8.h"
50 #endif 50 #endif
51 51
52 using WebKit::WebAudioBus; 52 using WebKit::WebAudioBus;
53 using WebKit::WebCookie; 53 using WebKit::WebCookie;
54 using WebKit::WebData; 54 using WebKit::WebData;
55 using WebKit::WebLocalizedString; 55 using WebKit::WebLocalizedString;
56 using WebKit::WebPluginListBuilder; 56 using WebKit::WebPluginListBuilder;
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 } 443 }
444 } 444 }
445 445
446 NOTREACHED() << "Unknown image resource " << name; 446 NOTREACHED() << "Unknown image resource " << name;
447 return WebData(); 447 return WebData();
448 } 448 }
449 449
450 bool WebKitPlatformSupportImpl::loadAudioResource( 450 bool WebKitPlatformSupportImpl::loadAudioResource(
451 WebKit::WebAudioBus* destination_bus, const char* audio_file_data, 451 WebKit::WebAudioBus* destination_bus, const char* audio_file_data,
452 size_t data_size, double sample_rate) { 452 size_t data_size, double sample_rate) {
453 return DecodeAudioFileData(destination_bus, 453 return webkit_media::DecodeAudioFileData(destination_bus,
454 audio_file_data, 454 audio_file_data,
455 data_size, 455 data_size,
456 sample_rate); 456 sample_rate);
457 } 457 }
458 458
459 WebString WebKitPlatformSupportImpl::queryLocalizedString( 459 WebString WebKitPlatformSupportImpl::queryLocalizedString(
460 WebLocalizedString::Name name) { 460 WebLocalizedString::Name name) {
461 int message_id = ToMessageID(name); 461 int message_id = ToMessageID(name);
462 if (message_id < 0) 462 if (message_id < 0)
463 return WebString(); 463 return WebString();
464 return GetLocalizedString(message_id); 464 return GetLocalizedString(message_id);
465 } 465 }
466 466
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 } 679 }
680 680
681 // static 681 // static
682 void WebKitPlatformSupportImpl::DestroyCurrentThread(void* thread) { 682 void WebKitPlatformSupportImpl::DestroyCurrentThread(void* thread) {
683 WebThreadImplForMessageLoop* impl = 683 WebThreadImplForMessageLoop* impl =
684 static_cast<WebThreadImplForMessageLoop*>(thread); 684 static_cast<WebThreadImplForMessageLoop*>(thread);
685 delete impl; 685 delete impl;
686 } 686 }
687 687
688 } // namespace webkit_glue 688 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/glue/webkit_glue.gypi ('k') | webkit/glue/webmediaplayer_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698