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

Side by Side Diff: ppapi/shared_impl/url_request_info_data.cc

Issue 174213003: PPAPI: Use clang-format on ppapi/shared_impl (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: remove DEPS Created 6 years, 10 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 | « ppapi/shared_impl/unittest_utils.cc ('k') | ppapi/shared_impl/url_response_info_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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ppapi/shared_impl/url_request_info_data.h" 5 #include "ppapi/shared_impl/url_request_info_data.h"
6 6
7 #include "ppapi/shared_impl/resource.h" 7 #include "ppapi/shared_impl/resource.h"
8 8
9 namespace ppapi { 9 namespace ppapi {
10 10
11 namespace { 11 namespace {
12 12
13 const int32_t kDefaultPrefetchBufferUpperThreshold = 100 * 1000 * 1000; 13 const int32_t kDefaultPrefetchBufferUpperThreshold = 100 * 1000 * 1000;
14 const int32_t kDefaultPrefetchBufferLowerThreshold = 50 * 1000 * 1000; 14 const int32_t kDefaultPrefetchBufferLowerThreshold = 50 * 1000 * 1000;
15 15
16 } // namespace 16 } // namespace
17 17
18 URLRequestInfoData::BodyItem::BodyItem() 18 URLRequestInfoData::BodyItem::BodyItem()
19 : is_file(false), 19 : is_file(false),
20 file_ref_pp_resource(0), 20 file_ref_pp_resource(0),
21 start_offset(0), 21 start_offset(0),
22 number_of_bytes(-1), 22 number_of_bytes(-1),
23 expected_last_modified_time(0.0) { 23 expected_last_modified_time(0.0) {}
24 }
25 24
26 URLRequestInfoData::BodyItem::BodyItem(const std::string& data) 25 URLRequestInfoData::BodyItem::BodyItem(const std::string& data)
27 : is_file(false), 26 : is_file(false),
28 data(data), 27 data(data),
29 file_ref_pp_resource(0), 28 file_ref_pp_resource(0),
30 start_offset(0), 29 start_offset(0),
31 number_of_bytes(-1), 30 number_of_bytes(-1),
32 expected_last_modified_time(0.0) { 31 expected_last_modified_time(0.0) {}
33 }
34 32
35 URLRequestInfoData::BodyItem::BodyItem( 33 URLRequestInfoData::BodyItem::BodyItem(Resource* file_ref,
36 Resource* file_ref, 34 int64_t start_offset,
37 int64_t start_offset, 35 int64_t number_of_bytes,
38 int64_t number_of_bytes, 36 PP_Time expected_last_modified_time)
39 PP_Time expected_last_modified_time)
40 : is_file(true), 37 : is_file(true),
41 file_ref_resource(file_ref), 38 file_ref_resource(file_ref),
42 file_ref_pp_resource(file_ref->pp_resource()), 39 file_ref_pp_resource(file_ref->pp_resource()),
43 start_offset(start_offset), 40 start_offset(start_offset),
44 number_of_bytes(number_of_bytes), 41 number_of_bytes(number_of_bytes),
45 expected_last_modified_time(expected_last_modified_time) { 42 expected_last_modified_time(expected_last_modified_time) {}
46 }
47 43
48 URLRequestInfoData::URLRequestInfoData() 44 URLRequestInfoData::URLRequestInfoData()
49 : url(), 45 : url(),
50 method(), 46 method(),
51 headers(), 47 headers(),
52 stream_to_file(false), 48 stream_to_file(false),
53 follow_redirects(true), 49 follow_redirects(true),
54 record_download_progress(false), 50 record_download_progress(false),
55 record_upload_progress(false), 51 record_upload_progress(false),
56 has_custom_referrer_url(false), 52 has_custom_referrer_url(false),
57 custom_referrer_url(), 53 custom_referrer_url(),
58 allow_cross_origin_requests(false), 54 allow_cross_origin_requests(false),
59 allow_credentials(false), 55 allow_credentials(false),
60 has_custom_content_transfer_encoding(false), 56 has_custom_content_transfer_encoding(false),
61 custom_content_transfer_encoding(), 57 custom_content_transfer_encoding(),
62 has_custom_user_agent(false), 58 has_custom_user_agent(false),
63 custom_user_agent(), 59 custom_user_agent(),
64 prefetch_buffer_upper_threshold(kDefaultPrefetchBufferUpperThreshold), 60 prefetch_buffer_upper_threshold(kDefaultPrefetchBufferUpperThreshold),
65 prefetch_buffer_lower_threshold(kDefaultPrefetchBufferLowerThreshold), 61 prefetch_buffer_lower_threshold(kDefaultPrefetchBufferLowerThreshold),
66 body() { 62 body() {}
67 }
68 63
69 URLRequestInfoData::~URLRequestInfoData() { 64 URLRequestInfoData::~URLRequestInfoData() {}
70 }
71 65
72 } // namespace ppapi 66 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/shared_impl/unittest_utils.cc ('k') | ppapi/shared_impl/url_response_info_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698