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

Unified Diff: base/file_path.h

Issue 549224: Support reordering of Browser Actions within the container. Currently does no... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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 | « no previous file | base/file_path.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/file_path.h
===================================================================
--- base/file_path.h (revision 37723)
+++ base/file_path.h (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 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.
@@ -116,6 +116,8 @@
#define FILE_PATH_USES_WIN_SEPARATORS
#endif // OS_WIN
+class Pickle;
+
// An abstraction to isolate users from the differences between native
// pathnames on different platforms.
class FilePath {
@@ -282,6 +284,15 @@
// TODO(port): remove these functions.
static FilePath FromWStringHack(const std::wstring& wstring);
+ // Static helper method to write a StringType to a pickle.
+ static void WriteStringTypeToPickle(Pickle* pickle,
+ const FilePath::StringType& path);
+ static bool ReadStringTypeFromPickle(Pickle* pickle, void** iter,
+ FilePath::StringType* path);
+
+ void WriteToPickle(Pickle* pickle);
+ bool ReadFromPickle(Pickle* pickle, void** iter);
+
// Compare two strings in the same way the file system does.
// Note that these always ignore case, even on file systems that are case-
// sensitive. If case-sensitive comparison is ever needed, add corresponding
« no previous file with comments | « no previous file | base/file_path.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698