OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CHILD_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ | 5 #ifndef CONTENT_CHILD_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ |
6 #define CONTENT_CHILD_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ | 6 #define CONTENT_CHILD_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 bool complete)> WriteCallback; | 56 bool complete)> WriteCallback; |
57 typedef base::Callback<void(base::PlatformFile file, | 57 typedef base::Callback<void(base::PlatformFile file, |
58 int file_open_id, | 58 int file_open_id, |
59 storage::QuotaLimitType quota_policy)> | 59 storage::QuotaLimitType quota_policy)> |
60 OpenFileCallback; | 60 OpenFileCallback; |
61 | 61 |
62 FileSystemDispatcher(); | 62 FileSystemDispatcher(); |
63 virtual ~FileSystemDispatcher(); | 63 virtual ~FileSystemDispatcher(); |
64 | 64 |
65 // IPC::Listener implementation. | 65 // IPC::Listener implementation. |
66 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 66 virtual bool OnMessageReceived(const IPC::Message& msg) override; |
67 | 67 |
68 void OpenFileSystem(const GURL& origin_url, | 68 void OpenFileSystem(const GURL& origin_url, |
69 storage::FileSystemType type, | 69 storage::FileSystemType type, |
70 const OpenFileSystemCallback& success_callback, | 70 const OpenFileSystemCallback& success_callback, |
71 const StatusCallback& error_callback); | 71 const StatusCallback& error_callback); |
72 void ResolveURL(const GURL& filesystem_url, | 72 void ResolveURL(const GURL& filesystem_url, |
73 const ResolveURLCallback& success_callback, | 73 const ResolveURLCallback& success_callback, |
74 const StatusCallback& error_callback); | 74 const StatusCallback& error_callback); |
75 void DeleteFileSystem(const GURL& origin_url, | 75 void DeleteFileSystem(const GURL& origin_url, |
76 storage::FileSystemType type, | 76 storage::FileSystemType type, |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 void OnDidWrite(int request_id, int64 bytes, bool complete); | 148 void OnDidWrite(int request_id, int64 bytes, bool complete); |
149 | 149 |
150 IDMap<CallbackDispatcher, IDMapOwnPointer> dispatchers_; | 150 IDMap<CallbackDispatcher, IDMapOwnPointer> dispatchers_; |
151 | 151 |
152 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcher); | 152 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcher); |
153 }; | 153 }; |
154 | 154 |
155 } // namespace content | 155 } // namespace content |
156 | 156 |
157 #endif // CONTENT_CHILD_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ | 157 #endif // CONTENT_CHILD_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ |
OLD | NEW |