Home
last modified time | relevance | path

Searched refs:SharedBuffer (Results 1 – 25 of 139) sorted by relevance

123456

/external/chromium_org/third_party/WebKit/Source/platform/
DSharedBuffer.h41 class PLATFORM_EXPORT SharedBuffer : public RefCounted<SharedBuffer> {
43 static PassRefPtr<SharedBuffer> create() { return adoptRef(new SharedBuffer); } in create()
44 static PassRefPtr<SharedBuffer> create(size_t size) { return adoptRef(new SharedBuffer(size)); } in create()
45 …static PassRefPtr<SharedBuffer> create(const char* c, int i) { return adoptRef(new SharedBuffer(c,… in create()
46 …static PassRefPtr<SharedBuffer> create(const unsigned char* c, int i) { return adoptRef(new Shared… in create()
48 …static PassRefPtr<SharedBuffer> createPurgeable(const char* c, int i) { return adoptRef(new Shared… in createPurgeable()
50 static PassRefPtr<SharedBuffer> adoptVector(Vector<char>&);
52 ~SharedBuffer();
63 void append(PassRefPtr<SharedBuffer>);
69 PassRefPtr<SharedBuffer> copy() const;
[all …]
DSharedBuffer.cpp73 static HashSet<SharedBuffer*>& liveBuffers() in liveBuffers()
75 DEFINE_STATIC_LOCAL(HashSet<SharedBuffer*>, buffers, ()); in liveBuffers()
79 static bool sizeComparator(SharedBuffer* a, SharedBuffer* b) in sizeComparator()
84 static CString snippetForBuffer(SharedBuffer* sharedBuffer) in snippetForBuffer()
112 Vector<SharedBuffer*> buffers; in printStats()
113 …for (HashSet<SharedBuffer*>::const_iterator iter = liveBuffers().begin(); iter != liveBuffers().en… in printStats()
124 static void didCreateSharedBuffer(SharedBuffer* buffer) in didCreateSharedBuffer()
132 static void willDestroySharedBuffer(SharedBuffer* buffer) in willDestroySharedBuffer()
140 SharedBuffer::SharedBuffer() in SharedBuffer() function in blink::SharedBuffer
149 SharedBuffer::SharedBuffer(size_t size) in SharedBuffer() function in blink::SharedBuffer
[all …]
DSharedBufferTest.cpp55 RefPtr<SharedBuffer> sharedBuffer = SharedBuffer::create(testData0, strlen(testData0)); in TEST()
78 RefPtr<SharedBuffer> sharedBuffer = SharedBuffer::adoptVector(vector0); in TEST()
106 RefPtr<SharedBuffer> sharedBuffer = SharedBuffer::create(testData.data(), length); in TEST()
113 RefPtr<SharedBuffer> clone = sharedBuffer->copy(); in TEST()
124 RefPtr<SharedBuffer> sharedBuffer = SharedBuffer::create(length); in TEST()
143 RefPtr<SharedBuffer> sharedBuffer = SharedBuffer::createPurgeable(testData.data(), length); in TEST()
DSharedBufferChunkReader.h40 class SharedBuffer; variable
44 SharedBufferChunkReader(SharedBuffer*, const Vector<char>& separator);
45 SharedBufferChunkReader(SharedBuffer*, const char* separator);
61 SharedBuffer* m_buffer;
/external/chromium_org/third_party/WebKit/Source/core/page/
DPagePopupClient.h53 virtual void writeDocument(SharedBuffer*) = 0;
75 static void addString(const String&, SharedBuffer*);
76 static void addJavaScriptString(const String&, SharedBuffer*);
77 static void addProperty(const char* name, const String& value, SharedBuffer*);
78 static void addProperty(const char* name, int value, SharedBuffer*);
79 static void addProperty(const char* name, unsigned value, SharedBuffer*);
80 static void addProperty(const char* name, bool value, SharedBuffer*);
81 static void addProperty(const char* name, const Vector<String>& values, SharedBuffer*);
82 static void addProperty(const char* name, const IntRect&, SharedBuffer*);
85 inline void PagePopupClient::addString(const String& str, SharedBuffer* data) in addString()
DPagePopupClient.cpp40 void PagePopupClient::addJavaScriptString(const String& str, SharedBuffer* data) in addJavaScriptString()
54 void PagePopupClient::addProperty(const char* name, const String& value, SharedBuffer* data) in addProperty()
62 void PagePopupClient::addProperty(const char* name, int value, SharedBuffer* data) in addProperty()
70 void PagePopupClient::addProperty(const char* name, unsigned value, SharedBuffer* data) in addProperty()
78 void PagePopupClient::addProperty(const char* name, bool value, SharedBuffer* data) in addProperty()
89 void PagePopupClient::addProperty(const char* name, const Vector<String>& values, SharedBuffer* dat… in addProperty()
101 void PagePopupClient::addProperty(const char* name, const IntRect& rect, SharedBuffer* data) in addProperty()
/external/chromium_org/third_party/WebKit/Source/platform/graphics/
DThreadSafeDataTransportTest.cpp42 RefPtr<SharedBuffer> buffer = SharedBuffer::create(testString, sizeof(testString)); in TEST()
47 SharedBuffer* tempBuffer = 0; in TEST()
61 RefPtr<SharedBuffer> buffer1 = SharedBuffer::create(testString1, sizeof(testString1) - 1); in TEST()
63 RefPtr<SharedBuffer> buffer2 = SharedBuffer::create(testString2, sizeof(testString2) - 1); in TEST()
65 RefPtr<SharedBuffer> buffer3 = SharedBuffer::create(testString3, sizeof(testString3) - 1); in TEST()
72 SharedBuffer* tempBuffer = 0; in TEST()
DThreadSafeDataTransport.h38 class SharedBuffer; variable
53 void setData(SharedBuffer*, bool allDataReceived);
56 void data(SharedBuffer**, bool* allDataReceived);
65 Vector<RefPtr<SharedBuffer> > m_newBufferQueue;
66 RefPtr<SharedBuffer> m_readBuffer;
DThreadSafeDataTransport.cpp35 : m_readBuffer(SharedBuffer::create()) in ThreadSafeDataTransport()
45 void ThreadSafeDataTransport::setData(SharedBuffer* buffer, bool allDataReceived) in setData()
48 Vector<RefPtr<SharedBuffer> > newBufferQueue; in setData()
53 newBufferQueue.append(SharedBuffer::create(segment, length)); in setData()
61 void ThreadSafeDataTransport::data(SharedBuffer** buffer, bool* allDataReceived) in data()
65 Vector<RefPtr<SharedBuffer> > newBufferQueue; in data()
DImageFrameGenerator.h46 class SharedBuffer; variable
59 …static PassRefPtr<ImageFrameGenerator> create(const SkISize& fullSize, PassRefPtr<SharedBuffer> da…
64 …ImageFrameGenerator(const SkISize& fullSize, PassRefPtr<SharedBuffer>, bool allDataReceived, bool …
77 void setData(PassRefPtr<SharedBuffer>, bool allDataReceived);
80 void copyData(RefPtr<SharedBuffer>*, bool* allDataReceived);
DDeferredImageDecoder.h43 class SharedBuffer; variable
49 …static PassOwnPtr<DeferredImageDecoder> create(const SharedBuffer& data, ImageSource::AlphaOption,…
62 void setData(SharedBuffer& data, bool allDataReceived);
87 RefPtr<SharedBuffer> m_data;
/external/chromium_org/third_party/WebKit/Source/platform/image-decoders/gif/
DGIFImageDecoderTest.cpp50 PassRefPtr<SharedBuffer> readFile(const char* fileName) in readFile()
68 void createDecodingBaseline(SharedBuffer* data, Vector<unsigned>* baselineHashes) in createDecodingBaseline()
83 RefPtr<SharedBuffer> fullData = readFile(gifFile); in testRandomFrameDecode()
115 RefPtr<SharedBuffer> data = readFile(gifFile); in testRandomDecodeAfterClearFrameBufferCache()
142 RefPtr<SharedBuffer> data = readFile("/LayoutTests/fast/images/resources/animated.gif"); in TEST()
168 RefPtr<SharedBuffer> data = readFile("/LayoutTests/fast/images/resources/animated.gif"); in TEST()
192 RefPtr<SharedBuffer> data = readFile("/LayoutTests/fast/images/resources/animated.gif"); in TEST()
199 RefPtr<SharedBuffer> tempData = SharedBuffer::create(data->data(), length); in TEST()
217 …RefPtr<SharedBuffer> data = readFile("/LayoutTests/fast/images/resources/animated-gif-with-offsets… in TEST()
225 RefPtr<SharedBuffer> tempData = SharedBuffer::create(data->data(), length); in TEST()
[all …]
/external/chromium_org/mojo/public/cpp/system/
Dbuffer.h84 class SharedBuffer {
86 explicit SharedBuffer(uint64_t num_bytes);
87 SharedBuffer(uint64_t num_bytes,
89 ~SharedBuffer();
94 inline SharedBuffer::SharedBuffer(uint64_t num_bytes) { in SharedBuffer() function
100 inline SharedBuffer::SharedBuffer( in SharedBuffer() function
108 inline SharedBuffer::~SharedBuffer() { in ~SharedBuffer()
/external/chromium_org/third_party/WebKit/Source/platform/image-decoders/webp/
DWEBPImageDecoderTest.cpp52 PassRefPtr<SharedBuffer> readFile(const char* fileName) in readFile()
70 void createDecodingBaseline(SharedBuffer* data, Vector<unsigned>* baselineHashes) in createDecodingBaseline()
85 RefPtr<SharedBuffer> fullData = readFile(webpFile); in testRandomFrameDecode()
117 RefPtr<SharedBuffer> data = readFile(webpFile); in testRandomDecodeAfterClearFrameBufferCache()
141 RefPtr<SharedBuffer> data = readFile(webpFile); in testDecodeAfterReallocatingData()
149 RefPtr<SharedBuffer> reallocatedData = data.get()->copy(); in testDecodeAfterReallocatingData()
163 RefPtr<SharedBuffer> data = readFile(webpFile); in testByteByByteDecode()
171 RefPtr<SharedBuffer> tempData = SharedBuffer::create(data->data(), length); in testByteByByteDecode()
197 RefPtr<SharedBuffer> data = readFile(webpFile); in testInvalidImage()
249 RefPtr<SharedBuffer> data = readFile(webpFile); in testAlphaBlending()
[all …]
/external/chromium_org/third_party/WebKit/Source/web/tests/
DOpenTypeVerticalDataTest.cpp42 template <typename T> const T* validateOffset(const SharedBuffer& buffer, uint16_t offset) const in validateOffset()
50 RefPtr<SharedBuffer> buffer = SharedBuffer::create(sizeof(TestTable)); in TEST()
54 buffer = SharedBuffer::create(sizeof(TestTable) - 1); in TEST()
58 buffer = SharedBuffer::create(sizeof(TestTable) + 1); in TEST()
65 RefPtr<SharedBuffer> buffer = SharedBuffer::create(sizeof(TestTable)); in TEST()
DWebImageTest.cpp45 static PassRefPtr<SharedBuffer> readFile(const char* fileName) in readFile()
56 RefPtr<SharedBuffer> data = readFile("white-1x1.png"); in TEST()
67 RefPtr<SharedBuffer> data = readFile("black-and-white.ico"); in TEST()
82 RefPtr<SharedBuffer> data = readFile("valid_header_missing_bitmap.ico"); in TEST()
/external/chromium_org/third_party/WebKit/Source/core/xml/parser/
DSharedBufferReaderTest.cpp53 RefPtr<SharedBuffer> sharedBuffer = SharedBuffer::create(); in TEST()
62 RefPtr<SharedBuffer> sharedBuffer = SharedBuffer::create(testData, sizeof(testData)); in TEST()
88 RefPtr<SharedBuffer> sharedBuffer = SharedBuffer::create(&testData[0], testData.size()); in TEST()
107 RefPtr<SharedBuffer> sharedBuffer = SharedBuffer::create(&testData[0], testData.size()); in TEST()
DSharedBufferReader.h40 class SharedBuffer; variable
46 SharedBufferReader(PassRefPtr<SharedBuffer>);
54 RefPtr<SharedBuffer> m_buffer;
/external/chromium_org/third_party/WebKit/Source/platform/exported/
DWebData.cpp50 m_private = SharedBuffer::create(data, size); in assign()
67 WebData::WebData(const PassRefPtr<SharedBuffer>& buffer) in WebData()
72 WebData& WebData::operator=(const PassRefPtr<SharedBuffer>& buffer) in operator =()
78 WebData::operator PassRefPtr<SharedBuffer>() const in operator PassRefPtr<SharedBuffer>()
80 return PassRefPtr<SharedBuffer>(m_private.get()); in operator PassRefPtr<SharedBuffer>()
/external/chromium_org/third_party/WebKit/Source/platform/mhtml/
DArchiveResource.h43 …static PassRefPtrWillBeRawPtr<ArchiveResource> create(PassRefPtr<SharedBuffer>, const KURL&, const…
44 static PassRefPtrWillBeRawPtr<ArchiveResource> create(PassRefPtr<SharedBuffer>, const KURL&,
52 SharedBuffer* data() const { return m_data.get(); } in data()
60 …ArchiveResource(PassRefPtr<SharedBuffer>, const KURL&, const AtomicString& mimeType, const AtomicS…
64 RefPtr<SharedBuffer> m_data;
/external/chromium_org/third_party/WebKit/Source/platform/fonts/opentype/
DOpenTypeSanitizer.h38 class SharedBuffer; variable
42 explicit OpenTypeSanitizer(SharedBuffer* buffer) in OpenTypeSanitizer()
47 PassRefPtr<SharedBuffer> sanitize();
52 SharedBuffer* const m_buffer;
DOpenTypeVerticalData.cpp135 …const CoverageTable* coverage(const SharedBuffer& buffer) const { return validateOffset<CoverageTa… in coverage()
150 bool getSubstitutions(HashMap<Glyph, Glyph>* map, const SharedBuffer& buffer) const in getSubstitutions()
213 const LookupTable* lookup(uint16_t index, const SharedBuffer& buffer) const in lookup()
227 …stitutions(const LookupList* lookups, HashMap<Glyph, Glyph>* map, const SharedBuffer& buffer) const in getGlyphSubstitutions()
248 const FeatureTable* feature(uint16_t index, OpenType::Tag tag, const SharedBuffer& buffer) const in feature()
258 const FeatureTable* findFeature(OpenType::Tag tag, const SharedBuffer& buffer) const in findFeature()
274 …e* feature(OpenType::Tag featureTag, const FeatureList* features, const SharedBuffer& buffer) const in feature()
296 const LangSysTable* defaultLangSys(const SharedBuffer& buffer) const in defaultLangSys()
317 const ScriptTable* script(OpenType::Tag tag, const SharedBuffer& buffer) const in script()
329 const ScriptTable* defaultScript(const SharedBuffer& buffer) const in defaultScript()
[all …]
/external/chromium_org/third_party/WebKit/public/platform/
DWebData.h39 class SharedBuffer; variable
82 WebData(const PassRefPtr<SharedBuffer>&);
83 WebData& operator=(const PassRefPtr<SharedBuffer>&);
84 operator PassRefPtr<SharedBuffer>() const;
101 WebPrivatePtr<SharedBuffer> m_private;
/external/chromium_org/third_party/WebKit/Source/modules/indexeddb/
DIDBRequest.h53 class SharedBuffer; variable
99 …ess(PassOwnPtr<WebIDBCursor>, IDBKey*, IDBKey* primaryKey, PassRefPtr<SharedBuffer>, PassOwnPtr<Ve…
101 virtual void onSuccess(PassRefPtr<SharedBuffer>, PassOwnPtr<Vector<WebBlobInfo> >);
102 …virtual void onSuccess(PassRefPtr<SharedBuffer>, PassOwnPtr<Vector<WebBlobInfo> >, IDBKey*, const …
105 …virtual void onSuccess(IDBKey*, IDBKey* primaryKey, PassRefPtr<SharedBuffer>, PassOwnPtr<Vector<We…
145 …void setResultCursor(IDBCursor*, IDBKey*, IDBKey* primaryKey, PassRefPtr<SharedBuffer> value, Pass…
165 RefPtr<SharedBuffer> m_cursorValue;
DIDBAny.h63 static IDBAny* create(PassRefPtr<SharedBuffer> value, const Vector<WebBlobInfo>* blobInfo) in create()
76 …static IDBAny* create(PassRefPtr<SharedBuffer> value, const Vector<WebBlobInfo>* blobInfo, IDBKey*… in create()
111 SharedBuffer* buffer() const;
129 IDBAny(PassRefPtr<SharedBuffer>, const Vector<WebBlobInfo>*);
130 IDBAny(PassRefPtr<SharedBuffer>, const Vector<WebBlobInfo>*, IDBKey*, const IDBKeyPath&);
144 const RefPtr<SharedBuffer> m_buffer;

123456