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

Unified Diff: webkit/glue/glue_serialize.cc

Issue 9447084: Refactor Pickle Read methods to use higher performance PickleIterator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile (racing with incoming CLs) Created 8 years, 9 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
« no previous file with comments | « webkit/fileapi/file_system_usage_cache.cc ('k') | webkit/glue/npruntime_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/glue_serialize.cc
diff --git a/webkit/glue/glue_serialize.cc b/webkit/glue/glue_serialize.cc
index 04a4ac45749a1e408ab38ad08f2b5f31df960b77..606ff61e955b44f609f7d92cb1ae822419c98402 100644
--- a/webkit/glue/glue_serialize.cc
+++ b/webkit/glue/glue_serialize.cc
@@ -32,16 +32,16 @@ namespace webkit_glue {
namespace {
struct SerializeObject {
- SerializeObject() : iter(NULL), version(0) {}
+ SerializeObject() : version(0) {}
SerializeObject(const char* data, int len)
- : pickle(data, len), iter(NULL), version(0) {}
+ : pickle(data, len), version(0) { iter = PickleIterator(pickle); }
std::string GetAsString() {
return std::string(static_cast<const char*>(pickle.data()), pickle.size());
}
Pickle pickle;
- mutable void* iter;
+ mutable PickleIterator iter;
mutable int version;
};
« no previous file with comments | « webkit/fileapi/file_system_usage_cache.cc ('k') | webkit/glue/npruntime_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698