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

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

Issue 10399063: Revert 137657 - Remove directory_path argument from chromeos::FindEntryCallback (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
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 940 matching lines...) Expand 10 before | Expand all | Expand 10 after
951 // started FindEntryByPath() request. 951 // started FindEntryByPath() request.
952 void OnFeedFromServerLoaded(GetDocumentsParams* params, 952 void OnFeedFromServerLoaded(GetDocumentsParams* params,
953 base::PlatformFileError status); 953 base::PlatformFileError status);
954 954
955 // Callback for handling results of ReloadFeedFromServerIfNeeded() initiated 955 // Callback for handling results of ReloadFeedFromServerIfNeeded() initiated
956 // from CheckForUpdates(). This callback checks whether feed is successfully 956 // from CheckForUpdates(). This callback checks whether feed is successfully
957 // reloaded, and in case of failure, restores the content origin of the root 957 // reloaded, and in case of failure, restores the content origin of the root
958 // directory. 958 // directory.
959 void OnUpdateChecked(ContentOrigin initial_origin, 959 void OnUpdateChecked(ContentOrigin initial_origin,
960 base::PlatformFileError error, 960 base::PlatformFileError error,
961 const FilePath& directory_path,
961 GDataEntry* entry); 962 GDataEntry* entry);
962 963
963 // Starts root feed load from the cache. If successful, it will try to find 964 // Starts root feed load from the cache. If successful, it will try to find
964 // the file upon retrieval completion. In addition to that, it will 965 // the file upon retrieval completion. In addition to that, it will
965 // initate retrieval of the root feed from the server if 966 // initate retrieval of the root feed from the server if
966 // |should_load_from_server| is set. 967 // |should_load_from_server| is set.
967 void LoadRootFeedFromCache(bool should_load_from_server, 968 void LoadRootFeedFromCache(bool should_load_from_server,
968 const FilePath& search_file_path, 969 const FilePath& search_file_path,
969 const FindEntryCallback& callback); 970 const FindEntryCallback& callback);
970 971
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
1335 1336
1336 // Changes state of hosted documents visibility, triggers directory refresh. 1337 // Changes state of hosted documents visibility, triggers directory refresh.
1337 void SetHideHostedDocuments(bool hide); 1338 void SetHideHostedDocuments(bool hide);
1338 1339
1339 // Initializes preference change observer. 1340 // Initializes preference change observer.
1340 void InitializePreferenceObserver(); 1341 void InitializePreferenceObserver();
1341 1342
1342 // Called when an entry is found for GetEntryInfoByPathAsync(). 1343 // Called when an entry is found for GetEntryInfoByPathAsync().
1343 void OnGetEntryInfo(const GetEntryInfoCallback& callback, 1344 void OnGetEntryInfo(const GetEntryInfoCallback& callback,
1344 base::PlatformFileError error, 1345 base::PlatformFileError error,
1346 const FilePath& entry_path,
1345 GDataEntry* entry); 1347 GDataEntry* entry);
1346 1348
1347 // Called when an entry is found for GetFileInfoByPathAsync(). 1349 // Called when an entry is found for GetFileInfoByPathAsync().
1348 void OnGetFileInfo(const GetFileInfoCallback& callback, 1350 void OnGetFileInfo(const GetFileInfoCallback& callback,
1349 base::PlatformFileError error, 1351 base::PlatformFileError error,
1352 const FilePath& directory_path,
1350 GDataEntry* entry); 1353 GDataEntry* entry);
1351 1354
1352 // Called when an entry is found for ReadDirectoryByPathAsync(). 1355 // Called when an entry is found for ReadDirectoryByPathAsync().
1353 void OnReadDirectory(const ReadDirectoryCallback& callback, 1356 void OnReadDirectory(const ReadDirectoryCallback& callback,
1354 base::PlatformFileError error, 1357 base::PlatformFileError error,
1358 const FilePath& directory_path,
1355 GDataEntry* entry); 1359 GDataEntry* entry);
1356 1360
1357 // Finds file info by using virtual |file_path|. This call will also 1361 // Finds file info by using virtual |file_path|. This call will also
1358 // retrieve and refresh file system content from server and disk cache. 1362 // retrieve and refresh file system content from server and disk cache.
1359 void FindEntryByPathAsyncOnUIThread(const FilePath& search_file_path, 1363 void FindEntryByPathAsyncOnUIThread(const FilePath& search_file_path,
1360 const FindEntryCallback& callback); 1364 const FindEntryCallback& callback);
1361 1365
1362 // The following functions are used to forward calls to asynchronous public 1366 // The following functions are used to forward calls to asynchronous public
1363 // member functions to UI thread. 1367 // member functions to UI thread.
1364 void SearchAsyncOnUIThread(const std::string& search_query, 1368 void SearchAsyncOnUIThread(const std::string& search_query,
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1468 }; 1472 };
1469 1473
1470 // Sets the free disk space getter for testing. 1474 // Sets the free disk space getter for testing.
1471 // The existing getter is deleted. 1475 // The existing getter is deleted.
1472 void SetFreeDiskSpaceGetterForTesting( 1476 void SetFreeDiskSpaceGetterForTesting(
1473 FreeDiskSpaceGetterInterface* getter); 1477 FreeDiskSpaceGetterInterface* getter);
1474 1478
1475 } // namespace gdata 1479 } // namespace gdata
1476 1480
1477 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ 1481 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/find_entry_callback.cc ('k') | chrome/browser/chromeos/gdata/gdata_file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698