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

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

Issue 10383156: Remove directory_path argument from chromeos::FindEntryCallback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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,
962 GDataEntry* entry); 961 GDataEntry* entry);
963 962
964 // Starts root feed load from the cache. If successful, it will try to find 963 // Starts root feed load from the cache. If successful, it will try to find
965 // the file upon retrieval completion. In addition to that, it will 964 // the file upon retrieval completion. In addition to that, it will
966 // initate retrieval of the root feed from the server if 965 // initate retrieval of the root feed from the server if
967 // |should_load_from_server| is set. 966 // |should_load_from_server| is set.
968 void LoadRootFeedFromCache(bool should_load_from_server, 967 void LoadRootFeedFromCache(bool should_load_from_server,
969 const FilePath& search_file_path, 968 const FilePath& search_file_path,
970 const FindEntryCallback& callback); 969 const FindEntryCallback& callback);
971 970
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
1336 1335
1337 // Changes state of hosted documents visibility, triggers directory refresh. 1336 // Changes state of hosted documents visibility, triggers directory refresh.
1338 void SetHideHostedDocuments(bool hide); 1337 void SetHideHostedDocuments(bool hide);
1339 1338
1340 // Initializes preference change observer. 1339 // Initializes preference change observer.
1341 void InitializePreferenceObserver(); 1340 void InitializePreferenceObserver();
1342 1341
1343 // Called when an entry is found for GetEntryInfoByPathAsync(). 1342 // Called when an entry is found for GetEntryInfoByPathAsync().
1344 void OnGetEntryInfo(const GetEntryInfoCallback& callback, 1343 void OnGetEntryInfo(const GetEntryInfoCallback& callback,
1345 base::PlatformFileError error, 1344 base::PlatformFileError error,
1346 const FilePath& entry_path,
1347 GDataEntry* entry); 1345 GDataEntry* entry);
1348 1346
1349 // Called when an entry is found for GetFileInfoByPathAsync(). 1347 // Called when an entry is found for GetFileInfoByPathAsync().
1350 void OnGetFileInfo(const GetFileInfoCallback& callback, 1348 void OnGetFileInfo(const GetFileInfoCallback& callback,
1351 base::PlatformFileError error, 1349 base::PlatformFileError error,
1352 const FilePath& directory_path,
1353 GDataEntry* entry); 1350 GDataEntry* entry);
1354 1351
1355 // Called when an entry is found for ReadDirectoryByPathAsync(). 1352 // Called when an entry is found for ReadDirectoryByPathAsync().
1356 void OnReadDirectory(const ReadDirectoryCallback& callback, 1353 void OnReadDirectory(const ReadDirectoryCallback& callback,
1357 base::PlatformFileError error, 1354 base::PlatformFileError error,
1358 const FilePath& directory_path,
1359 GDataEntry* entry); 1355 GDataEntry* entry);
1360 1356
1361 // Finds file info by using virtual |file_path|. This call will also 1357 // Finds file info by using virtual |file_path|. This call will also
1362 // retrieve and refresh file system content from server and disk cache. 1358 // retrieve and refresh file system content from server and disk cache.
1363 void FindEntryByPathAsyncOnUIThread(const FilePath& search_file_path, 1359 void FindEntryByPathAsyncOnUIThread(const FilePath& search_file_path,
1364 const FindEntryCallback& callback); 1360 const FindEntryCallback& callback);
1365 1361
1366 // The following functions are used to forward calls to asynchronous public 1362 // The following functions are used to forward calls to asynchronous public
1367 // member functions to UI thread. 1363 // member functions to UI thread.
1368 void SearchAsyncOnUIThread(const std::string& search_query, 1364 void SearchAsyncOnUIThread(const std::string& search_query,
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1472 }; 1468 };
1473 1469
1474 // Sets the free disk space getter for testing. 1470 // Sets the free disk space getter for testing.
1475 // The existing getter is deleted. 1471 // The existing getter is deleted.
1476 void SetFreeDiskSpaceGetterForTesting( 1472 void SetFreeDiskSpaceGetterForTesting(
1477 FreeDiskSpaceGetterInterface* getter); 1473 FreeDiskSpaceGetterInterface* getter);
1478 1474
1479 } // namespace gdata 1475 } // namespace gdata
1480 1476
1481 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ 1477 #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