OLD | NEW |
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 CONTENT_BROWSER_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_HOST_H_ | 5 #ifndef CONTENT_BROWSER_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_HOST_H_ |
6 #define CONTENT_BROWSER_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_HOST_H_ | 6 #define CONTENT_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" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 const GURL& path, | 76 const GURL& path, |
77 const GURL& blob_url, | 77 const GURL& blob_url, |
78 int64 offset); | 78 int64 offset); |
79 void OnTruncate(int request_id, const GURL& path, int64 length); | 79 void OnTruncate(int request_id, const GURL& path, int64 length); |
80 void OnTouchFile(int request_id, | 80 void OnTouchFile(int request_id, |
81 const GURL& path, | 81 const GURL& path, |
82 const base::Time& last_access_time, | 82 const base::Time& last_access_time, |
83 const base::Time& last_modified_time); | 83 const base::Time& last_modified_time); |
84 void OnCancel(int request_id, int request_to_cancel); | 84 void OnCancel(int request_id, int request_to_cancel); |
85 void OnOpenFile(int request_id, const GURL& path, int file_flags); | 85 void OnOpenFile(int request_id, const GURL& path, int file_flags); |
| 86 void OnWillUpdate(const GURL& path); |
| 87 void OnDidUpdate(const GURL& path, int64 delta); |
86 | 88 |
87 // Creates a new FileSystemOperation. | 89 // Creates a new FileSystemOperation. |
88 fileapi::FileSystemOperation* GetNewOperation(int request_id); | 90 fileapi::FileSystemOperation* GetNewOperation(int request_id); |
89 | 91 |
90 fileapi::FileSystemContext* context_; | 92 fileapi::FileSystemContext* context_; |
91 | 93 |
92 // Keeps ongoing file system operations. | 94 // Keeps ongoing file system operations. |
93 typedef IDMap<fileapi::FileSystemOperation> OperationsMap; | 95 typedef IDMap<fileapi::FileSystemOperation> OperationsMap; |
94 OperationsMap operations_; | 96 OperationsMap operations_; |
95 | 97 |
96 // This holds the ResourceContext until Init() can be called from the | 98 // This holds the ResourceContext until Init() can be called from the |
97 // IO thread, which will extract the net::URLRequestContext from it. | 99 // IO thread, which will extract the net::URLRequestContext from it. |
98 const content::ResourceContext* resource_context_; | 100 const content::ResourceContext* resource_context_; |
99 net::URLRequestContext* request_context_; | 101 net::URLRequestContext* request_context_; |
100 | 102 |
101 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcherHost); | 103 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcherHost); |
102 }; | 104 }; |
103 | 105 |
104 #endif // CONTENT_BROWSER_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_HOST_H_ | 106 #endif // CONTENT_BROWSER_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_HOST_H_ |
OLD | NEW |