Searched refs:RefCountedBytes (Results 1 - 25 of 75) sorted by relevance

123

/external/chromium_org/base/memory/
H A Dref_counted_memory.cc34 RefCountedBytes::RefCountedBytes() {} function in class:base::RefCountedBytes
36 RefCountedBytes::RefCountedBytes(const std::vector<unsigned char>& initializer) function in class:base::RefCountedBytes
40 RefCountedBytes::RefCountedBytes(const unsigned char* p, size_t size) function in class:base::RefCountedBytes
43 RefCountedBytes* RefCountedBytes::TakeVector(
45 RefCountedBytes* bytes = new RefCountedBytes;
[all...]
H A Dref_counted_memory.h68 class BASE_EXPORT RefCountedBytes : public RefCountedMemory { class in namespace:base
70 RefCountedBytes();
72 // Constructs a RefCountedBytes object by _copying_ from |initializer|.
73 explicit RefCountedBytes(const std::vector<unsigned char>& initializer);
75 // Constructs a RefCountedBytes object by copying |size| bytes from |p|.
76 RefCountedBytes(const unsigned char* p, size_t size);
78 // Constructs a RefCountedBytes object by performing a swap. (To non
79 // destructively build a RefCountedBytes, use the constructor that takes a
81 static RefCountedBytes* TakeVector(std::vector<unsigned char>* to_destroy);
91 virtual ~RefCountedBytes();
[all...]
H A Dref_counted_memory_unittest.cc19 TEST(RefCountedMemoryUnitTest, RefCountedBytes) {
23 scoped_refptr<RefCountedMemory> mem = RefCountedBytes::TakeVector(&data);
34 mem2 = new RefCountedBytes(data2, 3);
72 scoped_refptr<RefCountedMemory> mem2 = RefCountedBytes::TakeVector(&d2);
/external/chromium_org/chrome/browser/printing/
H A Dprint_preview_data_service.h18 class RefCountedBytes;
32 scoped_refptr<base::RefCountedBytes>* data);
40 const base::RefCountedBytes* data);
H A Dprint_preview_data_service.cc33 scoped_refptr<base::RefCountedBytes>* data) {
43 void SetPreviewDataForIndex(int index, const base::RefCountedBytes* data) {
47 page_data_map_[index] = const_cast<base::RefCountedBytes*>(data);
66 typedef std::map<int, scoped_refptr<base::RefCountedBytes> >
95 scoped_refptr<base::RefCountedBytes>* data_bytes) {
105 const base::RefCountedBytes* data_bytes) {
H A Dprint_preview_message_handler.cc48 base::RefCountedBytes* GetDataFromHandle(base::SharedMemoryHandle handle,
59 return base::RefCountedBytes::TakeVector(&data);
127 base::RefCountedBytes* data_bytes =
152 base::RefCountedBytes* data_bytes =
/external/chromium_org/ui/snapshot/
H A Dsnapshot_async.cc37 scoped_refptr<base::RefCountedBytes> EncodeBitmap(const SkBitmap& bitmap) {
38 scoped_refptr<base::RefCountedBytes> png_data(new base::RefCountedBytes);
55 return scoped_refptr<base::RefCountedBytes>();
88 callback.Run(scoped_refptr<base::RefCountedBytes>());
H A Dsnapshot.h57 typedef base::Callback<void(scoped_refptr<base::RefCountedBytes> png_data)>
H A Dsnapshot_win.cc137 callback.Run(scoped_refptr<base::RefCountedBytes>());
146 callback.Run(scoped_refptr<base::RefCountedBytes>());
/external/chromium_org/components/enhanced_bookmarks/
H A Dimage_store_util.cc27 return scoped_refptr<base::RefCountedMemory>(new base::RefCountedBytes(data));
/external/chromium_org/sync/internal_api/attachments/
H A Dfake_attachment_downloader.cc25 scoped_refptr<base::RefCountedMemory> data(new base::RefCountedBytes());
/external/chromium_org/chrome/browser/ui/webui/print_preview/
H A Dprint_preview_ui_unittest.cc29 base::RefCountedBytes* CreateTestData() {
33 return new base::RefCountedBytes(preview_data);
87 scoped_refptr<base::RefCountedBytes> data;
93 scoped_refptr<base::RefCountedBytes> dummy_data = CreateTestData();
105 dummy_data = new base::RefCountedBytes();
140 scoped_refptr<base::RefCountedBytes> data;
144 scoped_refptr<base::RefCountedBytes> dummy_data = CreateTestData();
H A Dprint_preview_ui.h24 class RefCountedBytes;
44 scoped_refptr<base::RefCountedBytes>* data);
50 const base::RefCountedBytes* data);
/external/chromium_org/athena/content/
H A Dcontent_proxy.h103 scoped_refptr<base::RefCountedBytes> png_data_;
H A Dcontent_proxy.cc43 scoped_refptr<base::RefCountedBytes> data() const { return data_; }
55 data_ = new base::RefCountedBytes(data);
58 scoped_refptr<base::RefCountedBytes> data_;
/external/chromium_org/chrome/browser/chromeos/extensions/
H A Dwallpaper_api.h43 void ThumbnailGenerated(base::RefCountedBytes* data);
/external/chromium_org/chrome/browser/chromeos/login/
H A Dscreenshot_tester.h39 typedef scoped_refptr<base::RefCountedBytes> PNGFile;
/external/chromium_org/chrome/browser/ui/webui/
H A Dfileicon_source.cc103 scoped_refptr<base::RefCountedBytes> icon_data(new base::RefCountedBytes);
151 scoped_refptr<base::RefCountedBytes> icon_data(new base::RefCountedBytes);
/external/chromium_org/chrome/browser/history/
H A Dthumbnail_database_unittest.cc201 scoped_refptr<base::RefCountedBytes> favicon(new base::RefCountedBytes(data));
251 scoped_refptr<base::RefCountedBytes> favicon(new base::RefCountedBytes(data));
281 scoped_refptr<base::RefCountedBytes> favicon(new base::RefCountedBytes(data));
386 scoped_refptr<base::RefCountedBytes> favicon1(
387 new base::RefCountedBytes(data1));
389 scoped_refptr<base::RefCountedBytes> favicon2(
390 new base::RefCountedBytes(data
[all...]
H A Dtop_sites_impl.h36 class RefCountedBytes;
128 // A version of SetPageThumbnail that takes RefCountedBytes as
137 scoped_refptr<base::RefCountedBytes>* bytes);
/external/chromium_org/chrome/browser/ui/webui/options/chromeos/
H A Duser_image_source.cc45 return new base::RefCountedBytes(user->raw_image());
/external/chromium_org/ui/gfx/image/
H A Dimage.cc154 scoped_refptr<base::RefCountedBytes> png_bytes(new base::RefCountedBytes());
486 scoped_refptr<base::RefCountedBytes> raw_data(new base::RefCountedBytes());
609 return new base::RefCountedBytes();
620 return new base::RefCountedBytes();
655 return new base::RefCountedBytes();
687 scoped_refptr<base::RefCountedBytes> copy(new base::RefCountedBytes());
/external/chromium_org/chrome/browser/local_discovery/
H A Dprivet_http.h15 class RefCountedBytes;
161 virtual void SetData(const scoped_refptr<base::RefCountedBytes>& data) = 0;
/external/chromium_org/content/browser/web_contents/aura/
H A Doverscroll_navigation_overlay_unittest.cc40 scoped_refptr<base::RefCountedBytes> png_bytes =
41 base::RefCountedBytes::TakeVector(&png_data);
/external/chromium_org/chrome/browser/ui/ash/
H A Dscreenshot_taker.h79 scoped_refptr<base::RefCountedBytes> png_data);

Completed in 478 milliseconds

123