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

Side by Side Diff: content/child/blob_storage/webblobregistry_impl.h

Issue 2448353002: [BlobAsync] Moving async handling into BlobStorageContext & quota out. (Closed)
Patch Set: hopefully fixed android/windows compile, and comments 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 CONTENT_CHILD_BLOB_STORAGE_WEBBLOBREGISTRY_IMPL_H_ 5 #ifndef CONTENT_CHILD_BLOB_STORAGE_WEBBLOBREGISTRY_IMPL_H_
6 #define CONTENT_CHILD_BLOB_STORAGE_WEBBLOBREGISTRY_IMPL_H_ 6 #define CONTENT_CHILD_BLOB_STORAGE_WEBBLOBREGISTRY_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <memory> 11 #include <memory>
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/single_thread_task_runner.h" 16 #include "base/single_thread_task_runner.h"
17 #include "storage/common/blob_storage/blob_storage_constants.h"
17 #include "storage/common/data_element.h" 18 #include "storage/common/data_element.h"
18 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" 19 #include "third_party/WebKit/public/platform/WebBlobRegistry.h"
19 20
20 namespace blink { 21 namespace blink {
21 class WebThreadSafeData; 22 class WebThreadSafeData;
22 } // namespace blink 23 } // namespace blink
23 24
24 namespace storage { 25 namespace storage {
25 class DataElement; 26 class DataElement;
26 } 27 }
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 92
92 private: 93 private:
93 const std::string uuid_; 94 const std::string uuid_;
94 const std::string content_type_; 95 const std::string content_type_;
95 scoped_refptr<BlobConsolidation> consolidation_; 96 scoped_refptr<BlobConsolidation> consolidation_;
96 scoped_refptr<ThreadSafeSender> sender_; 97 scoped_refptr<ThreadSafeSender> sender_;
97 scoped_refptr<base::SingleThreadTaskRunner> io_runner_; 98 scoped_refptr<base::SingleThreadTaskRunner> io_runner_;
98 scoped_refptr<base::SingleThreadTaskRunner> main_runner_; 99 scoped_refptr<base::SingleThreadTaskRunner> main_runner_;
99 }; 100 };
100 101
102 storage::BlobStorageLimits limits_;
101 scoped_refptr<base::SingleThreadTaskRunner> io_runner_; 103 scoped_refptr<base::SingleThreadTaskRunner> io_runner_;
102 scoped_refptr<base::SingleThreadTaskRunner> main_runner_; 104 scoped_refptr<base::SingleThreadTaskRunner> main_runner_;
103 scoped_refptr<ThreadSafeSender> sender_; 105 scoped_refptr<ThreadSafeSender> sender_;
104 }; 106 };
105 107
106 } // namespace content 108 } // namespace content
107 109
108 #endif // CONTENT_CHILD_BLOB_STORAGE_WEBBLOBREGISTRY_IMPL_H_ 110 #endif // CONTENT_CHILD_BLOB_STORAGE_WEBBLOBREGISTRY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698