OLD | NEW |
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>PPB_Core</code> interface defined by the browser | 7 * This file defines the <code>PPB_Core</code> interface defined by the browser |
8 * and containing pointers to functions related to memory management, time, and | 8 * and containing pointers to functions related to memory management, time, and |
9 * threads. | 9 * threads. |
10 */ | 10 */ |
11 | 11 |
12 label Chrome { | 12 label Chrome { |
13 M14 = 1.0 | 13 M14 = 1.0 |
14 }; | 14 }; |
15 | 15 |
16 /** | 16 /** |
17 * The <code>PPB_Core</code> interface contains pointers to functions related | 17 * The <code>PPB_Core</code> interface contains pointers to functions related |
18 * to memory management, time, and threads on the browser. | 18 * to memory management, time, and threads on the browser. |
19 * | 19 * |
20 */ | 20 */ |
21 interface PPB_Core { | 21 interface PPB_Core { |
22 /** | 22 /** |
23 * | 23 * |
24 * AddRefResource() adds a reference to a resource. | 24 * AddRefResource() adds a reference to a resource. |
25 * | 25 * |
26 * @param[in] config A <code>PP_Resource</code> containing the resource. | 26 * @param[in] config A <code>PP_Resource</code> corresponding to a |
| 27 * resource. |
27 */ | 28 */ |
28 void AddRefResource([in] PP_Resource resource); | 29 void AddRefResource([in] PP_Resource resource); |
29 | 30 |
30 /** | 31 /** |
31 * ReleaseResource() removes a reference from a resource. | 32 * ReleaseResource() removes a reference from a resource. |
32 * | 33 * |
33 * @param[in] config A <code>PP_Resource</code> containing the resource. | 34 * @param[in] config A <code>PP_Resource</code> corresponding to a |
| 35 * resource. |
34 */ | 36 */ |
35 void ReleaseResource([in] PP_Resource resource); | 37 void ReleaseResource([in] PP_Resource resource); |
36 | 38 |
37 /** | 39 /** |
38 * GetTime() returns the "wall clock time" according to the | 40 * GetTime() returns the "wall clock time" according to the |
39 * browser. | 41 * browser. |
40 * | 42 * |
41 * @return A <code>PP_Time</code> containing the "wall clock time" according | 43 * @return A <code>PP_Time</code> containing the "wall clock time" according |
42 * to the browser. | 44 * to the browser. |
43 */ | 45 */ |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 * | 92 * |
91 * This function is useful for implementing sanity checks, and deciding if | 93 * This function is useful for implementing sanity checks, and deciding if |
92 * dispatching using CallOnMainThread() is required. | 94 * dispatching using CallOnMainThread() is required. |
93 * | 95 * |
94 * @return A <code>PP_Bool</code> containing <code>PP_TRUE</code> if the | 96 * @return A <code>PP_Bool</code> containing <code>PP_TRUE</code> if the |
95 * current thread is the main pepper thread, otherwise <code>PP_FALSE</code>. | 97 * current thread is the main pepper thread, otherwise <code>PP_FALSE</code>. |
96 */ | 98 */ |
97 PP_Bool IsMainThread(); | 99 PP_Bool IsMainThread(); |
98 }; | 100 }; |
99 | 101 |
OLD | NEW |