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

Side by Side Diff: content/common/resource_request_body_impl.h

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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CONTENT_COMMON_RESOURCE_REQUEST_BODY_IMPL_H_ 5 #ifndef CONTENT_COMMON_RESOURCE_REQUEST_BODY_IMPL_H_
6 #define CONTENT_COMMON_RESOURCE_REQUEST_BODY_IMPL_H_ 6 #define CONTENT_COMMON_RESOURCE_REQUEST_BODY_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 void swap_elements(std::vector<Element>* elements) { 48 void swap_elements(std::vector<Element>* elements) {
49 elements_.swap(*elements); 49 elements_.swap(*elements);
50 } 50 }
51 51
52 // Identifies a particular upload instance, which is used by the cache to 52 // Identifies a particular upload instance, which is used by the cache to
53 // formulate a cache key. This value should be unique across browser 53 // formulate a cache key. This value should be unique across browser
54 // sessions. A value of 0 is used to indicate an unspecified identifier. 54 // sessions. A value of 0 is used to indicate an unspecified identifier.
55 void set_identifier(int64_t id) { identifier_ = id; } 55 void set_identifier(int64_t id) { identifier_ = id; }
56 int64_t identifier() const { return identifier_; } 56 int64_t identifier() const { return identifier_; }
57 57
58 #if defined(OS_ANDROID)
59 base::android::ScopedJavaLocalRef<jbyteArray> ToJavaByteArray(
60 JNIEnv* env) const override;
61 #endif
62
58 private: 63 private:
59 ~ResourceRequestBodyImpl() override; 64 ~ResourceRequestBodyImpl() override;
60 65
61 std::vector<Element> elements_; 66 std::vector<Element> elements_;
62 int64_t identifier_; 67 int64_t identifier_;
63 68
64 DISALLOW_COPY_AND_ASSIGN(ResourceRequestBodyImpl); 69 DISALLOW_COPY_AND_ASSIGN(ResourceRequestBodyImpl);
65 }; 70 };
66 71
67 } // namespace content 72 } // namespace content
68 73
69 #endif // CONTENT_COMMON_RESOURCE_REQUEST_BODY_IMPL_H_ 74 #endif // CONTENT_COMMON_RESOURCE_REQUEST_BODY_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/webui/web_ui_mojo_browsertest.cc ('k') | content/common/resource_request_body_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698