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

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

Issue 1794005: Add a context parameter to callOnMainThread. The old form is going to be... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 7 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
« no previous file with comments | « webkit/glue/webkitclient_impl.h ('k') | no next file » | 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) 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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 } 329 }
330 330
331 void WebKitClientImpl::stopSharedTimer() { 331 void WebKitClientImpl::stopSharedTimer() {
332 shared_timer_.Stop(); 332 shared_timer_.Stop();
333 } 333 }
334 334
335 void WebKitClientImpl::callOnMainThread(void (*func)()) { 335 void WebKitClientImpl::callOnMainThread(void (*func)()) {
336 main_loop_->PostTask(FROM_HERE, NewRunnableFunction(func)); 336 main_loop_->PostTask(FROM_HERE, NewRunnableFunction(func));
337 } 337 }
338 338
339 void WebKitClientImpl::callOnMainThread(void (*func)(void*), void* context) {
340 main_loop_->PostTask(FROM_HERE, NewRunnableFunction(func, context));
341 }
342
339 base::PlatformFile WebKitClientImpl::databaseOpenFile( 343 base::PlatformFile WebKitClientImpl::databaseOpenFile(
340 const WebKit::WebString& vfs_file_name, int desired_flags, 344 const WebKit::WebString& vfs_file_name, int desired_flags,
341 base::PlatformFile* dir_handle) { 345 base::PlatformFile* dir_handle) {
342 if (dir_handle) 346 if (dir_handle)
343 *dir_handle = base::kInvalidPlatformFileValue; 347 *dir_handle = base::kInvalidPlatformFileValue;
344 return base::kInvalidPlatformFileValue; 348 return base::kInvalidPlatformFileValue;
345 } 349 }
346 350
347 int WebKitClientImpl::databaseDeleteFile( 351 int WebKitClientImpl::databaseDeleteFile(
348 const WebKit::WebString& vfs_file_name, bool sync_dir) { 352 const WebKit::WebString& vfs_file_name, bool sync_dir) {
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 ++shared_timer_suspended_; 497 ++shared_timer_suspended_;
494 } 498 }
495 499
496 void WebKitClientImpl::ResumeSharedTimer() { 500 void WebKitClientImpl::ResumeSharedTimer() {
497 // The shared timer may have fired or been adjusted while we were suspended. 501 // The shared timer may have fired or been adjusted while we were suspended.
498 if (--shared_timer_suspended_ == 0 && !shared_timer_.IsRunning()) 502 if (--shared_timer_suspended_ == 0 && !shared_timer_.IsRunning())
499 setSharedTimerFireTime(shared_timer_fire_time_); 503 setSharedTimerFireTime(shared_timer_fire_time_);
500 } 504 }
501 505
502 } // namespace webkit_glue 506 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/glue/webkitclient_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698