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

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

Issue 10535145: chromeos: Stop calling gdata::GDataCache::GetCacheEntry on UI thread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fix Created 8 years, 6 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 <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after
834 GDataErrorCode status, 834 GDataErrorCode status,
835 scoped_ptr<base::Value> created_entry); 835 scoped_ptr<base::Value> created_entry);
836 836
837 // Callback for handling file downloading requests. 837 // Callback for handling file downloading requests.
838 void OnFileDownloaded( 838 void OnFileDownloaded(
839 const GetFileFromCacheParams& params, 839 const GetFileFromCacheParams& params,
840 GDataErrorCode status, 840 GDataErrorCode status,
841 const GURL& content_url, 841 const GURL& content_url,
842 const FilePath& downloaded_file_path); 842 const FilePath& downloaded_file_path);
843 843
844 // Unpins file if cache entry is pinned.
845 void UnpinIfPinned(const FilePath& file_path,
846 GDataCache::CacheEntry* cache_entry,
847 bool* cache_entry_is_valid);
848
844 // Similar to OnFileDownloaded() but takes |has_enough_space| so we report 849 // Similar to OnFileDownloaded() but takes |has_enough_space| so we report
845 // an error in case we don't have enough disk space. 850 // an error in case we don't have enough disk space.
846 void OnFileDownloadedAndSpaceChecked( 851 void OnFileDownloadedAndSpaceChecked(
847 const GetFileFromCacheParams& params, 852 const GetFileFromCacheParams& params,
848 GDataErrorCode status, 853 GDataErrorCode status,
849 const GURL& content_url, 854 const GURL& content_url,
850 const FilePath& downloaded_file_path, 855 const FilePath& downloaded_file_path,
851 bool* has_enough_space); 856 bool* has_enough_space);
852 857
853 // Callback for handling internal StoreToCache() calls after downloading 858 // Callback for handling internal StoreToCache() calls after downloading
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
1509 }; 1514 };
1510 1515
1511 // Sets the free disk space getter for testing. 1516 // Sets the free disk space getter for testing.
1512 // The existing getter is deleted. 1517 // The existing getter is deleted.
1513 void SetFreeDiskSpaceGetterForTesting( 1518 void SetFreeDiskSpaceGetterForTesting(
1514 FreeDiskSpaceGetterInterface* getter); 1519 FreeDiskSpaceGetterInterface* getter);
1515 1520
1516 } // namespace gdata 1521 } // namespace gdata
1517 1522
1518 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ 1523 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698