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

Side by Side Diff: ppapi/api/ppp_instance.idl

Issue 7576026: PPAPI: header comments on when PPP_Instance::DidDestroy and PPP_ShutdownModule (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
« no previous file with comments | « ppapi/api/ppp.idl ('k') | ppapi/c/ppp.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) 2011 The Chromium Authors. All rights reserved. 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 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 /** 6 /**
7 * This file defines the <code>PPP_Instance</code> structure - a series of 7 * This file defines the <code>PPP_Instance</code> structure - a series of
8 * pointers to methods that you must implement in your module. 8 * pointers to methods that you must implement in your module.
9 */ 9 */
10 10
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 * DidDestroy() is an instance destruction handler. This function is called 82 * DidDestroy() is an instance destruction handler. This function is called
83 * in many cases (see below) when a module instance is destroyed. It will be 83 * in many cases (see below) when a module instance is destroyed. It will be
84 * called even if DidCreate() returned failure. 84 * called even if DidCreate() returned failure.
85 * 85 *
86 * Generally you will handle this call by deallocating the tracking 86 * Generally you will handle this call by deallocating the tracking
87 * information and the <code>PP_Instance</code> mapping you created in the 87 * information and the <code>PP_Instance</code> mapping you created in the
88 * DidCreate() call. You can also free resources associated with this 88 * DidCreate() call. You can also free resources associated with this
89 * instance but this isn't required; all resources associated with the deleted 89 * instance but this isn't required; all resources associated with the deleted
90 * instance will be automatically freed when this function returns. 90 * instance will be automatically freed when this function returns.
91 * 91 *
92 * The instance identifier will still be valid during this call so the module 92 * The instance identifier will still be valid during this call, so the module
93 * can perform cleanup-related tasks. Once this function returns, the 93 * can perform cleanup-related tasks. Once this function returns, the
94 * <code>PP_Instance</code> handle will be invalid. This means that you can't 94 * <code>PP_Instance</code> handle will be invalid. This means that you can't
95 * do any asynchronous operations like network requests or file writes from 95 * do any asynchronous operations like network requests, file writes or
96 * this function since they will be immediately canceled. 96 * messaging from this function since they will be immediately canceled.
97 * 97 *
98 * <strong>Note:</strong> This function may be skipped in certain 98 * <strong>Note:</strong> This function will always be skipped on untrusted
99 * circumstances when Chrome does "fast shutdown". Fast shutdown will happen 99 * (Native Client) implementations. This function may be skipped on trusted
100 * in some cases when all module instances are being deleted, and no cleanup 100 * implementations in certain circumstances when Chrome does "fast shutdown"
101 * functions will be called. The module will just be unloaded and the process 101 * of a web page. Fast shutdown will happen in some cases when all module
102 * terminated. 102 * instances are being deleted, and no cleanup functions will be called.
103 * The module will just be unloaded and the process terminated.
103 * 104 *
104 * @param[in] instance A <code>PP_Instance</code> indentifying one instance 105 * @param[in] instance A <code>PP_Instance</code> indentifying one instance
105 * of a module. 106 * of a module.
106 */ 107 */
107 void DidDestroy( 108 void DidDestroy(
108 /* A PP_Instance indentifying one instance of a module. */ 109 /* A PP_Instance indentifying one instance of a module. */
109 [in] PP_Instance instance); 110 [in] PP_Instance instance);
110 111
111 /** 112 /**
112 * DidChangeView() is called when the position, the size, of the clip 113 * DidChangeView() is called when the position, the size, of the clip
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 [in] PP_Resource url_loader); 215 [in] PP_Resource url_loader);
215 216
216 }; 217 };
217 218
218 #inline c 219 #inline c
219 220
220 typedef struct PPP_Instance PPP_Instance_1_0; 221 typedef struct PPP_Instance PPP_Instance_1_0;
221 222
222 #endinl 223 #endinl
223 224
OLDNEW
« no previous file with comments | « ppapi/api/ppp.idl ('k') | ppapi/c/ppp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698