OLD | NEW |
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 module extensions { | 5 module extensions { |
6 | 6 |
7 // A stashed client object. This contains the serialized bytes and handles, | 7 // A stashed client object. This contains the serialized bytes and handles, |
8 // stored in |data| and |handles|, respectively, of a mojo struct of the | 8 // stored in |data| and |handles|, respectively, of a mojo struct of the |
9 // serialized representation of the client object. | 9 // serialized representation of the client object. |
10 struct StashedObject { | 10 struct StashedObject { |
(...skipping 12 matching lines...) Expand all Loading... |
23 // Adds |stashed_objects| to the stash. StashedObjects are stored in memory in | 23 // Adds |stashed_objects| to the stash. StashedObjects are stored in memory in |
24 // the browser process for as long as the extension that owns them remains | 24 // the browser process for as long as the extension that owns them remains |
25 // enabled and the browser process runs. | 25 // enabled and the browser process runs. |
26 AddToStash(array<StashedObject> stashed_objects); | 26 AddToStash(array<StashedObject> stashed_objects); |
27 | 27 |
28 // Returns all stashed objects. | 28 // Returns all stashed objects. |
29 RetrieveStash() => (array<StashedObject> stash); | 29 RetrieveStash() => (array<StashedObject> stash); |
30 }; | 30 }; |
31 | 31 |
32 } | 32 } |
OLD | NEW |