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

Side by Side Diff: chrome/browser/chromeos/drive/file_system.cc

Issue 20266003: drive: Add ResourceMetadataStorage::Iterator::GetCacheEntry() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unneeded cache argument Created 7 years, 5 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/drive/resource_metadata_storage.h » ('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 #include "chrome/browser/chromeos/drive/file_system.h" 5 #include "chrome/browser/chromeos/drive/file_system.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/message_loop/message_loop_proxy.h" 9 #include "base/message_loop/message_loop_proxy.h"
10 #include "base/platform_file.h" 10 #include "base/platform_file.h"
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 int options, 748 int options,
749 int at_most_num_matches, 749 int at_most_num_matches,
750 const SearchMetadataCallback& callback) { 750 const SearchMetadataCallback& callback) {
751 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 751 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
752 752
753 if (hide_hosted_docs_) 753 if (hide_hosted_docs_)
754 options |= SEARCH_METADATA_EXCLUDE_HOSTED_DOCUMENTS; 754 options |= SEARCH_METADATA_EXCLUDE_HOSTED_DOCUMENTS;
755 755
756 drive::internal::SearchMetadata(blocking_task_runner_, 756 drive::internal::SearchMetadata(blocking_task_runner_,
757 resource_metadata_, 757 resource_metadata_,
758 cache_,
759 query, 758 query,
760 options, 759 options,
761 at_most_num_matches, 760 at_most_num_matches,
762 callback); 761 callback);
763 } 762 }
764 763
765 void FileSystem::OnDirectoryChangedByOperation( 764 void FileSystem::OnDirectoryChangedByOperation(
766 const base::FilePath& directory_path) { 765 const base::FilePath& directory_path) {
767 OnDirectoryChanged(directory_path); 766 OnDirectoryChanged(directory_path);
768 } 767 }
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
1001 return; 1000 return;
1002 } 1001 }
1003 1002
1004 PlatformFileInfoProto entry_file_info; 1003 PlatformFileInfoProto entry_file_info;
1005 util::ConvertPlatformFileInfoToResourceEntry(*file_info, &entry_file_info); 1004 util::ConvertPlatformFileInfoToResourceEntry(*file_info, &entry_file_info);
1006 *entry->mutable_file_info() = entry_file_info; 1005 *entry->mutable_file_info() = entry_file_info;
1007 callback.Run(FILE_ERROR_OK, entry.Pass()); 1006 callback.Run(FILE_ERROR_OK, entry.Pass());
1008 } 1007 }
1009 1008
1010 } // namespace drive 1009 } // namespace drive
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/resource_metadata_storage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698