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

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

Issue 6711047: Fix up some types in the API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: static_cast and header order 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 | « ppapi/cpp/core.h ('k') | ppapi/cpp/url_loader.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) 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_LOADER_H_ 5 #ifndef PPAPI_CPP_URL_LOADER_H_
6 #define PPAPI_CPP_URL_LOADER_H_ 6 #define PPAPI_CPP_URL_LOADER_H_
7 7
8 #include "ppapi/c/pp_stdint.h" 8 #include "ppapi/c/pp_stdint.h"
9 #include "ppapi/cpp/resource.h" 9 #include "ppapi/cpp/resource.h"
10 10
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 // PPB_URLLoader methods: 91 // PPB_URLLoader methods:
92 int32_t Open(const URLRequestInfo& request_info, 92 int32_t Open(const URLRequestInfo& request_info,
93 const CompletionCallback& cc); 93 const CompletionCallback& cc);
94 int32_t FollowRedirect(const CompletionCallback& cc); 94 int32_t FollowRedirect(const CompletionCallback& cc);
95 bool GetUploadProgress(int64_t* bytes_sent, 95 bool GetUploadProgress(int64_t* bytes_sent,
96 int64_t* total_bytes_to_be_sent) const; 96 int64_t* total_bytes_to_be_sent) const;
97 bool GetDownloadProgress(int64_t* bytes_received, 97 bool GetDownloadProgress(int64_t* bytes_received,
98 int64_t* total_bytes_to_be_received) const; 98 int64_t* total_bytes_to_be_received) const;
99 URLResponseInfo GetResponseInfo() const; 99 URLResponseInfo GetResponseInfo() const;
100 int32_t ReadResponseBody(char* buffer, 100 int32_t ReadResponseBody(void* buffer,
101 int32_t bytes_to_read, 101 int32_t bytes_to_read,
102 const CompletionCallback& cc); 102 const CompletionCallback& cc);
103 int32_t FinishStreamingToFile(const CompletionCallback& cc); 103 int32_t FinishStreamingToFile(const CompletionCallback& cc);
104 void Close(); 104 void Close();
105 }; 105 };
106 106
107 } // namespace pp 107 } // namespace pp
108 108
109 #endif // PPAPI_CPP_URL_LOADER_H_ 109 #endif // PPAPI_CPP_URL_LOADER_H_
OLDNEW
« no previous file with comments | « ppapi/cpp/core.h ('k') | ppapi/cpp/url_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698