diff options
author | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-04 04:14:04 +0000 |
---|---|---|
committer | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-04 04:14:04 +0000 |
commit | d5233ef41f16c99bb80f74c23d9c8f3425945222 (patch) | |
tree | 7b5f4609a8ab000ea1012319a03be6b57f7a278d /webkit/fileapi/file_system_operation_context.h | |
parent | 034714b8c7421fa955acc4ac03b281e935bbae1b (diff) | |
download | chromium_src-d5233ef41f16c99bb80f74c23d9c8f3425945222.zip chromium_src-d5233ef41f16c99bb80f74c23d9c8f3425945222.tar.gz chromium_src-d5233ef41f16c99bb80f74c23d9c8f3425945222.tar.bz2 |
Introduce FileSystemFileUtil and -Proxy to decorate base::file_util in webkit/fileapi.
BUG=74841
TEST=none
Review URL: http://codereview.chromium.org/6604020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76875 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/fileapi/file_system_operation_context.h')
-rw-r--r-- | webkit/fileapi/file_system_operation_context.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/webkit/fileapi/file_system_operation_context.h b/webkit/fileapi/file_system_operation_context.h new file mode 100644 index 0000000..68f5e47 --- /dev/null +++ b/webkit/fileapi/file_system_operation_context.h @@ -0,0 +1,30 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_CONTEXT_H_ +#define WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_CONTEXT_H_ + +#include "webkit/fileapi/file_system_file_util.h" + +namespace fileapi { + +class FileSystemOperationContext { + public: + FileSystemOperationContext(FileSystemFileUtil* file_system_file_util) + : file_system_file_util_(file_system_file_util) { + } + + FileSystemFileUtil* file_system_file_util() const { + return file_system_file_util_; + } + + private: + // This file_system_file_util_ is not "owned" by FileSystemOperationContext. + // It is supposed to be a pointer to a singleton. + FileSystemFileUtil* file_system_file_util_; +}; + +} // namespace fileapi + +#endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_CONTEXT_H_ |