| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_BLOB_STORAGE_BLOB_MESSAGE_FILTER_H_ | 5 #ifndef CONTENT_CHILD_BLOB_STORAGE_BLOB_MESSAGE_FILTER_H_ |
| 6 #define CONTENT_CHILD_BLOB_STORAGE_BLOB_MESSAGE_FILTER_H_ | 6 #define CONTENT_CHILD_BLOB_STORAGE_BLOB_MESSAGE_FILTER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 protected: | 50 protected: |
| 51 ~BlobMessageFilter() override; | 51 ~BlobMessageFilter() override; |
| 52 | 52 |
| 53 private: | 53 private: |
| 54 void OnRequestMemoryItem( | 54 void OnRequestMemoryItem( |
| 55 const std::string& uuid, | 55 const std::string& uuid, |
| 56 const std::vector<storage::BlobItemBytesRequest>& requests, | 56 const std::vector<storage::BlobItemBytesRequest>& requests, |
| 57 std::vector<base::SharedMemoryHandle> memory_handles, | 57 std::vector<base::SharedMemoryHandle> memory_handles, |
| 58 const std::vector<IPC::PlatformFileForTransit>& file_handles); | 58 const std::vector<IPC::PlatformFileForTransit>& file_handles); |
| 59 | 59 |
| 60 void OnCancelBuildingBlob(const std::string& uuid, | 60 void OnBlobFinalStatus(const std::string& uuid, storage::BlobStatus code); |
| 61 storage::IPCBlobCreationCancelCode code); | |
| 62 | |
| 63 void OnDoneBuildingBlob(const std::string& uuid); | |
| 64 | 61 |
| 65 IPC::Sender* sender_; | 62 IPC::Sender* sender_; |
| 66 scoped_refptr<base::TaskRunner> file_runner_; | 63 scoped_refptr<base::TaskRunner> file_runner_; |
| 67 | 64 |
| 68 DISALLOW_COPY_AND_ASSIGN(BlobMessageFilter); | 65 DISALLOW_COPY_AND_ASSIGN(BlobMessageFilter); |
| 69 }; | 66 }; |
| 70 | 67 |
| 71 } // namespace content | 68 } // namespace content |
| 72 #endif // CONTENT_CHILD_BLOB_STORAGE_BLOB_MESSAGE_FILTER_H_ | 69 #endif // CONTENT_CHILD_BLOB_STORAGE_BLOB_MESSAGE_FILTER_H_ |
| OLD | NEW |