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

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

Issue 168363003: drive: Move ClientContext to job_scheduler.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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_FILE_SYSTEM_INTERFACE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_INTERFACE_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_INTERFACE_H_ 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_INTERFACE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // Open the file if exists. If not, failed. 137 // Open the file if exists. If not, failed.
138 OPEN_FILE, 138 OPEN_FILE,
139 139
140 // Create a new file if not exists, and then open it. If exists, failed. 140 // Create a new file if not exists, and then open it. If exists, failed.
141 CREATE_FILE, 141 CREATE_FILE,
142 142
143 // Open the file if exists. If not, create a new file and then open it. 143 // Open the file if exists. If not, create a new file and then open it.
144 OPEN_OR_CREATE_FILE, 144 OPEN_OR_CREATE_FILE,
145 }; 145 };
146 146
147 // Priority of a job. Higher values are lower priority.
148 enum ContextType {
149 USER_INITIATED,
150 BACKGROUND,
151 // Indicates the number of values of this enum.
152 NUM_CONTEXT_TYPES,
153 };
154
155 struct ClientContext {
156 explicit ClientContext(ContextType in_type) : type(in_type) {}
157 ContextType type;
158 };
159
160 // Option enum to control eligible entries for SearchMetadata(). 147 // Option enum to control eligible entries for SearchMetadata().
161 // SEARCH_METADATA_ALL is the default to investigate all the entries. 148 // SEARCH_METADATA_ALL is the default to investigate all the entries.
162 // SEARCH_METADATA_EXCLUDE_HOSTED_DOCUMENTS excludes the hosted documents. 149 // SEARCH_METADATA_EXCLUDE_HOSTED_DOCUMENTS excludes the hosted documents.
163 // SEARCH_METADATA_EXCLUDE_DIRECTORIES excludes the directories from the result. 150 // SEARCH_METADATA_EXCLUDE_DIRECTORIES excludes the directories from the result.
164 // SEARCH_METADATA_SHARED_WITH_ME targets only "shared-with-me" entries. 151 // SEARCH_METADATA_SHARED_WITH_ME targets only "shared-with-me" entries.
165 // SEARCH_METADATA_OFFLINE targets only "offline" entries. This option can not 152 // SEARCH_METADATA_OFFLINE targets only "offline" entries. This option can not
166 // be used with other options. 153 // be used with other options.
167 enum SearchMetadataOptions { 154 enum SearchMetadataOptions {
168 SEARCH_METADATA_ALL = 0, 155 SEARCH_METADATA_ALL = 0,
169 SEARCH_METADATA_EXCLUDE_HOSTED_DOCUMENTS = 1, 156 SEARCH_METADATA_EXCLUDE_HOSTED_DOCUMENTS = 1,
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 virtual void GetCacheEntry(const base::FilePath& drive_file_path, 422 virtual void GetCacheEntry(const base::FilePath& drive_file_path,
436 const GetCacheEntryCallback& callback) = 0; 423 const GetCacheEntryCallback& callback) = 0;
437 424
438 // Resets local data. 425 // Resets local data.
439 virtual void Reset(const FileOperationCallback& callback) = 0; 426 virtual void Reset(const FileOperationCallback& callback) = 0;
440 }; 427 };
441 428
442 } // namespace drive 429 } // namespace drive
443 430
444 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_INTERFACE_H_ 431 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_INTERFACE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/file_system/truncate_operation.cc ('k') | chrome/browser/chromeos/drive/job_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698