OLD | NEW |
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 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
588 | 588 |
589 long long WebKitPlatformSupportImpl::databaseGetSpaceAvailableForOrigin( | 589 long long WebKitPlatformSupportImpl::databaseGetSpaceAvailableForOrigin( |
590 const WebKit::WebString& origin_identifier) { | 590 const WebKit::WebString& origin_identifier) { |
591 return 0; | 591 return 0; |
592 } | 592 } |
593 | 593 |
594 WebKit::WebString WebKitPlatformSupportImpl::signedPublicKeyAndChallengeString( | 594 WebKit::WebString WebKitPlatformSupportImpl::signedPublicKeyAndChallengeString( |
595 unsigned key_size_index, | 595 unsigned key_size_index, |
596 const WebKit::WebString& challenge, | 596 const WebKit::WebString& challenge, |
597 const WebKit::WebURL& url) { | 597 const WebKit::WebURL& url) { |
598 NOTREACHED(); | 598 return WebKit::WebString(""); |
599 return WebKit::WebString(); | |
600 } | 599 } |
601 | 600 |
602 #if defined(OS_LINUX) | 601 #if defined(OS_LINUX) |
603 static size_t memoryUsageMBLinux() { | 602 static size_t memoryUsageMBLinux() { |
604 struct mallinfo minfo = mallinfo(); | 603 struct mallinfo minfo = mallinfo(); |
605 uint64_t mem_usage = | 604 uint64_t mem_usage = |
606 #if defined(USE_TCMALLOC) | 605 #if defined(USE_TCMALLOC) |
607 minfo.uordblks | 606 minfo.uordblks |
608 #else | 607 #else |
609 (minfo.hblkhd + minfo.arena) | 608 (minfo.hblkhd + minfo.arena) |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
679 } | 678 } |
680 | 679 |
681 // static | 680 // static |
682 void WebKitPlatformSupportImpl::DestroyCurrentThread(void* thread) { | 681 void WebKitPlatformSupportImpl::DestroyCurrentThread(void* thread) { |
683 WebThreadImplForMessageLoop* impl = | 682 WebThreadImplForMessageLoop* impl = |
684 static_cast<WebThreadImplForMessageLoop*>(thread); | 683 static_cast<WebThreadImplForMessageLoop*>(thread); |
685 delete impl; | 684 delete impl; |
686 } | 685 } |
687 | 686 |
688 } // namespace webkit_glue | 687 } // namespace webkit_glue |
OLD | NEW |