OLD | NEW |
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 #ifndef PPAPI_THUNK_URL_LOADER_API_H_ | 5 #ifndef PPAPI_THUNK_URL_LOADER_API_H_ |
6 #define PPAPI_THUNK_URL_LOADER_API_H_ | 6 #define PPAPI_THUNK_URL_LOADER_API_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "ppapi/c/ppb_url_loader.h" | 11 #include "ppapi/c/ppb_url_loader.h" |
12 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" | 12 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" |
13 | 13 |
14 namespace ppapi { | 14 namespace ppapi { |
15 | 15 |
16 class TrackedCallback; | 16 class TrackedCallback; |
17 struct URLRequestInfoData; | 17 struct URLRequestInfoData; |
18 struct URLResponseInfoData; | |
19 | 18 |
20 namespace thunk { | 19 namespace thunk { |
21 | 20 |
22 class PPB_URLLoader_API { | 21 class PPB_URLLoader_API { |
23 public: | 22 public: |
24 virtual ~PPB_URLLoader_API() {} | 23 virtual ~PPB_URLLoader_API() {} |
25 | 24 |
26 // Open given the resource ID of a PPB_URLRequestInfo resource. | 25 // Open given the resource ID of a PPB_URLRequestInfo resource. |
27 virtual int32_t Open(PP_Resource request_id, | 26 virtual int32_t Open(PP_Resource request_id, |
28 scoped_refptr<TrackedCallback> callback) = 0; | 27 scoped_refptr<TrackedCallback> callback) = 0; |
(...skipping 21 matching lines...) Expand all Loading... |
50 // Trusted API. | 49 // Trusted API. |
51 virtual void GrantUniversalAccess() = 0; | 50 virtual void GrantUniversalAccess() = 0; |
52 virtual void RegisterStatusCallback( | 51 virtual void RegisterStatusCallback( |
53 PP_URLLoaderTrusted_StatusCallback cb) = 0; | 52 PP_URLLoaderTrusted_StatusCallback cb) = 0; |
54 }; | 53 }; |
55 | 54 |
56 } // namespace thunk | 55 } // namespace thunk |
57 } // namespace ppapi | 56 } // namespace ppapi |
58 | 57 |
59 #endif // PPAPI_THUNK_URL_LOADER_API_H_ | 58 #endif // PPAPI_THUNK_URL_LOADER_API_H_ |
OLD | NEW |