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

Side by Side Diff: ppapi/cpp/url_request_info.h

Issue 6726014: Pepper: Add SetRecordDownloadProgress() to pp::URLRequestInfo (C++ wrapper). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 PPAPI_CPP_URL_REQUEST_INFO_H_ 5 #ifndef PPAPI_CPP_URL_REQUEST_INFO_H_
6 #define PPAPI_CPP_URL_REQUEST_INFO_H_ 6 #define PPAPI_CPP_URL_REQUEST_INFO_H_
7 7
8 #include "ppapi/c/ppb_url_request_info.h" 8 #include "ppapi/c/ppb_url_request_info.h"
9 #include "ppapi/cpp/resource.h" 9 #include "ppapi/cpp/resource.h"
10 #include "ppapi/cpp/var.h" 10 #include "ppapi/cpp/var.h"
(...skipping 30 matching lines...) Expand all
41 } 41 }
42 bool SetHeaders(const Var& headers_string) { 42 bool SetHeaders(const Var& headers_string) {
43 return SetProperty(PP_URLREQUESTPROPERTY_HEADERS, headers_string); 43 return SetProperty(PP_URLREQUESTPROPERTY_HEADERS, headers_string);
44 } 44 }
45 bool SetStreamToFile(bool enable) { 45 bool SetStreamToFile(bool enable) {
46 return SetProperty(PP_URLREQUESTPROPERTY_STREAMTOFILE, enable); 46 return SetProperty(PP_URLREQUESTPROPERTY_STREAMTOFILE, enable);
47 } 47 }
48 bool SetFollowRedirects(bool enable) { 48 bool SetFollowRedirects(bool enable) {
49 return SetProperty(PP_URLREQUESTPROPERTY_FOLLOWREDIRECTS, enable); 49 return SetProperty(PP_URLREQUESTPROPERTY_FOLLOWREDIRECTS, enable);
50 } 50 }
51 bool SetRecordDownloadProgress(bool enable) {
52 return SetProperty(PP_URLREQUESTPROPERTY_RECORDDOWNLOADPROGRESS, enable);
53 }
51 bool SetRecordUploadProgress(bool enable) { 54 bool SetRecordUploadProgress(bool enable) {
52 return SetProperty(PP_URLREQUESTPROPERTY_RECORDUPLOADPROGRESS, enable); 55 return SetProperty(PP_URLREQUESTPROPERTY_RECORDUPLOADPROGRESS, enable);
53 } 56 }
54 // To use the default referrer, set url_string to an Undefined Var. 57 // To use the default referrer, set url_string to an Undefined Var.
55 bool SetCustomReferrerURL(const Var& url_string) { 58 bool SetCustomReferrerURL(const Var& url_string) {
56 return SetProperty(PP_URLREQUESTPROPERTY_CUSTOMREFERRERURL, url_string); 59 return SetProperty(PP_URLREQUESTPROPERTY_CUSTOMREFERRERURL, url_string);
57 } 60 }
58 }; 61 };
59 62
60 } // namespace pp 63 } // namespace pp
61 64
62 #endif // PPAPI_CPP_URL_REQUEST_INFO_H_ 65 #endif // PPAPI_CPP_URL_REQUEST_INFO_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698