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

Side by Side Diff: chrome/browser/chromeos/drive/drive_file_system_interface.h

Issue 13909002: drive: Supports shared-with-me search in searchDriveMetadata(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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_DRIVE_DRIVE_FILE_SYSTEM_INTERFACE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_INTERFACE_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_INTERFACE_H_ 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_INTERFACE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 119
120 struct DriveClientContext { 120 struct DriveClientContext {
121 explicit DriveClientContext(ContextType in_type) : type(in_type) {} 121 explicit DriveClientContext(ContextType in_type) : type(in_type) {}
122 ContextType type; 122 ContextType type;
123 }; 123 };
124 124
125 // Option enum to control eligible entries for searchMetadata(). 125 // Option enum to control eligible entries for searchMetadata().
126 // SEARCH_METADATA_ALL is the default to investigate all the entries. 126 // SEARCH_METADATA_ALL is the default to investigate all the entries.
127 // SEARCH_METADATA_EXCLUDE_HOSTED_DOCUMENTS excludes the hosted documents. 127 // SEARCH_METADATA_EXCLUDE_HOSTED_DOCUMENTS excludes the hosted documents.
128 // SEARCH_METADATA_EXCLUDE_DIRECTORIES excludes the directories from the result. 128 // SEARCH_METADATA_EXCLUDE_DIRECTORIES excludes the directories from the result.
129 // TODO(haruki): Add option for shared_with_me and offline. 129 // TODO(haruki): Add option for shared_with_me and offline.
yoshiki 2013/04/10 04:29:49 nit: Remove this TODO and add the description of S
Haruki Sato 2013/04/10 04:51:13 Done. Thanks.
130 enum SearchMetadataOptions { 130 enum SearchMetadataOptions {
131 SEARCH_METADATA_ALL = 0, 131 SEARCH_METADATA_ALL = 0,
132 SEARCH_METADATA_EXCLUDE_HOSTED_DOCUMENTS = 1, 132 SEARCH_METADATA_EXCLUDE_HOSTED_DOCUMENTS = 1,
133 SEARCH_METADATA_EXCLUDE_DIRECTORIES = 1 << 1, 133 SEARCH_METADATA_EXCLUDE_DIRECTORIES = 1 << 1,
134 SEARCH_METADATA_SHARED_WITH_ME = 1 << 2,
134 }; 135 };
135 136
136 // Drive file system abstraction layer. 137 // Drive file system abstraction layer.
137 // The interface is defined to make DriveFileSystem mockable. 138 // The interface is defined to make DriveFileSystem mockable.
138 class DriveFileSystemInterface { 139 class DriveFileSystemInterface {
139 public: 140 public:
140 virtual ~DriveFileSystemInterface() {} 141 virtual ~DriveFileSystemInterface() {}
141 142
142 // Initializes the object. This function should be called before any 143 // Initializes the object. This function should be called before any
143 // other functions. 144 // other functions.
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 virtual void GetMetadata( 412 virtual void GetMetadata(
412 const GetFilesystemMetadataCallback& callback) = 0; 413 const GetFilesystemMetadataCallback& callback) = 0;
413 414
414 // Reloads the file system feeds from the server. 415 // Reloads the file system feeds from the server.
415 virtual void Reload() = 0; 416 virtual void Reload() = 0;
416 }; 417 };
417 418
418 } // namespace drive 419 } // namespace drive
419 420
420 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_INTERFACE_H_ 421 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_INTERFACE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/search_metadata.cc » ('j') | chrome/browser/chromeos/drive/search_metadata.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698