| 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 STORAGE_BROWSER_BLOB_INTERNAL_BLOB_DATA_H_ | 5 #ifndef STORAGE_BROWSER_BLOB_INTERNAL_BLOB_DATA_H_ |
| 6 #define STORAGE_BROWSER_BLOB_INTERNAL_BLOB_DATA_H_ | 6 #define STORAGE_BROWSER_BLOB_INTERNAL_BLOB_DATA_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 size_t GetNonsharedMemoryUsage() const; | 64 size_t GetNonsharedMemoryUsage() const; |
| 65 | 65 |
| 66 // Removes the given blob uuid from the internal ShareableBlobDataItems. | 66 // Removes the given blob uuid from the internal ShareableBlobDataItems. |
| 67 // This is called on destruction of the blob if we're still building it. | 67 // This is called on destruction of the blob if we're still building it. |
| 68 void RemoveBlobFromShareableItems(const std::string& blob_uuid); | 68 void RemoveBlobFromShareableItems(const std::string& blob_uuid); |
| 69 | 69 |
| 70 // The builder is invalid after calling this method. | 70 // The builder is invalid after calling this method. |
| 71 std::unique_ptr<::storage::InternalBlobData> Build(); | 71 std::unique_ptr<::storage::InternalBlobData> Build(); |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 friend class ViewBlobInternalsJob; |
| 74 std::unique_ptr<::storage::InternalBlobData> data_; | 75 std::unique_ptr<::storage::InternalBlobData> data_; |
| 75 | 76 |
| 76 DISALLOW_COPY_AND_ASSIGN(Builder); | 77 DISALLOW_COPY_AND_ASSIGN(Builder); |
| 77 }; | 78 }; |
| 78 | 79 |
| 79 DISALLOW_COPY_AND_ASSIGN(InternalBlobData); | 80 DISALLOW_COPY_AND_ASSIGN(InternalBlobData); |
| 80 }; | 81 }; |
| 81 | 82 |
| 82 } // namespace storage | 83 } // namespace storage |
| 83 #endif // STORAGE_BROWSER_BLOB_INTERNAL_BLOB_DATA_H_ | 84 #endif // STORAGE_BROWSER_BLOB_INTERNAL_BLOB_DATA_H_ |
| OLD | NEW |