| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/webkitclient_impl.h" | 5 #include "webkit/glue/webkitclient_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 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 } | 475 } |
| 476 | 476 |
| 477 void WebKitClientImpl::stopSharedTimer() { | 477 void WebKitClientImpl::stopSharedTimer() { |
| 478 shared_timer_.Stop(); | 478 shared_timer_.Stop(); |
| 479 } | 479 } |
| 480 | 480 |
| 481 void WebKitClientImpl::callOnMainThread(void (*func)(void*), void* context) { | 481 void WebKitClientImpl::callOnMainThread(void (*func)(void*), void* context) { |
| 482 main_loop_->PostTask(FROM_HERE, NewRunnableFunction(func, context)); | 482 main_loop_->PostTask(FROM_HERE, NewRunnableFunction(func, context)); |
| 483 } | 483 } |
| 484 | 484 |
| 485 void WebKitClientImpl::notifyJSOutOfMemory() { |
| 486 webkit_glue::NotifyJSOutOfMemory(); |
| 487 } |
| 488 |
| 485 base::PlatformFile WebKitClientImpl::databaseOpenFile( | 489 base::PlatformFile WebKitClientImpl::databaseOpenFile( |
| 486 const WebKit::WebString& vfs_file_name, int desired_flags) { | 490 const WebKit::WebString& vfs_file_name, int desired_flags) { |
| 487 return base::kInvalidPlatformFileValue; | 491 return base::kInvalidPlatformFileValue; |
| 488 } | 492 } |
| 489 | 493 |
| 490 int WebKitClientImpl::databaseDeleteFile( | 494 int WebKitClientImpl::databaseDeleteFile( |
| 491 const WebKit::WebString& vfs_file_name, bool sync_dir) { | 495 const WebKit::WebString& vfs_file_name, bool sync_dir) { |
| 492 return -1; | 496 return -1; |
| 493 } | 497 } |
| 494 | 498 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 581 ++shared_timer_suspended_; | 585 ++shared_timer_suspended_; |
| 582 } | 586 } |
| 583 | 587 |
| 584 void WebKitClientImpl::ResumeSharedTimer() { | 588 void WebKitClientImpl::ResumeSharedTimer() { |
| 585 // The shared timer may have fired or been adjusted while we were suspended. | 589 // The shared timer may have fired or been adjusted while we were suspended. |
| 586 if (--shared_timer_suspended_ == 0 && !shared_timer_.IsRunning()) | 590 if (--shared_timer_suspended_ == 0 && !shared_timer_.IsRunning()) |
| 587 setSharedTimerFireTime(shared_timer_fire_time_); | 591 setSharedTimerFireTime(shared_timer_fire_time_); |
| 588 } | 592 } |
| 589 | 593 |
| 590 } // namespace webkit_glue | 594 } // namespace webkit_glue |
| OLD | NEW |