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

Side by Side Diff: chrome/browser/file_system/file_system_host_context.h

Issue 3814013: FBTF: Monster ctor patch after changing heuristics in clang plugin. (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: More add file fail Created 10 years, 2 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 #ifndef CHROME_BROWSER_FILE_SYSTEM_FILE_SYSTEM_HOST_CONTEXT_H_ 5 #ifndef CHROME_BROWSER_FILE_SYSTEM_FILE_SYSTEM_HOST_CONTEXT_H_
6 #define CHROME_BROWSER_FILE_SYSTEM_FILE_SYSTEM_HOST_CONTEXT_H_ 6 #define CHROME_BROWSER_FILE_SYSTEM_FILE_SYSTEM_HOST_CONTEXT_H_
7 7
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/ref_counted.h" 9 #include "base/ref_counted.h"
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
11 #include "chrome/browser/browser_thread.h" 11 #include "chrome/browser/browser_thread.h"
12 #include "webkit/fileapi/file_system_types.h" 12 #include "webkit/fileapi/file_system_types.h"
13 #include "webkit/fileapi/file_system_path_manager.h" 13 #include "webkit/fileapi/file_system_path_manager.h"
14 #include "webkit/fileapi/file_system_quota.h" 14 #include "webkit/fileapi/file_system_quota.h"
15 15
16 class GURL; 16 class GURL;
17 17
18 // This is owned by profile and shared by all the FileSystemDispatcherHost 18 // This is owned by profile and shared by all the FileSystemDispatcherHost
19 // that shared by the same profile. 19 // that shared by the same profile.
20 class FileSystemHostContext 20 class FileSystemHostContext
21 : public base::RefCountedThreadSafe<FileSystemHostContext, 21 : public base::RefCountedThreadSafe<FileSystemHostContext,
22 BrowserThread::DeleteOnIOThread> { 22 BrowserThread::DeleteOnIOThread> {
23 public: 23 public:
24 FileSystemHostContext(const FilePath& data_path, bool is_incognito); 24 FileSystemHostContext(const FilePath& data_path, bool is_incognito);
25 virtual ~FileSystemHostContext();
25 26
26 // Quota related methods. 27 // Quota related methods.
27 bool CheckOriginQuota(const GURL& url, int64 growth); 28 bool CheckOriginQuota(const GURL& url, int64 growth);
28 void SetOriginQuotaUnlimited(const GURL& url); 29 void SetOriginQuotaUnlimited(const GURL& url);
29 void ResetOriginQuotaUnlimited(const GURL& url); 30 void ResetOriginQuotaUnlimited(const GURL& url);
30 31
31 fileapi::FileSystemPathManager* path_manager() { return path_manager_.get(); } 32 fileapi::FileSystemPathManager* path_manager() { return path_manager_.get(); }
32 33
33 private: 34 private:
34 bool allow_file_access_from_files_; 35 bool allow_file_access_from_files_;
35 36
36 scoped_ptr<fileapi::FileSystemQuota> quota_manager_; 37 scoped_ptr<fileapi::FileSystemQuota> quota_manager_;
37 scoped_ptr<fileapi::FileSystemPathManager> path_manager_; 38 scoped_ptr<fileapi::FileSystemPathManager> path_manager_;
38 39
39 DISALLOW_IMPLICIT_CONSTRUCTORS(FileSystemHostContext); 40 DISALLOW_IMPLICIT_CONSTRUCTORS(FileSystemHostContext);
40 }; 41 };
41 42
42 #endif // CHROME_BROWSER_FILE_SYSTEM_FILE_SYSTEM_HOST_CONTEXT_H_ 43 #endif // CHROME_BROWSER_FILE_SYSTEM_FILE_SYSTEM_HOST_CONTEXT_H_
OLDNEW
« no previous file with comments | « chrome/browser/debugger/devtools_netlog_observer.cc ('k') | chrome/browser/file_system/file_system_host_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698