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

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

Issue 16155009: Update webkit/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
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 "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
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
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
OLDNEW
« no previous file with comments | « webkit/glue/resource_request_body_unittest.cc ('k') | webkit/glue/websocketstreamhandle_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698