Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(919)

Unified Diff: courgette/streams.h

Issue 6597038: Implementation of an STL compatible allocator for Courgette on Windows.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« courgette/memory_allocator.cc ('K') | « courgette/memory_allocator.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/streams.h
===================================================================
--- courgette/streams.h (revision 76129)
+++ courgette/streams.h (working copy)
@@ -18,6 +18,7 @@
#include "base/basictypes.h"
+#include "courgette/memory_allocator.h"
#include "courgette/region.h"
namespace courgette {
@@ -151,7 +152,11 @@
void Retire();
private:
- std::string buffer_; // Use a string to manage the stream's memory.
+ // Use a string to manage the stream's memory.
+ typedef std::basic_string<char,
+ std::char_traits<char>,
+ MemoryAllocator<char> > SinkBuffer;
+ SinkBuffer buffer_;
DISALLOW_COPY_AND_ASSIGN(SinkStream);
};
« courgette/memory_allocator.cc ('K') | « courgette/memory_allocator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698