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

Side by Side Diff: ppapi/thunk/ppb_url_loader_api.h

Issue 14371021: Implementation of URLLoader using PluginResource/ResourceHost. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase, track src/webkit gypi changes. Created 7 years, 7 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/thunk/interfaces_ppb_public_stable.h ('k') | ppapi/thunk/resource_creation_api.h » ('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 #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 "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "ppapi/c/ppb_url_loader.h" 9 #include "ppapi/c/ppb_url_loader.h"
10 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" 10 #include "ppapi/c/trusted/ppb_url_loader_trusted.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 int32_t bytes_to_read, 42 int32_t bytes_to_read,
43 scoped_refptr<TrackedCallback> callback) = 0; 43 scoped_refptr<TrackedCallback> callback) = 0;
44 virtual int32_t FinishStreamingToFile( 44 virtual int32_t FinishStreamingToFile(
45 scoped_refptr<TrackedCallback> callback) = 0; 45 scoped_refptr<TrackedCallback> callback) = 0;
46 virtual void Close() = 0; 46 virtual void Close() = 0;
47 47
48 // Trusted API. 48 // Trusted API.
49 virtual void GrantUniversalAccess() = 0; 49 virtual void GrantUniversalAccess() = 0;
50 virtual void RegisterStatusCallback( 50 virtual void RegisterStatusCallback(
51 PP_URLLoaderTrusted_StatusCallback cb) = 0; 51 PP_URLLoaderTrusted_StatusCallback cb) = 0;
52
53 // Internal function. This will fill in the given response info data and
54 // return true on sucesss. If the dowbload was to a file, there will be one
55 // plugin reference transferred to the caller. On failure, returns false.
56 //
57 // If body_as_file_ref is non-zero, this will transfer one plugin reference
58 // to that object to the caller.
59 virtual bool GetResponseInfoData(URLResponseInfoData* data) = 0;
60 }; 52 };
61 53
62 } // namespace thunk 54 } // namespace thunk
63 } // namespace ppapi 55 } // namespace ppapi
64 56
65 #endif // PPAPI_THUNK_URL_LOADER_API_H_ 57 #endif // PPAPI_THUNK_URL_LOADER_API_H_
OLDNEW
« no previous file with comments | « ppapi/thunk/interfaces_ppb_public_stable.h ('k') | ppapi/thunk/resource_creation_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698