Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(294)

Side by Side Diff: storage/browser/blob/blob_data_handle.h

Issue 2443103003: Remove unused include in sequenced_worker_pool.h (Closed)
Patch Set: merge up to r429325 Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_BLOB_DATA_HANDLE_H_ 5 #ifndef STORAGE_BROWSER_BLOB_BLOB_DATA_HANDLE_H_
6 #define STORAGE_BROWSER_BLOB_BLOB_DATA_HANDLE_H_ 6 #define STORAGE_BROWSER_BLOB_BLOB_DATA_HANDLE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 29 matching lines...) Expand all
40 : public base::SupportsUserData::Data { 40 : public base::SupportsUserData::Data {
41 public: 41 public:
42 // True means the blob was constructed successfully, and false means that 42 // True means the blob was constructed successfully, and false means that
43 // there was an error, which is reported in the second argument. 43 // there was an error, which is reported in the second argument.
44 using BlobConstructedCallback = 44 using BlobConstructedCallback =
45 base::Callback<void(bool, IPCBlobCreationCancelCode)>; 45 base::Callback<void(bool, IPCBlobCreationCancelCode)>;
46 46
47 BlobDataHandle(const BlobDataHandle& other); // May be copied on any thread. 47 BlobDataHandle(const BlobDataHandle& other); // May be copied on any thread.
48 ~BlobDataHandle() override; // May be deleted on any thread. 48 ~BlobDataHandle() override; // May be deleted on any thread.
49 49
50 // Assignment operator matching copy constructor.
51 BlobDataHandle& operator=(const BlobDataHandle& other);
52
50 // Returns if this blob is still constructing. If so, one can use the 53 // Returns if this blob is still constructing. If so, one can use the
51 // RunOnConstructionComplete to wait. 54 // RunOnConstructionComplete to wait.
52 // Must be called on IO thread. 55 // Must be called on IO thread.
53 bool IsBeingBuilt() const; 56 bool IsBeingBuilt() const;
54 57
55 // Returns if this blob is broken, and there is no data associated with it. 58 // Returns if this blob is broken, and there is no data associated with it.
56 // Must be called on IO thread. 59 // Must be called on IO thread.
57 bool IsBroken() const; 60 bool IsBroken() const;
58 61
59 // The callback will be run on the IO thread when construction of the blob 62 // The callback will be run on the IO thread when construction of the blob
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 BlobStorageContext* context, 121 BlobStorageContext* context,
119 base::SequencedTaskRunner* io_task_runner); 122 base::SequencedTaskRunner* io_task_runner);
120 123
121 scoped_refptr<base::SequencedTaskRunner> io_task_runner_; 124 scoped_refptr<base::SequencedTaskRunner> io_task_runner_;
122 scoped_refptr<BlobDataHandleShared> shared_; 125 scoped_refptr<BlobDataHandleShared> shared_;
123 }; 126 };
124 127
125 } // namespace storage 128 } // namespace storage
126 129
127 #endif // STORAGE_BROWSER_BLOB_BLOB_DATA_HANDLE_H_ 130 #endif // STORAGE_BROWSER_BLOB_BLOB_DATA_HANDLE_H_
OLDNEW
« no previous file with comments | « storage/browser/blob/blob_async_builder_host.h ('k') | storage/browser/blob/blob_data_handle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698