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

Side by Side Diff: chrome/browser/chromeos/gdata/gdata_file_system.h

Issue 9773020: cros gdata: only comments change (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/gdata_file_system.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_
7 7
8 #include <sys/stat.h> 8 #include <sys/stat.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 1066 matching lines...) Expand 10 before | Expand all | Expand 10 after
1077 // Upon completion, invokes OnGetCacheState i.e. |intermediate_callback| on 1077 // Upon completion, invokes OnGetCacheState i.e. |intermediate_callback| on
1078 // the thread where GetCacheState was called. 1078 // the thread where GetCacheState was called.
1079 void GetCacheStateOnIOThreadPool( 1079 void GetCacheStateOnIOThreadPool(
1080 const std::string& resource_id, 1080 const std::string& resource_id,
1081 const std::string& md5, 1081 const std::string& md5,
1082 const GetCacheStateCallback& callback, 1082 const GetCacheStateCallback& callback,
1083 const GetCacheStateIntermediateCallback& intermediate_callback, 1083 const GetCacheStateIntermediateCallback& intermediate_callback,
1084 scoped_refptr<base::MessageLoopProxy> relay_proxy); 1084 scoped_refptr<base::MessageLoopProxy> relay_proxy);
1085 1085
1086 // Task posted from StoreToCache to run on IO thread pool: 1086 // Task posted from StoreToCache to run on IO thread pool:
1087 // - moves |params.source_path| to |params.dest_path| in the cache dir 1087 // - moves or copies (per |params.file_operation_type|) |params.source_path|
1088 // to |params.dest_path| in the cache dir
1088 // - if necessary, creates symlink 1089 // - if necessary, creates symlink
1089 // - deletes stale cached versions of |params.resource_id| in 1090 // - deletes stale cached versions of |params.resource_id| in
1090 // |params.dest_path|'s directory. 1091 // |params.dest_path|'s directory.
1091 // Upon completion, |params.callback| is invoked on the thread where 1092 // Upon completion, |params.callback| is invoked on the thread where
1092 // StoreToCache was called. 1093 // StoreToCache was called.
1093 void StoreToCacheOnIOThreadPool(const ModifyCacheStateParams& params); 1094 void StoreToCacheOnIOThreadPool(const ModifyCacheStateParams& params);
1094 1095
1095 // Task posted from Pin to modify cache state on the IO thread pool, which 1096 // Task posted from Pin to modify cache state on the IO thread pool, which
1096 // involves the following: 1097 // involves the following:
1097 // - moves |params.source_path| to |params.dest_path| in persistent dir if 1098 // - moves |params.source_path| to |params.dest_path| in persistent dir if
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
1255 1256
1256 // WeakPtrFactory bound to the IO thread. Created when needed. 1257 // WeakPtrFactory bound to the IO thread. Created when needed.
1257 scoped_ptr<base::WeakPtrFactory<GDataFileSystem> > io_weak_ptr_factory_; 1258 scoped_ptr<base::WeakPtrFactory<GDataFileSystem> > io_weak_ptr_factory_;
1258 1259
1259 ObserverList<Observer> observers_; 1260 ObserverList<Observer> observers_;
1260 }; 1261 };
1261 1262
1262 } // namespace gdata 1263 } // namespace gdata
1263 1264
1264 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ 1265 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/gdata_file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698