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

Side by Side Diff: webkit/browser/appcache/mock_appcache_service.cc

Issue 19633002: Use a direct include of the message_loop header in webkit/, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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) 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/browser/appcache/mock_appcache_service.h" 5 #include "webkit/browser/appcache/mock_appcache_service.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 9
10 namespace appcache { 10 namespace appcache {
11 11
12 static void DeferredCallCallback( 12 static void DeferredCallCallback(
13 const net::CompletionCallback& callback, int rv) { 13 const net::CompletionCallback& callback, int rv) {
14 callback.Run(rv); 14 callback.Run(rv);
15 } 15 }
16 16
17 void MockAppCacheService::DeleteAppCachesForOrigin( 17 void MockAppCacheService::DeleteAppCachesForOrigin(
18 const GURL& origin, const net::CompletionCallback& callback) { 18 const GURL& origin, const net::CompletionCallback& callback) {
19 ++delete_called_count_; 19 ++delete_called_count_;
20 base::MessageLoop::current()->PostTask( 20 base::MessageLoop::current()->PostTask(
21 FROM_HERE, 21 FROM_HERE,
22 base::Bind(&DeferredCallCallback, 22 base::Bind(&DeferredCallCallback,
23 callback, 23 callback,
24 mock_delete_appcaches_for_origin_result_)); 24 mock_delete_appcaches_for_origin_result_));
25 } 25 }
26 26
27 } // namespace appcache 27 } // namespace appcache
OLDNEW
« no previous file with comments | « webkit/browser/appcache/appcache_url_request_job.cc ('k') | webkit/browser/appcache/mock_appcache_storage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698