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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 protected: | 49 protected: |
50 ~BlobMessageFilter() override; | 50 ~BlobMessageFilter() override; |
51 | 51 |
52 private: | 52 private: |
53 void OnRequestMemoryItem( | 53 void OnRequestMemoryItem( |
54 const std::string& uuid, | 54 const std::string& uuid, |
55 const std::vector<storage::BlobItemBytesRequest>& requests, | 55 const std::vector<storage::BlobItemBytesRequest>& requests, |
56 std::vector<base::SharedMemoryHandle> memory_handles, | 56 std::vector<base::SharedMemoryHandle> memory_handles, |
57 const std::vector<IPC::PlatformFileForTransit>& file_handles); | 57 const std::vector<IPC::PlatformFileForTransit>& file_handles); |
58 | 58 |
59 void OnCancelBuildingBlob(const std::string& uuid, | 59 void OnBlobFinalStatus(const std::string& uuid, storage::BlobStatus code); |
60 storage::IPCBlobCreationCancelCode code); | |
61 | |
62 void OnDoneBuildingBlob(const std::string& uuid); | |
63 | 60 |
64 IPC::Sender* sender_; | 61 IPC::Sender* sender_; |
65 scoped_refptr<base::TaskRunner> file_runner_; | 62 scoped_refptr<base::TaskRunner> file_runner_; |
66 | 63 |
67 DISALLOW_COPY_AND_ASSIGN(BlobMessageFilter); | 64 DISALLOW_COPY_AND_ASSIGN(BlobMessageFilter); |
68 }; | 65 }; |
69 | 66 |
70 } // namespace content | 67 } // namespace content |
71 #endif // CONTENT_CHILD_BLOB_STORAGE_BLOB_MESSAGE_FILTER_H_ | 68 #endif // CONTENT_CHILD_BLOB_STORAGE_BLOB_MESSAGE_FILTER_H_ |
OLD | NEW |