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

Side by Side Diff: third_party/WebKit/Source/modules/fetch/FetchBlobDataConsumerHandle.h

Issue 2172183003: Return unique_ptr<WebDataConsumerHandle::Reader> directly from obtainReader (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gmock_cxx11
Patch Set: rebase Created 4 years, 4 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 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 FetchBlobDataConsumerHandle_h 5 #ifndef FetchBlobDataConsumerHandle_h
6 #define FetchBlobDataConsumerHandle_h 6 #define FetchBlobDataConsumerHandle_h
7 7
8 #include "core/fetch/ResourceLoaderOptions.h" 8 #include "core/fetch/ResourceLoaderOptions.h"
9 #include "core/loader/ThreadableLoader.h" 9 #include "core/loader/ThreadableLoader.h"
10 #include "modules/ModulesExport.h" 10 #include "modules/ModulesExport.h"
(...skipping 21 matching lines...) Expand all
32 32
33 static std::unique_ptr<FetchDataConsumerHandle> create(ExecutionContext*, Pa ssRefPtr<BlobDataHandle>); 33 static std::unique_ptr<FetchDataConsumerHandle> create(ExecutionContext*, Pa ssRefPtr<BlobDataHandle>);
34 34
35 // For testing. 35 // For testing.
36 static std::unique_ptr<FetchDataConsumerHandle> create(ExecutionContext*, Pa ssRefPtr<BlobDataHandle>, LoaderFactory*); 36 static std::unique_ptr<FetchDataConsumerHandle> create(ExecutionContext*, Pa ssRefPtr<BlobDataHandle>, LoaderFactory*);
37 37
38 ~FetchBlobDataConsumerHandle(); 38 ~FetchBlobDataConsumerHandle();
39 39
40 private: 40 private:
41 FetchBlobDataConsumerHandle(ExecutionContext*, PassRefPtr<BlobDataHandle>, L oaderFactory*); 41 FetchBlobDataConsumerHandle(ExecutionContext*, PassRefPtr<BlobDataHandle>, L oaderFactory*);
42 Reader* obtainReaderInternal(Client*) override; 42 std::unique_ptr<Reader> obtainFetchDataReader(Client*) override;
43 43
44 const char* debugName() const override { return "FetchBlobDataConsumerHandle "; } 44 const char* debugName() const override { return "FetchBlobDataConsumerHandle "; }
45 45
46 class ReaderContext; 46 class ReaderContext;
47 RefPtr<ReaderContext> m_readerContext; 47 RefPtr<ReaderContext> m_readerContext;
48 }; 48 };
49 49
50 } // namespace blink 50 } // namespace blink
51 51
52 #endif // FetchBlobDataConsumerHandle_h 52 #endif // FetchBlobDataConsumerHandle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698