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

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

Issue 4054003: FileSystem code cleanup 2nd cut - introduce SandboxedFileSystemOperation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 10 years, 1 month 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "webkit/fileapi/sandboxed_file_system_context.h"
6
7 #include "base/file_path.h"
8 #include "base/message_loop_proxy.h"
9 #include "webkit/fileapi/file_system_path_manager.h"
10 #include "webkit/fileapi/file_system_quota_manager.h"
11
12 namespace fileapi {
13
14 SandboxedFileSystemContext::SandboxedFileSystemContext(
15 scoped_refptr<base::MessageLoopProxy> file_message_loop,
16 const FilePath& profile_path,
17 bool is_incognito,
18 bool allow_file_access,
19 bool unlimited_quota)
20 : path_manager_(new FileSystemPathManager(
21 file_message_loop, profile_path, is_incognito, allow_file_access)),
22 quota_manager_(new FileSystemQuotaManager(allow_file_access,
23 unlimited_quota)) {
24 }
25
26 SandboxedFileSystemContext::~SandboxedFileSystemContext() {
27 }
28
29 void SandboxedFileSystemContext::Shutdown() {
30 path_manager_.reset();
31 quota_manager_.reset();
32 }
33
34 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/fileapi/sandboxed_file_system_context.h ('k') | webkit/fileapi/sandboxed_file_system_operation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698