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

Side by Side Diff: content/public/common/resource_request_body.cc

Issue 2030473002: ABANDONED CL: Using ResourceRequestBody as the type of browser_initiated_post_data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@make-resource-request-body-public
Patch Set: Rebasing... Created 4 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/public/common/resource_request_body.h ('k') | content/shell/browser/shell.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "content/public/common/resource_request_body.h" 5 #include "content/public/common/resource_request_body.h"
6 6
7 #include "content/common/resource_request_body_impl.h" 7 #include "content/common/resource_request_body_impl.h"
8 8
9 namespace content { 9 namespace content {
10 10
11 ResourceRequestBody::ResourceRequestBody() {} 11 ResourceRequestBody::ResourceRequestBody() {}
12 12
13 ResourceRequestBody::~ResourceRequestBody() {} 13 ResourceRequestBody::~ResourceRequestBody() {}
14 14
15 // static
16 scoped_refptr<ResourceRequestBody> ResourceRequestBody::CreateFromBytes(
17 const char* bytes,
18 size_t length) {
19 scoped_refptr<ResourceRequestBodyImpl> result = new ResourceRequestBodyImpl();
20 result->AppendBytes(bytes, length);
21 return result;
22 }
23
24 // static
25 scoped_refptr<ResourceRequestBody> ResourceRequestBody::CreateFromBytes(
26 const std::string& bytes) {
27 return CreateFromBytes(bytes.data(), bytes.size());
28 }
29
15 } // namespace content 30 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/resource_request_body.h ('k') | content/shell/browser/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698