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

Unified Diff: chrome/common/extensions/user_script.h

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 | « chrome/common/extensions/extension_unpacker.cc ('k') | chrome/common/extensions/user_script.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/user_script.h
diff --git a/chrome/common/extensions/user_script.h b/chrome/common/extensions/user_script.h
index 53147fc2823a18f64de8afa6a4abdeccebf2a066..47b0287e3db0d8f1cf79db74432e9db4b94e839c 100644
--- a/chrome/common/extensions/user_script.h
+++ b/chrome/common/extensions/user_script.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -16,6 +16,7 @@
#include "chrome/common/extensions/url_pattern_set.h"
class Pickle;
+class PickleIterator;
// Represents a user script, either a standalone one, or one that is part of an
// extension.
@@ -82,7 +83,7 @@ class UserScript {
// Serialization support. The content and FilePath members will not be
// serialized!
void Pickle(::Pickle* pickle) const;
- void Unpickle(const ::Pickle& pickle, void** iter);
+ void Unpickle(const ::Pickle& pickle, PickleIterator* iter);
private:
// Where the script file lives on the disk. We keep the path split so that
@@ -187,7 +188,7 @@ class UserScript {
// Deserialize the script from a pickle. Note that this always succeeds
// because presumably we were the one that pickled it, and we did it
// correctly.
- void Unpickle(const ::Pickle& pickle, void** iter);
+ void Unpickle(const ::Pickle& pickle, PickleIterator* iter);
private:
// Pickle helper functions used to pickle the individual types of components.
@@ -198,11 +199,11 @@ class UserScript {
void PickleScripts(::Pickle* pickle, const FileList& scripts) const;
// Unpickle helper functions used to unpickle individual types of components.
- void UnpickleGlobs(const ::Pickle& pickle, void** iter,
+ void UnpickleGlobs(const ::Pickle& pickle, PickleIterator* iter,
std::vector<std::string>* globs);
- void UnpickleURLPatternSet(const ::Pickle& pickle, void** iter,
+ void UnpickleURLPatternSet(const ::Pickle& pickle, PickleIterator* iter,
URLPatternSet* pattern_list);
- void UnpickleScripts(const ::Pickle& pickle, void** iter,
+ void UnpickleScripts(const ::Pickle& pickle, PickleIterator* iter,
FileList* scripts);
// The location to run the script inside the document.
« no previous file with comments | « chrome/common/extensions/extension_unpacker.cc ('k') | chrome/common/extensions/user_script.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698