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

Side by Side Diff: chrome/browser/chromeos/gdata/gdata_file_system_interface.h

Issue 10836354: Rename GData* to Drive* in gdata.proto (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix for comments. Created 8 years, 4 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_GDATA_GDATA_FILE_SYSTEM_INTERFACE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_INTERFACE_H_
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_INTERFACE_H_ 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_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/gdata/gdata_cache.h" 12 #include "chrome/browser/chromeos/gdata/gdata_cache.h"
13 #include "chrome/browser/chromeos/gdata/gdata_directory_service.h" 13 #include "chrome/browser/chromeos/gdata/gdata_directory_service.h"
14 #include "chrome/browser/chromeos/gdata/gdata_operations.h" 14 #include "chrome/browser/chromeos/gdata/gdata_operations.h"
15 #include "chrome/browser/chromeos/gdata/gdata_upload_file_info.h" 15 #include "chrome/browser/chromeos/gdata/gdata_upload_file_info.h"
16 16
17 namespace gdata { 17 namespace gdata {
18 18
19 class DocumentEntry; 19 class DocumentEntry;
20 class GDataDirectoryProto; 20 class DriveEntryProto;
21 class GDataEntryProto; 21
22 class GDataFileProto; 22 typedef std::vector<DriveEntryProto> DriveEntryProtoVector;
23 23
24 // Information about search result returned by Search Async callback. 24 // Information about search result returned by Search Async callback.
25 // This is data needed to create a file system entry that will be used by file 25 // This is data needed to create a file system entry that will be used by file
26 // browser. 26 // browser.
27 struct SearchResultInfo { 27 struct SearchResultInfo {
28 SearchResultInfo(const FilePath& in_path, bool in_is_directory) 28 SearchResultInfo(const FilePath& in_path, bool in_is_directory)
29 : path(in_path), 29 : path(in_path),
30 is_directory(in_is_directory) { 30 is_directory(in_is_directory) {
31 } 31 }
32 32
33 FilePath path; 33 FilePath path;
34 bool is_directory; 34 bool is_directory;
35 }; 35 };
36 36
37 // Used to get files from the file system. 37 // Used to get files from the file system.
38 typedef base::Callback<void(GDataFileError error, 38 typedef base::Callback<void(GDataFileError error,
39 const FilePath& file_path, 39 const FilePath& file_path,
40 const std::string& mime_type, 40 const std::string& mime_type,
41 GDataFileType file_type)> GetFileCallback; 41 GDataFileType file_type)> GetFileCallback;
42 42
43 // Used to read a directory from the file system. 43 // Used to read a directory from the file system.
44 // Similar to ReadDirectoryCallback but this one provides 44 // Similar to ReadDirectoryCallback but this one provides
45 // |hide_hosted_documents| 45 // |hide_hosted_documents|
46 // If |error| is not GDATA_FILE_OK, |entries| is set to NULL. 46 // If |error| is not GDATA_FILE_OK, |entries| is set to NULL.
47 // |entries| are contents, both files and directories, of the directory. 47 // |entries| are contents, both files and directories, of the directory.
48 typedef base::Callback<void(GDataFileError error, 48 typedef base::Callback<void(GDataFileError error,
49 bool hide_hosted_documents, 49 bool hide_hosted_documents,
50 scoped_ptr<GDataEntryProtoVector> entries)> 50 scoped_ptr<DriveEntryProtoVector> entries)>
51 ReadDirectoryWithSettingCallback; 51 ReadDirectoryWithSettingCallback;
52 52
53 // Used to get drive content search results. 53 // Used to get drive content search results.
54 // If |error| is not GDATA_FILE_OK, |result_paths| is empty. 54 // If |error| is not GDATA_FILE_OK, |result_paths| is empty.
55 typedef base::Callback<void( 55 typedef base::Callback<void(
56 GDataFileError error, 56 GDataFileError error,
57 const GURL& next_feed, 57 const GURL& next_feed,
58 scoped_ptr<std::vector<SearchResultInfo> > result_paths)> SearchCallback; 58 scoped_ptr<std::vector<SearchResultInfo> > result_paths)> SearchCallback;
59 59
60 // Used to open files from the file system. |file_path| is the path on the local 60 // Used to open files from the file system. |file_path| is the path on the local
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 virtual void UpdateEntryData(const std::string& resource_id, 359 virtual void UpdateEntryData(const std::string& resource_id,
360 const std::string& md5, 360 const std::string& md5,
361 scoped_ptr<DocumentEntry> entry, 361 scoped_ptr<DocumentEntry> entry,
362 const FilePath& file_content_path, 362 const FilePath& file_content_path,
363 const base::Closure& callback) = 0; 363 const base::Closure& callback) = 0;
364 }; 364 };
365 365
366 } // namespace gdata 366 } // namespace gdata
367 367
368 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_INTERFACE_H_ 368 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_INTERFACE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system.cc ('k') | chrome/browser/chromeos/gdata/gdata_file_system_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698