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

Side by Side Diff: chrome/browser/sync/syncable/syncable.h

Issue 251080: Sync: Remove pthreads from event_sys code. Remove asynch version of GaiaAuthe... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SYNC_SYNCABLE_SYNCABLE_H_ 5 #ifndef CHROME_BROWSER_SYNC_SYNCABLE_SYNCABLE_H_
6 #define CHROME_BROWSER_SYNC_SYNCABLE_SYNCABLE_H_ 6 #define CHROME_BROWSER_SYNC_SYNCABLE_SYNCABLE_H_
7 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <bitset> 9 #include <bitset>
10 #include <iosfwd> 10 #include <iosfwd>
(...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 970
971 DirOpenResult OpenImpl(const PathString& file_path, const PathString& name); 971 DirOpenResult OpenImpl(const PathString& file_path, const PathString& name);
972 972
973 struct DirectoryEventTraits { 973 struct DirectoryEventTraits {
974 typedef DirectoryEvent EventType; 974 typedef DirectoryEvent EventType;
975 static inline bool IsChannelShutdownEvent(const DirectoryEvent& event) { 975 static inline bool IsChannelShutdownEvent(const DirectoryEvent& event) {
976 return DIRECTORY_DESTROYED == event; 976 return DIRECTORY_DESTROYED == event;
977 } 977 }
978 }; 978 };
979 public: 979 public:
980 typedef EventChannel<DirectoryEventTraits, PThreadMutex> Channel; 980 typedef EventChannel<DirectoryEventTraits, Lock> Channel;
981 typedef EventChannel<DirectoryChangeEvent, PThreadMutex> ChangesChannel; 981 typedef EventChannel<DirectoryChangeEvent, Lock> ChangesChannel;
982 typedef std::vector<int64> ChildHandles; 982 typedef std::vector<int64> ChildHandles;
983 983
984 // Returns the child meta handles for given parent id. 984 // Returns the child meta handles for given parent id.
985 void GetChildHandles(BaseTransaction*, const Id& parent_id, 985 void GetChildHandles(BaseTransaction*, const Id& parent_id,
986 const PathString& path_spec, ChildHandles* result); 986 const PathString& path_spec, ChildHandles* result);
987 void GetChildHandles(BaseTransaction*, const Id& parent_id, 987 void GetChildHandles(BaseTransaction*, const Id& parent_id,
988 ChildHandles* result); 988 ChildHandles* result);
989 void GetChildHandlesImpl(BaseTransaction* trans, const Id& parent_id, 989 void GetChildHandlesImpl(BaseTransaction* trans, const Id& parent_id,
990 PathMatcher* matcher, ChildHandles* result); 990 PathMatcher* matcher, ChildHandles* result);
991 991
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
1340 void ZeroFields(EntryKernel* entry, int first_field); 1340 void ZeroFields(EntryKernel* entry, int first_field);
1341 1341
1342 } // namespace syncable 1342 } // namespace syncable
1343 1343
1344 std::ostream& operator <<(std::ostream&, const syncable::Blob&); 1344 std::ostream& operator <<(std::ostream&, const syncable::Blob&);
1345 1345
1346 browser_sync::FastDump& operator << 1346 browser_sync::FastDump& operator <<
1347 (browser_sync::FastDump&, const syncable::Blob&); 1347 (browser_sync::FastDump&, const syncable::Blob&);
1348 1348
1349 #endif // CHROME_BROWSER_SYNC_SYNCABLE_SYNCABLE_H_ 1349 #endif // CHROME_BROWSER_SYNC_SYNCABLE_SYNCABLE_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/notifier/listener/talk_mediator.h ('k') | chrome/browser/sync/util/event_sys.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698