diff options
author | munjal@chromium.org <munjal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-13 19:40:59 +0000 |
---|---|---|
committer | munjal@chromium.org <munjal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-13 19:40:59 +0000 |
commit | 6d201be0c55eccdc015124e221d2559a6da7fef0 (patch) | |
tree | 121e988c25e62017a08bcbe908a4e6a5f78d34f8 /chrome/browser/sync/syncable/directory_manager.h | |
parent | dc9711fe5e00639471fd0edf195a4ada4f7d994d (diff) | |
download | chromium_src-6d201be0c55eccdc015124e221d2559a6da7fef0.zip chromium_src-6d201be0c55eccdc015124e221d2559a6da7fef0.tar.gz chromium_src-6d201be0c55eccdc015124e221d2559a6da7fef0.tar.bz2 |
Part 1 of removing PathSTring. I scrubbed files that are not
in chron's CL to avoid merge.
Review URL: http://codereview.chromium.org/393011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31930 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/syncable/directory_manager.h')
-rw-r--r-- | chrome/browser/sync/syncable/directory_manager.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/chrome/browser/sync/syncable/directory_manager.h b/chrome/browser/sync/syncable/directory_manager.h index 5d9a106..a977dde 100644 --- a/chrome/browser/sync/syncable/directory_manager.h +++ b/chrome/browser/sync/syncable/directory_manager.h @@ -12,6 +12,7 @@ #ifndef CHROME_BROWSER_SYNC_SYNCABLE_DIRECTORY_MANAGER_H_ #define CHROME_BROWSER_SYNC_SYNCABLE_DIRECTORY_MANAGER_H_ +#include <string> #include <vector> #include "base/atomicops.h" @@ -36,7 +37,7 @@ struct DirectoryManagerEvent { CLOSED_ALL, SHUTDOWN, } what_happened; - PathString dirname; + std::string dirname; DirOpenResult error; // Only for OPEN_FAILED. typedef DirectoryManagerEvent EventType; static inline bool IsChannelShutdownEvent(const EventType& event) { @@ -60,23 +61,23 @@ class DirectoryManager { // Opens a directory. Returns false on error. // Name parameter is the the user's login, // MUST already have been converted to a common case. - bool Open(const PathString& name); + bool Open(const std::string& name); // Marks a directory as closed. It might take a while until all the // file handles and resources are freed by other threads. - void Close(const PathString& name); + void Close(const std::string& name); // Should be called at App exit. void FinalSaveChangesForAll(); // Gets the list of currently open directory names. - typedef std::vector<PathString> DirNames; + typedef std::vector<std::string> DirNames; void GetOpenDirectories(DirNames* result); Channel* channel() const { return channel_; } protected: - DirOpenResult OpenImpl(const PathString& name, const FilePath& path, + DirOpenResult OpenImpl(const std::string& name, const FilePath& path, bool* was_open); // Helpers for friend class ScopedDirLookup: @@ -98,7 +99,7 @@ class DirectoryManager { class ScopedDirLookup { public: - ScopedDirLookup(DirectoryManager* dirman, const PathString& name); + ScopedDirLookup(DirectoryManager* dirman, const std::string& name); ~ScopedDirLookup(); inline bool good() { |