Home | History | Annotate | Download | only in loader

Lines Matching refs:ResourceBuffer

17 // ResourceBuffer implements a simple "circular buffer" allocation strategy.
20 // You can think of the ResourceBuffer as a FIFO. The Allocate method reserves
25 // ResourceBuffer is reference-counted for the benefit of consumers, who need
26 // to ensure that ResourceBuffer stays alive while they are using its memory.
30 // // Writes data into the ResourceBuffer, and returns the location (byte
31 // // offset and count) of the bytes written into the ResourceBuffer's shared
33 // void WriteToBuffer(ResourceBuffer* buf, int* offset, int* count) {
53 // NOTE: As the above example illustrates, the ResourceBuffer keeps track of
55 // just helps the ResourceBuffer optimize storage and be more aggressive about
58 class CONTENT_EXPORT ResourceBuffer
59 : public base::RefCountedThreadSafe<ResourceBuffer> {
61 ResourceBuffer();
103 friend class base::RefCountedThreadSafe<ResourceBuffer>;
104 ~ResourceBuffer();
123 DISALLOW_COPY_AND_ASSIGN(ResourceBuffer);