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

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

Issue 10270035: gdata: Fix a bug where |root_| was accessed without a lock (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 #pragma once 7 #pragma once
8 8
9 #include <sys/stat.h> 9 #include <sys/stat.h>
10 10
(...skipping 1196 matching lines...) Expand 10 before | Expand all | Expand 10 after
1207 const tracked_objects::Location& from_here, 1207 const tracked_objects::Location& from_here,
1208 const base::Closure& task); 1208 const base::Closure& task);
1209 1209
1210 // Similar to PostBlockingPoolSequencedTask() but this one takes a reply 1210 // Similar to PostBlockingPoolSequencedTask() but this one takes a reply
1211 // callback that runs on the calling thread. 1211 // callback that runs on the calling thread.
1212 void PostBlockingPoolSequencedTaskAndReply( 1212 void PostBlockingPoolSequencedTaskAndReply(
1213 const tracked_objects::Location& from_here, 1213 const tracked_objects::Location& from_here,
1214 const base::Closure& request_task, 1214 const base::Closure& request_task,
1215 const base::Closure& reply_task); 1215 const base::Closure& reply_task);
1216 1216
1217 // Helper function used to perform file search on the calling thread of 1217 // Helper function used to perform synchronous file search on UI thread.
1218 // FindEntryByPath() request. 1218 void FindEntryByPathSyncOnUIThread(const FilePath& search_file_path,
1219 void FindEntryByPathOnCallingThread(const FilePath& search_file_path, 1219 const FindEntryCallback& callback);
1220 const FindEntryCallback& callback);
1221 1220
1222 void OnSetPinStateCompleted(const FileOperationCallback& callback, 1221 void OnSetPinStateCompleted(const FileOperationCallback& callback,
1223 base::PlatformFileError error, 1222 base::PlatformFileError error,
1224 const std::string& resource_id, 1223 const std::string& resource_id,
1225 const std::string& md5); 1224 const std::string& md5);
1226 1225
1227 // Changes state of hosted documents visibility, triggers directory refresh. 1226 // Changes state of hosted documents visibility, triggers directory refresh.
1228 void SetHideHostedDocuments(bool hide); 1227 void SetHideHostedDocuments(bool hide);
1229 1228
1230 // Initializes preference change observer. 1229 // Initializes preference change observer.
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
1345 }; 1344 };
1346 1345
1347 // Sets the free disk space getter for testing. 1346 // Sets the free disk space getter for testing.
1348 // The existing getter is deleted. 1347 // The existing getter is deleted.
1349 void SetFreeDiskSpaceGetterForTesting( 1348 void SetFreeDiskSpaceGetterForTesting(
1350 FreeDiskSpaceGetterInterface* getter); 1349 FreeDiskSpaceGetterInterface* getter);
1351 1350
1352 } // namespace gdata 1351 } // namespace gdata
1353 1352
1354 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ 1353 #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