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

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

Issue 1851933002: Convert //url to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: IWYU fixup 7 Created 4 years, 8 months 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 <string> 12 #include <string>
12 #include <vector> 13 #include <vector>
13 14
14 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
15 #include "base/single_thread_task_runner.h" 16 #include "base/single_thread_task_runner.h"
16 #include "storage/common/data_element.h" 17 #include "storage/common/data_element.h"
17 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" 18 #include "third_party/WebKit/public/platform/WebBlobRegistry.h"
18 19
19 namespace blink { 20 namespace blink {
20 class WebThreadSafeData; 21 class WebThreadSafeData;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 void appendFileSystemURL(const blink::WebURL&, 85 void appendFileSystemURL(const blink::WebURL&,
85 uint64_t offset, 86 uint64_t offset,
86 uint64_t length, 87 uint64_t length,
87 double expected_modification_time) override; 88 double expected_modification_time) override;
88 89
89 void build() override; 90 void build() override;
90 91
91 private: 92 private:
92 const std::string uuid_; 93 const std::string uuid_;
93 const std::string content_type_; 94 const std::string content_type_;
94 scoped_ptr<BlobConsolidation> consolidation_; 95 std::unique_ptr<BlobConsolidation> consolidation_;
95 scoped_refptr<ThreadSafeSender> sender_; 96 scoped_refptr<ThreadSafeSender> sender_;
96 scoped_refptr<base::SingleThreadTaskRunner> io_runner_; 97 scoped_refptr<base::SingleThreadTaskRunner> io_runner_;
97 scoped_refptr<base::SingleThreadTaskRunner> main_runner_; 98 scoped_refptr<base::SingleThreadTaskRunner> main_runner_;
98 }; 99 };
99 100
100 // Method called on the IO thread. 101 // Method called on the IO thread.
101 static void StartBlobAsyncConstruction( 102 static void StartBlobAsyncConstruction(
102 const std::string& uuid, 103 const std::string& uuid,
103 scoped_ptr<BlobConsolidation> consolidation, 104 std::unique_ptr<BlobConsolidation> consolidation,
104 scoped_refptr<ThreadSafeSender> sender, 105 scoped_refptr<ThreadSafeSender> sender,
105 scoped_refptr<base::SingleThreadTaskRunner> main_runner); 106 scoped_refptr<base::SingleThreadTaskRunner> main_runner);
106 107
107 scoped_refptr<base::SingleThreadTaskRunner> io_runner_; 108 scoped_refptr<base::SingleThreadTaskRunner> io_runner_;
108 scoped_refptr<base::SingleThreadTaskRunner> main_runner_; 109 scoped_refptr<base::SingleThreadTaskRunner> main_runner_;
109 scoped_refptr<ThreadSafeSender> sender_; 110 scoped_refptr<ThreadSafeSender> sender_;
110 }; 111 };
111 112
112 } // namespace content 113 } // namespace content
113 114
114 #endif // CONTENT_CHILD_BLOB_STORAGE_WEBBLOBREGISTRY_IMPL_H_ 115 #endif // CONTENT_CHILD_BLOB_STORAGE_WEBBLOBREGISTRY_IMPL_H_
OLDNEW
« no previous file with comments | « content/child/service_worker/service_worker_provider_context.cc ('k') | content/child/webblobregistry_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698