[Mac] Enable CrZombie for subprocesses in release builds.
[chromium-blink-merge.git] / ppapi / thunk / ppb_url_loader_api.h
blob5f9e58d5aa43c6ab663d5103439dc41978cf934d
1 // Copyright (c) 2011 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.
5 #ifndef PPAPI_THUNK_URL_LOADER_API_H_
6 #define PPAPI_THUNK_URL_LOADER_API_H_
8 #include "ppapi/c/ppb_url_loader.h"
9 #include "ppapi/c/trusted/ppb_url_loader_trusted.h"
11 namespace ppapi {
12 namespace thunk {
14 class PPB_URLLoader_API {
15 public:
16 virtual ~PPB_URLLoader_API() {}
18 virtual int32_t Open(PP_Resource request_id,
19 PP_CompletionCallback callback) = 0;
20 virtual int32_t FollowRedirect(PP_CompletionCallback callback) = 0;
21 virtual PP_Bool GetUploadProgress(int64_t* bytes_sent,
22 int64_t* total_bytes_to_be_sent) = 0;
23 virtual PP_Bool GetDownloadProgress(int64_t* bytes_received,
24 int64_t* total_bytes_to_be_received) = 0;
25 virtual PP_Resource GetResponseInfo() = 0;
26 virtual int32_t ReadResponseBody(void* buffer,
27 int32_t bytes_to_read,
28 PP_CompletionCallback callback) = 0;
29 virtual int32_t FinishStreamingToFile(PP_CompletionCallback callback) = 0;
30 virtual void Close() = 0;
32 // Trusted API.
33 virtual void GrantUniversalAccess() = 0;
34 virtual void SetStatusCallback(PP_URLLoaderTrusted_StatusCallback cb) = 0;
37 } // namespace thunk
38 } // namespace ppapi
40 #endif // PPAPI_THUNK_URL_LOADER_API_H_