OLD | NEW |
1 // Copyright (c) 2010 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 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 FilePath; | 20 class FilePath; |
21 class GURL; | 21 class GURL; |
22 class HostContentSettingsMap; | 22 class HostContentSettingsMap; |
23 class Profile; | 23 class Profile; |
24 class Receiver; | 24 class Receiver; |
25 class RenderMessageFilter; | 25 class RenderMessageFilter; |
| 26 class URLRequestContextGetter; |
| 27 |
| 28 namespace net { |
26 class URLRequestContext; | 29 class URLRequestContext; |
27 class URLRequestContextGetter; | 30 } // namespace net |
28 | 31 |
29 namespace fileapi { | 32 namespace fileapi { |
30 class SandboxedFileSystemContext; | 33 class SandboxedFileSystemContext; |
31 class SandboxedFileSystemOperation; | 34 class SandboxedFileSystemOperation; |
32 } | 35 } |
33 | 36 |
34 class FileSystemDispatcherHost : public BrowserMessageFilter { | 37 class FileSystemDispatcherHost : public BrowserMessageFilter { |
35 public: | 38 public: |
36 // Used by the renderer. | 39 // Used by the renderer. |
37 explicit FileSystemDispatcherHost(Profile* profile); | 40 explicit FileSystemDispatcherHost(Profile* profile); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 // Used to look up permissions. | 89 // Used to look up permissions. |
87 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; | 90 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; |
88 | 91 |
89 // Keeps ongoing file system operations. | 92 // Keeps ongoing file system operations. |
90 typedef IDMap<fileapi::SandboxedFileSystemOperation> OperationsMap; | 93 typedef IDMap<fileapi::SandboxedFileSystemOperation> OperationsMap; |
91 OperationsMap operations_; | 94 OperationsMap operations_; |
92 | 95 |
93 // This holds the URLRequestContextGetter until Init() can be called from the | 96 // This holds the URLRequestContextGetter until Init() can be called from the |
94 // IO thread, which will extract the URLRequestContext from it. | 97 // IO thread, which will extract the URLRequestContext from it. |
95 scoped_refptr<URLRequestContextGetter> request_context_getter_; | 98 scoped_refptr<URLRequestContextGetter> request_context_getter_; |
96 scoped_refptr<URLRequestContext> request_context_; | 99 scoped_refptr<net::URLRequestContext> request_context_; |
97 | 100 |
98 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcherHost); | 101 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcherHost); |
99 }; | 102 }; |
100 | 103 |
101 #endif // CHROME_BROWSER_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_HOST_H_ | 104 #endif // CHROME_BROWSER_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_HOST_H_ |
OLD | NEW |