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

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

Issue 11343004: drive: Add "Delta Update Status" section to chrome:drive-internals (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 1 month 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
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "chrome/browser/chromeos/drive/drive_cache.h" 12 #include "chrome/browser/chromeos/drive/drive_cache.h"
13 #include "chrome/browser/chromeos/drive/drive_file_system_metadata.h"
13 #include "chrome/browser/chromeos/drive/drive_resource_metadata.h" 14 #include "chrome/browser/chromeos/drive/drive_resource_metadata.h"
14 #include "chrome/browser/google_apis/gdata_operations.h" 15 #include "chrome/browser/google_apis/gdata_operations.h"
15 16
16 namespace google_apis { 17 namespace google_apis {
17 class DocumentEntry; 18 class DocumentEntry;
18 } 19 }
19 20
20 namespace drive { 21 namespace drive {
21 22
22 class DriveEntryProto; 23 class DriveEntryProto;
23 class DriveFileSystemObserver; 24 class DriveFileSystemObserver;
24 class DriveResourceMetadata; 25 class DriveResourceMetadata;
25 26
26 typedef std::vector<DriveEntryProto> DriveEntryProtoVector; 27 typedef std::vector<DriveEntryProto> DriveEntryProtoVector;
27 28
28 // Information about search result returned by Search Async callback. 29 // Information about search result returned by Search Async callback.
29 // This is data needed to create a file system entry that will be used by file 30 // This is data needed to create a file system entry that will be used by file
30 // browser. 31 // browser.
31 struct SearchResultInfo { 32 struct SearchResultInfo {
32 SearchResultInfo(const FilePath& in_path, bool in_is_directory) 33 SearchResultInfo(const FilePath& in_path, bool in_is_directory)
33 : path(in_path), 34 : path(in_path),
34 is_directory(in_is_directory) { 35 is_directory(in_is_directory) {
35 } 36 }
36 37
37 FilePath path; 38 FilePath path;
38 bool is_directory; 39 bool is_directory;
39 }; 40 };
40 41
41 // Metadata of DriveFileSystem. Used by DriveFileSystem::GetMetadata().
42 struct DriveFileSystemMetadata {
43 DriveFileSystemMetadata() : largest_changestamp(0), origin("?") {}
44 ~DriveFileSystemMetadata() {}
45
46 int64 largest_changestamp;
47 std::string origin;
48 };
49
50 // Used to get files from the file system. 42 // Used to get files from the file system.
51 typedef base::Callback<void(DriveFileError error, 43 typedef base::Callback<void(DriveFileError error,
52 const FilePath& file_path, 44 const FilePath& file_path,
53 const std::string& mime_type, 45 const std::string& mime_type,
54 DriveFileType file_type)> GetFileCallback; 46 DriveFileType file_type)> GetFileCallback;
55 47
56 // Used to read a directory from the file system. 48 // Used to read a directory from the file system.
57 // Similar to ReadDirectoryCallback but this one provides 49 // Similar to ReadDirectoryCallback but this one provides
58 // |hide_hosted_documents| 50 // |hide_hosted_documents|
59 // If |error| is not DRIVE_FILE_OK, |entries| is set to NULL. 51 // If |error| is not DRIVE_FILE_OK, |entries| is set to NULL.
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 // timestamp. Used in chrome:drive-internals. 356 // timestamp. Used in chrome:drive-internals.
365 virtual DriveFileSystemMetadata GetMetadata() const = 0; 357 virtual DriveFileSystemMetadata GetMetadata() const = 0;
366 358
367 // Reloads the file system feeds from the server. 359 // Reloads the file system feeds from the server.
368 virtual void Reload() = 0; 360 virtual void Reload() = 0;
369 }; 361 };
370 362
371 } // namespace drive 363 } // namespace drive
372 364
373 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_INTERFACE_H_ 365 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_INTERFACE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/drive_file_system.cc ('k') | chrome/browser/chromeos/drive/drive_file_system_metadata.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698