OLD | NEW |
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 "webkit/glue/webkitplatformsupport_impl.h" | 5 #include "webkit/glue/webkitplatformsupport_impl.h" |
6 | 6 |
7 #include <math.h> | 7 #include <math.h> |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
822 } | 822 } |
823 | 823 |
824 WebKit::WebThread* WebKitPlatformSupportImpl::currentThread() { | 824 WebKit::WebThread* WebKitPlatformSupportImpl::currentThread() { |
825 WebThreadImplForMessageLoop* thread = | 825 WebThreadImplForMessageLoop* thread = |
826 static_cast<WebThreadImplForMessageLoop*>(current_thread_slot_.Get()); | 826 static_cast<WebThreadImplForMessageLoop*>(current_thread_slot_.Get()); |
827 if (thread) | 827 if (thread) |
828 return (thread); | 828 return (thread); |
829 | 829 |
830 scoped_refptr<base::MessageLoopProxy> message_loop = | 830 scoped_refptr<base::MessageLoopProxy> message_loop = |
831 base::MessageLoopProxy::current(); | 831 base::MessageLoopProxy::current(); |
832 if (!message_loop) | 832 if (!message_loop.get()) |
833 return NULL; | 833 return NULL; |
834 | 834 |
835 thread = new WebThreadImplForMessageLoop(message_loop); | 835 thread = new WebThreadImplForMessageLoop(message_loop.get()); |
836 current_thread_slot_.Set(thread); | 836 current_thread_slot_.Set(thread); |
837 return thread; | 837 return thread; |
838 } | 838 } |
839 | 839 |
840 base::PlatformFile WebKitPlatformSupportImpl::databaseOpenFile( | 840 base::PlatformFile WebKitPlatformSupportImpl::databaseOpenFile( |
841 const WebKit::WebString& vfs_file_name, int desired_flags) { | 841 const WebKit::WebString& vfs_file_name, int desired_flags) { |
842 return base::kInvalidPlatformFileValue; | 842 return base::kInvalidPlatformFileValue; |
843 } | 843 } |
844 | 844 |
845 int WebKitPlatformSupportImpl::databaseDeleteFile( | 845 int WebKitPlatformSupportImpl::databaseDeleteFile( |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1000 } | 1000 } |
1001 | 1001 |
1002 #if defined(OS_ANDROID) | 1002 #if defined(OS_ANDROID) |
1003 webkit_media::WebAudioMediaCodecRunner | 1003 webkit_media::WebAudioMediaCodecRunner |
1004 WebKitPlatformSupportImpl::GetWebAudioMediaCodecRunner() { | 1004 WebKitPlatformSupportImpl::GetWebAudioMediaCodecRunner() { |
1005 return base::Bind(&NullRunWebAudioMediaCodec); | 1005 return base::Bind(&NullRunWebAudioMediaCodec); |
1006 } | 1006 } |
1007 #endif | 1007 #endif |
1008 | 1008 |
1009 } // namespace webkit_glue | 1009 } // namespace webkit_glue |
OLD | NEW |