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

Side by Side Diff: webkit/fileapi/file_system_context.cc

Issue 6604020: Introduce FileSystemFileUtil and -Proxy to decorate base::file_util in webkit/fileapi. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 9 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) 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/fileapi/file_system_context.h" 5 #include "webkit/fileapi/file_system_context.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/message_loop_proxy.h" 8 #include "base/message_loop_proxy.h"
9 #include "webkit/fileapi/file_system_file_util.h"
ericu 2011/03/03 01:05:11 Are these needed?
Dai Mikurube (google.com) 2011/03/03 20:24:52 Not required. Removed.
10 #include "webkit/fileapi/file_system_file_util_proxy.h"
9 #include "webkit/fileapi/file_system_path_manager.h" 11 #include "webkit/fileapi/file_system_path_manager.h"
10 #include "webkit/fileapi/file_system_quota_manager.h" 12 #include "webkit/fileapi/file_system_quota_manager.h"
11 #include "webkit/fileapi/file_system_usage_tracker.h" 13 #include "webkit/fileapi/file_system_usage_tracker.h"
12 14
13 namespace fileapi { 15 namespace fileapi {
14 16
15 FileSystemContext::FileSystemContext( 17 FileSystemContext::FileSystemContext(
16 scoped_refptr<base::MessageLoopProxy> file_message_loop, 18 scoped_refptr<base::MessageLoopProxy> file_message_loop,
17 scoped_refptr<base::MessageLoopProxy> io_message_loop, 19 scoped_refptr<base::MessageLoopProxy> io_message_loop,
18 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy, 20 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy,
(...skipping 29 matching lines...) Expand all
48 50
49 void FileSystemContext::DeleteOnCorrectThread() const { 51 void FileSystemContext::DeleteOnCorrectThread() const {
50 if (!io_message_loop_->BelongsToCurrentThread()) { 52 if (!io_message_loop_->BelongsToCurrentThread()) {
51 io_message_loop_->DeleteSoon(FROM_HERE, this); 53 io_message_loop_->DeleteSoon(FROM_HERE, this);
52 return; 54 return;
53 } 55 }
54 delete this; 56 delete this;
55 } 57 }
56 58
57 } // namespace fileapi 59 } // namespace fileapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698