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

Side by Side Diff: content/public/child/fixed_received_data.h

Issue 1103813002: Make WebURLLoader capable of retaining received buffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « content/content_tests.gypi ('k') | content/public/child/fixed_received_data.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_PUBLIC_CHILD_FIXED_RECEIVED_DATA_H_
6 #define CONTENT_PUBLIC_CHILD_FIXED_RECEIVED_DATA_H_
7
8 #include <vector>
9
10 #include "base/memory/scoped_ptr.h"
11 #include "content/common/content_export.h"
12 #include "content/public/child/request_peer.h"
13
14 namespace content {
15
16 class CONTENT_EXPORT FixedReceivedData final
17 : public RequestPeer::ReceivedData {
18 public:
19 FixedReceivedData(const char* data, size_t length, int encoded_length);
20 explicit FixedReceivedData(scoped_ptr<ReceivedData> data);
21 FixedReceivedData(const std::vector<char>& data, int encoded_length);
22 ~FixedReceivedData() override;
23
24 const char* payload() const override;
25 int length() const override;
26 int encoded_length() const override;
27
28 private:
29 std::vector<char> data_;
30 int encoded_length_;
31
32 DISALLOW_COPY_AND_ASSIGN(FixedReceivedData);
33 };
34
35 } // namespace content
36
37 #endif // CONTENT_PUBLIC_CHILD_FIXED_RECEIVED_DATA_H_
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | content/public/child/fixed_received_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698