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

Side by Side Diff: ppapi/c/private/ppp_pexe_stream_handler.h

Issue 447013002: Pepper: Fix caching for translated nexes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
OLDNEW
1 /* Copyright 2014 The Chromium Authors. All rights reserved. 1 /* Copyright 2014 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 5
6 /* From private/ppp_pexe_stream_handler.idl, 6 /* From private/ppp_pexe_stream_handler.idl,
7 * modified Thu Jul 10 11:05:31 2014. 7 * modified Wed Aug 6 13:11:06 2014.
8 */ 8 */
9 9
10 #ifndef PPAPI_C_PRIVATE_PPP_PEXE_STREAM_HANDLER_H_ 10 #ifndef PPAPI_C_PRIVATE_PPP_PEXE_STREAM_HANDLER_H_
11 #define PPAPI_C_PRIVATE_PPP_PEXE_STREAM_HANDLER_H_ 11 #define PPAPI_C_PRIVATE_PPP_PEXE_STREAM_HANDLER_H_
12 12
13 #include "ppapi/c/pp_macros.h" 13 #include "ppapi/c/pp_macros.h"
14 #include "ppapi/c/pp_stdint.h" 14 #include "ppapi/c/pp_stdint.h"
15 15
16 #define PPP_PEXESTREAMHANDLER_INTERFACE_1_0 "PPP_PexeStreamHandler;1.0" 16 #define PPP_PEXESTREAMHANDLER_INTERFACE_1_0 "PPP_PexeStreamHandler;1.0"
17 #define PPP_PEXESTREAMHANDLER_INTERFACE PPP_PEXESTREAMHANDLER_INTERFACE_1_0 17 #define PPP_PEXESTREAMHANDLER_INTERFACE PPP_PEXESTREAMHANDLER_INTERFACE_1_0
(...skipping 12 matching lines...) Expand all
30 */ 30 */
31 struct PPP_PexeStreamHandler_1_0 { 31 struct PPP_PexeStreamHandler_1_0 {
32 /** 32 /**
33 * Invoked as a result of a cache hit for a translated pexe. 33 * Invoked as a result of a cache hit for a translated pexe.
34 */ 34 */
35 void (*DidCacheHit)(void* user_data, PP_FileHandle nexe_file_handle); 35 void (*DidCacheHit)(void* user_data, PP_FileHandle nexe_file_handle);
36 /** 36 /**
37 * Invoked as a result of a cache miss for a translated pexe. 37 * Invoked as a result of a cache miss for a translated pexe.
38 * Provides the expected length of the pexe, as read from HTTP headers. 38 * Provides the expected length of the pexe, as read from HTTP headers.
39 */ 39 */
40 void (*DidCacheMiss)(void* user_data, int64_t expected_total_length); 40 void (*DidCacheMiss)(void* user_data,
41 int64_t expected_total_length,
42 PP_FileHandle temp_nexe_file);
41 /** 43 /**
42 * Invoked when a block of data has been downloaded. 44 * Invoked when a block of data has been downloaded.
43 * Only invoked after DidCacheMiss(). 45 * Only invoked after DidCacheMiss().
44 */ 46 */
45 void (*DidStreamData)(void* user_data, const void* data, int32_t length); 47 void (*DidStreamData)(void* user_data, const void* data, int32_t length);
46 /** 48 /**
47 * Invoked when the stream has finished downloading, regardless of whether it 49 * Invoked when the stream has finished downloading, regardless of whether it
48 * succeeded. Not invoked if DidCacheHit() was called. 50 * succeeded. Not invoked if DidCacheHit() was called.
49 */ 51 */
50 void (*DidFinishStream)(void* user_data, int32_t pp_error); 52 void (*DidFinishStream)(void* user_data, int32_t pp_error);
51 }; 53 };
52 54
53 typedef struct PPP_PexeStreamHandler_1_0 PPP_PexeStreamHandler; 55 typedef struct PPP_PexeStreamHandler_1_0 PPP_PexeStreamHandler;
54 /** 56 /**
55 * @} 57 * @}
56 */ 58 */
57 59
58 #endif /* PPAPI_C_PRIVATE_PPP_PEXE_STREAM_HANDLER_H_ */ 60 #endif /* PPAPI_C_PRIVATE_PPP_PEXE_STREAM_HANDLER_H_ */
59 61
OLDNEW
« no previous file with comments | « ppapi/api/private/ppp_pexe_stream_handler.idl ('k') | ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698