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

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

Issue 14093022: Remove DrivePrefetcher and relevant flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: xxxxx 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/drive_prefetcher.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 #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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 int64 bytes_used)> GetAvailableSpaceCallback; 114 int64 bytes_used)> GetAvailableSpaceCallback;
115 115
116 // Used to get drive filesystem metadata. 116 // Used to get drive filesystem metadata.
117 typedef base::Callback<void(const DriveFileSystemMetadata&)> 117 typedef base::Callback<void(const DriveFileSystemMetadata&)>
118 GetFilesystemMetadataCallback; 118 GetFilesystemMetadataCallback;
119 119
120 // Priority of a job. Higher values are lower priority. 120 // Priority of a job. Higher values are lower priority.
121 enum ContextType { 121 enum ContextType {
122 USER_INITIATED, 122 USER_INITIATED,
123 BACKGROUND, 123 BACKGROUND,
124 PREFETCH,
125 }; 124 };
126 125
127 struct DriveClientContext { 126 struct DriveClientContext {
128 explicit DriveClientContext(ContextType in_type) : type(in_type) {} 127 explicit DriveClientContext(ContextType in_type) : type(in_type) {}
129 ContextType type; 128 ContextType type;
130 }; 129 };
131 130
132 // Option enum to control eligible entries for searchMetadata(). 131 // Option enum to control eligible entries for searchMetadata().
133 // SEARCH_METADATA_ALL is the default to investigate all the entries. 132 // SEARCH_METADATA_ALL is the default to investigate all the entries.
134 // SEARCH_METADATA_EXCLUDE_HOSTED_DOCUMENTS excludes the hosted documents. 133 // SEARCH_METADATA_EXCLUDE_HOSTED_DOCUMENTS excludes the hosted documents.
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 virtual void IterateCache(const CacheIterateCallback& iteration_callback, 464 virtual void IterateCache(const CacheIterateCallback& iteration_callback,
466 const base::Closure& completion_callback) = 0; 465 const base::Closure& completion_callback) = 0;
467 466
468 // Reloads the file system feeds from the server. 467 // Reloads the file system feeds from the server.
469 virtual void Reload() = 0; 468 virtual void Reload() = 0;
470 }; 469 };
471 470
472 } // namespace drive 471 } // namespace drive
473 472
474 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_INTERFACE_H_ 473 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_INTERFACE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/drive_prefetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698