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

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

Issue 2038813003: Making ResourceRequestBody part of //content's public API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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/page_state.cc ('k') | content/public/common/resource_request_body.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 2016 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_COMMON_RESOURCE_REQUEST_BODY_H_
6 #define CONTENT_PUBLIC_COMMON_RESOURCE_REQUEST_BODY_H_
7
8 #include <stdint.h>
9
10 #include <vector>
11
12 #include "base/macros.h"
13 #include "base/memory/ref_counted.h"
14 #include "content/common/content_export.h"
15
16 namespace content {
17
18 // ResourceRequestBody represents body (i.e. upload data) of a HTTP request.
19 //
20 // This class is intentionally opaque:
21 // - Embedders cannot inspect the payload of ResourceRequestBody. Only the
22 // //content layer can decompose ResourceRequestBody into references to file
23 // ranges, byte vectors, blob uris, etc.
24 // - Embedders can get instances of ResourceRequestBody only by receiving an
25 // instance created inside //content layer (e.g. receiving it via
26 // content::OpenURLParams).
27 // - Embedders typically end up passing ResourceRequestBody back into the
28 // //content layer via content::NavigationController::LoadUrlParams.
29 class CONTENT_EXPORT ResourceRequestBody
30 : public base::RefCountedThreadSafe<ResourceRequestBody> {
31 protected:
32 ResourceRequestBody();
33 virtual ~ResourceRequestBody();
34
35 private:
36 friend class base::RefCountedThreadSafe<ResourceRequestBody>;
37 DISALLOW_COPY_AND_ASSIGN(ResourceRequestBody);
38 };
39
40 } // namespace content
41
42 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_REQUEST_BODY_H_
OLDNEW
« no previous file with comments | « content/public/common/page_state.cc ('k') | content/public/common/resource_request_body.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698