| 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_BROWSER_FILEAPI_FILEAPI_MESSAGE_FILTER_H_ | 5 #ifndef CONTENT_BROWSER_FILEAPI_FILEAPI_MESSAGE_FILTER_H_ |
| 6 #define CONTENT_BROWSER_FILEAPI_FILEAPI_MESSAGE_FILTER_H_ | 6 #define CONTENT_BROWSER_FILEAPI_FILEAPI_MESSAGE_FILTER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 | 147 |
| 148 // Currently |content_type| is ignored. | 148 // Currently |content_type| is ignored. |
| 149 // | 149 // |
| 150 // TODO(tyoshino): Set |content_type| to the stream. | 150 // TODO(tyoshino): Set |content_type| to the stream. |
| 151 void OnStartBuildingStream(const GURL& url, const std::string& content_type); | 151 void OnStartBuildingStream(const GURL& url, const std::string& content_type); |
| 152 void OnAppendBlobDataItemToStream( | 152 void OnAppendBlobDataItemToStream( |
| 153 const GURL& url, const webkit_blob::BlobData::Item& item); | 153 const GURL& url, const webkit_blob::BlobData::Item& item); |
| 154 void OnAppendSharedMemoryToStream( | 154 void OnAppendSharedMemoryToStream( |
| 155 const GURL& url, base::SharedMemoryHandle handle, size_t buffer_size); | 155 const GURL& url, base::SharedMemoryHandle handle, size_t buffer_size); |
| 156 void OnFinishBuildingStream(const GURL& url); | 156 void OnFinishBuildingStream(const GURL& url); |
| 157 void OnAbortBuildingStream(const GURL& url); |
| 157 void OnCloneStream(const GURL& url, const GURL& src_url); | 158 void OnCloneStream(const GURL& url, const GURL& src_url); |
| 158 void OnRemoveStream(const GURL& url); | 159 void OnRemoveStream(const GURL& url); |
| 159 | 160 |
| 160 // Callback functions to be used when each file operation is finished. | 161 // Callback functions to be used when each file operation is finished. |
| 161 void DidFinish(int request_id, base::PlatformFileError result); | 162 void DidFinish(int request_id, base::PlatformFileError result); |
| 162 void DidCancel(int request_id, base::PlatformFileError result); | 163 void DidCancel(int request_id, base::PlatformFileError result); |
| 163 void DidGetMetadata(int request_id, | 164 void DidGetMetadata(int request_id, |
| 164 base::PlatformFileError result, | 165 base::PlatformFileError result, |
| 165 const base::PlatformFileInfo& info); | 166 const base::PlatformFileInfo& info); |
| 166 void DidReadDirectory(int request_id, | 167 void DidReadDirectory(int request_id, |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 // Need to close all of them when the renderer process dies. | 242 // Need to close all of them when the renderer process dies. |
| 242 typedef IDMap<base::Closure, IDMapOwnPointer> OnCloseCallbackMap; | 243 typedef IDMap<base::Closure, IDMapOwnPointer> OnCloseCallbackMap; |
| 243 OnCloseCallbackMap on_close_callbacks_; | 244 OnCloseCallbackMap on_close_callbacks_; |
| 244 | 245 |
| 245 DISALLOW_COPY_AND_ASSIGN(FileAPIMessageFilter); | 246 DISALLOW_COPY_AND_ASSIGN(FileAPIMessageFilter); |
| 246 }; | 247 }; |
| 247 | 248 |
| 248 } // namespace content | 249 } // namespace content |
| 249 | 250 |
| 250 #endif // CONTENT_BROWSER_FILEAPI_FILEAPI_MESSAGE_FILTER_H_ | 251 #endif // CONTENT_BROWSER_FILEAPI_FILEAPI_MESSAGE_FILTER_H_ |
| OLD | NEW |