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

Side by Side Diff: webkit/fileapi/file_system_test_helper.h

Issue 7054012: Notify read access to the QuotaManager in FileSystemOperation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 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
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 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_TEST_HELPER_H_ 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_TEST_HELPER_H_
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_TEST_HELPER_H_ 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_TEST_HELPER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/file_path.h" 11 #include "base/file_path.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "googleurl/src/gurl.h" 14 #include "googleurl/src/gurl.h"
15 #include "webkit/fileapi/file_system_types.h" 15 #include "webkit/fileapi/file_system_types.h"
16 #include "webkit/fileapi/file_system_util.h"
17 #include "webkit/quota/quota_types.h"
16 18
17 namespace quota { 19 namespace quota {
18 class QuotaManagerProxy; 20 class QuotaManagerProxy;
19 } 21 }
20 22
21 class FilePath; 23 class FilePath;
22 24
23 namespace fileapi { 25 namespace fileapi {
24 26
25 class FileSystemCallbackDispatcher; 27 class FileSystemCallbackDispatcher;
(...skipping 28 matching lines...) Expand all
54 FileSystemOperation* NewOperation( 56 FileSystemOperation* NewOperation(
55 FileSystemCallbackDispatcher* callback_dispatcher); 57 FileSystemCallbackDispatcher* callback_dispatcher);
56 FileSystemOperationContext* NewOperationContext(); 58 FileSystemOperationContext* NewOperationContext();
57 59
58 FileSystemContext* file_system_context() const { 60 FileSystemContext* file_system_context() const {
59 return file_system_context_.get(); 61 return file_system_context_.get();
60 } 62 }
61 63
62 const GURL& origin() const { return origin_; } 64 const GURL& origin() const { return origin_; }
63 FileSystemType type() const { return type_; } 65 FileSystemType type() const { return type_; }
66 quota::StorageType storage_type() const {
67 return FileSystemTypeToQuotaStorageType(type_);
68 }
64 FileSystemFileUtil* file_util() { return file_util_; } 69 FileSystemFileUtil* file_util() { return file_util_; }
65 70
66 private: 71 private:
67 void InitializeOperationContext(FileSystemOperationContext* context); 72 void InitializeOperationContext(FileSystemOperationContext* context);
68 73
69 scoped_refptr<FileSystemContext> file_system_context_; 74 scoped_refptr<FileSystemContext> file_system_context_;
70 const GURL origin_; 75 const GURL origin_;
71 const FileSystemType type_; 76 const FileSystemType type_;
72 FileSystemFileUtil* file_util_; 77 FileSystemFileUtil* file_util_;
73 }; 78 };
74 79
75 } // namespace fileapi 80 } // namespace fileapi
76 81
77 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_TEST_HELPER_H_ 82 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_TEST_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698