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

Side by Side Diff: third_party/WebKit/Source/modules/fetch/FetchFormDataConsumerHandle.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 FetchFormDataConsumerHandle_h 5 #ifndef FetchFormDataConsumerHandle_h
6 #define FetchFormDataConsumerHandle_h 6 #define FetchFormDataConsumerHandle_h
7 7
8 #include "core/dom/DOMArrayBuffer.h" 8 #include "core/dom/DOMArrayBuffer.h"
9 #include "core/dom/DOMArrayBufferView.h" 9 #include "core/dom/DOMArrayBufferView.h"
10 #include "modules/ModulesExport.h" 10 #include "modules/ModulesExport.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 private: 44 private:
45 class Context; 45 class Context;
46 class SimpleContext; 46 class SimpleContext;
47 class ComplexContext; 47 class ComplexContext;
48 class ReaderImpl; 48 class ReaderImpl;
49 49
50 explicit FetchFormDataConsumerHandle(const String& body); 50 explicit FetchFormDataConsumerHandle(const String& body);
51 FetchFormDataConsumerHandle(const void*, size_t); 51 FetchFormDataConsumerHandle(const void*, size_t);
52 FetchFormDataConsumerHandle(ExecutionContext*, const PassRefPtr<EncodedFormD ata> body, FetchBlobDataConsumerHandle::LoaderFactory* = nullptr); 52 FetchFormDataConsumerHandle(ExecutionContext*, const PassRefPtr<EncodedFormD ata> body, FetchBlobDataConsumerHandle::LoaderFactory* = nullptr);
53 53
54 Reader* obtainReaderInternal(Client*) override; 54 std::unique_ptr<Reader> obtainFetchDataReader(Client*) override;
55 55
56 const char* debugName() const override { return "FetchFormDataConsumerHandle "; } 56 const char* debugName() const override { return "FetchFormDataConsumerHandle "; }
57 57
58 RefPtr<Context> m_context; 58 RefPtr<Context> m_context;
59 }; 59 };
60 60
61 } // namespace blink 61 } // namespace blink
62 62
63 #endif // FetchFormDataConsumerHandle_h 63 #endif // FetchFormDataConsumerHandle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698