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

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

Issue 5633008: Remove BrowserFileSystemContext class (merge into SandboxedFSContext) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 10 years 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_DISPATCHER_HOST_H_ 5 #ifndef CHROME_BROWSER_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_HOST_H_
6 #define CHROME_BROWSER_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_HOST_H_ 6 #define CHROME_BROWSER_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_HOST_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/id_map.h" 11 #include "base/id_map.h"
12 #include "chrome/browser/browser_message_filter.h" 12 #include "chrome/browser/browser_message_filter.h"
13 #include "webkit/fileapi/file_system_types.h" 13 #include "webkit/fileapi/file_system_types.h"
14 14
15 namespace base { 15 namespace base {
16 class Time; 16 class Time;
17 } 17 }
18 18
19 class ChromeURLRequestContext; 19 class ChromeURLRequestContext;
20 class BrowserFileSystemContext;
21 class FilePath; 20 class FilePath;
22 class GURL; 21 class GURL;
23 class HostContentSettingsMap; 22 class HostContentSettingsMap;
24 class Profile; 23 class Profile;
25 class Receiver; 24 class Receiver;
26 class ResourceMessageFilter; 25 class ResourceMessageFilter;
27 class URLRequestContext; 26 class URLRequestContext;
28 class URLRequestContextGetter; 27 class URLRequestContextGetter;
29 28
30 namespace fileapi { 29 namespace fileapi {
30 class SandboxedFileSystemContext;
31 class SandboxedFileSystemOperation; 31 class SandboxedFileSystemOperation;
32 } 32 }
33 33
34 class FileSystemDispatcherHost : public BrowserMessageFilter { 34 class FileSystemDispatcherHost : public BrowserMessageFilter {
35 public: 35 public:
36 // Used by the renderer. 36 // Used by the renderer.
37 explicit FileSystemDispatcherHost(Profile* profile); 37 explicit FileSystemDispatcherHost(Profile* profile);
38 // Used by the worker, since it has the context handy already. 38 // Used by the worker, since it has the context handy already.
39 explicit FileSystemDispatcherHost(ChromeURLRequestContext* context); 39 explicit FileSystemDispatcherHost(ChromeURLRequestContext* context);
40 ~FileSystemDispatcherHost(); 40 ~FileSystemDispatcherHost();
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 const FilePath& path, 74 const FilePath& path,
75 const base::Time& last_access_time, 75 const base::Time& last_access_time,
76 const base::Time& last_modified_time); 76 const base::Time& last_modified_time);
77 void OnCancel(int request_id, int request_to_cancel); 77 void OnCancel(int request_id, int request_to_cancel);
78 void UnregisterOperation(int request_id); 78 void UnregisterOperation(int request_id);
79 79
80 private: 80 private:
81 // Creates a new SandboxedFileSystemOperation. 81 // Creates a new SandboxedFileSystemOperation.
82 fileapi::SandboxedFileSystemOperation* GetNewOperation(int request_id); 82 fileapi::SandboxedFileSystemOperation* GetNewOperation(int request_id);
83 83
84 scoped_refptr<BrowserFileSystemContext> context_; 84 scoped_refptr<fileapi::SandboxedFileSystemContext> context_;
85 85
86 // Used to look up permissions. 86 // Used to look up permissions.
87 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; 87 scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
88 88
89 // Keeps ongoing file system operations. 89 // Keeps ongoing file system operations.
90 typedef IDMap<fileapi::SandboxedFileSystemOperation> OperationsMap; 90 typedef IDMap<fileapi::SandboxedFileSystemOperation> OperationsMap;
91 OperationsMap operations_; 91 OperationsMap operations_;
92 92
93 // This holds the URLRequestContextGetter until Init() can be called from the 93 // This holds the URLRequestContextGetter until Init() can be called from the
94 // IO thread, which will extract the URLRequestContext from it. 94 // IO thread, which will extract the URLRequestContext from it.
95 scoped_refptr<URLRequestContextGetter> request_context_getter_; 95 scoped_refptr<URLRequestContextGetter> request_context_getter_;
96 scoped_refptr<URLRequestContext> request_context_; 96 scoped_refptr<URLRequestContext> request_context_;
97 97
98 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcherHost); 98 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcherHost);
99 }; 99 };
100 100
101 #endif // CHROME_BROWSER_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_HOST_H_ 101 #endif // CHROME_BROWSER_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/file_system/browser_file_system_helper.cc ('k') | chrome/browser/file_system/file_system_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698