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

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

Issue 6864040: Fixed file/directory url resolution for external mount point provider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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_CONTEXT_H_ 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_ 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "webkit/quota/special_storage_policy.h" 10 #include "webkit/quota/special_storage_policy.h"
(...skipping 19 matching lines...) Expand all
30 : public base::RefCountedThreadSafe<FileSystemContext, 30 : public base::RefCountedThreadSafe<FileSystemContext,
31 DefaultContextDeleter> { 31 DefaultContextDeleter> {
32 public: 32 public:
33 FileSystemContext( 33 FileSystemContext(
34 scoped_refptr<base::MessageLoopProxy> file_message_loop, 34 scoped_refptr<base::MessageLoopProxy> file_message_loop,
35 scoped_refptr<base::MessageLoopProxy> io_message_loop, 35 scoped_refptr<base::MessageLoopProxy> io_message_loop,
36 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy, 36 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy,
37 const FilePath& profile_path, 37 const FilePath& profile_path,
38 bool is_incognito, 38 bool is_incognito,
39 bool allow_file_access_from_files, 39 bool allow_file_access_from_files,
40 bool unlimited_quota); 40 bool unlimited_quota,
41 FileSystemPathManager* path_manager);
41 ~FileSystemContext(); 42 ~FileSystemContext();
42 43
43 // This method can be called on any thread. 44 // This method can be called on any thread.
44 bool IsStorageUnlimited(const GURL& origin); 45 bool IsStorageUnlimited(const GURL& origin);
45 46
46 void DeleteDataForOriginOnFileThread(const GURL& origin_url); 47 void DeleteDataForOriginOnFileThread(const GURL& origin_url);
47 48
48 FileSystemPathManager* path_manager() { return path_manager_.get(); } 49 FileSystemPathManager* path_manager() { return path_manager_.get(); }
49 FileSystemUsageTracker* usage_tracker() { return usage_tracker_.get(); } 50 FileSystemUsageTracker* usage_tracker() { return usage_tracker_.get(); }
50 51
(...skipping 17 matching lines...) Expand all
68 69
69 struct DefaultContextDeleter { 70 struct DefaultContextDeleter {
70 static void Destruct(const FileSystemContext* context) { 71 static void Destruct(const FileSystemContext* context) {
71 context->DeleteOnCorrectThread(); 72 context->DeleteOnCorrectThread();
72 } 73 }
73 }; 74 };
74 75
75 } // namespace fileapi 76 } // namespace fileapi
76 77
77 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_ 78 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698