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

Side by Side Diff: components/drive/file_system.h

Issue 1546143002: Switch to standard integer types in components/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
« no previous file with comments | « components/drive/file_change.h ('k') | components/drive/file_system.cc » ('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 COMPONENTS_DRIVE_FILE_SYSTEM_H_ 5 #ifndef COMPONENTS_DRIVE_FILE_SYSTEM_H_
6 #define COMPONENTS_DRIVE_FILE_SYSTEM_H_ 6 #define COMPONENTS_DRIVE_FILE_SYSTEM_H_
7 7
8 #include <stdint.h>
9
8 #include <string> 10 #include <string>
9 #include <vector> 11 #include <vector>
10 12
13 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
13 #include "base/observer_list.h" 16 #include "base/observer_list.h"
14 #include "base/threading/thread_checker.h" 17 #include "base/threading/thread_checker.h"
15 #include "components/drive/change_list_loader_observer.h" 18 #include "components/drive/change_list_loader_observer.h"
16 #include "components/drive/file_system/operation_delegate.h" 19 #include "components/drive/file_system/operation_delegate.h"
17 #include "components/drive/file_system_interface.h" 20 #include "components/drive/file_system_interface.h"
18 #include "google_apis/drive/drive_api_error_codes.h" 21 #include "google_apis/drive/drive_api_error_codes.h"
19 22
20 class PrefService; 23 class PrefService;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 const FileOperationCallback& callback) override; 115 const FileOperationCallback& callback) override;
113 void CreateFile(const base::FilePath& file_path, 116 void CreateFile(const base::FilePath& file_path,
114 bool is_exclusive, 117 bool is_exclusive,
115 const std::string& mime_type, 118 const std::string& mime_type,
116 const FileOperationCallback& callback) override; 119 const FileOperationCallback& callback) override;
117 void TouchFile(const base::FilePath& file_path, 120 void TouchFile(const base::FilePath& file_path,
118 const base::Time& last_access_time, 121 const base::Time& last_access_time,
119 const base::Time& last_modified_time, 122 const base::Time& last_modified_time,
120 const FileOperationCallback& callback) override; 123 const FileOperationCallback& callback) override;
121 void TruncateFile(const base::FilePath& file_path, 124 void TruncateFile(const base::FilePath& file_path,
122 int64 length, 125 int64_t length,
123 const FileOperationCallback& callback) override; 126 const FileOperationCallback& callback) override;
124 void Pin(const base::FilePath& file_path, 127 void Pin(const base::FilePath& file_path,
125 const FileOperationCallback& callback) override; 128 const FileOperationCallback& callback) override;
126 void Unpin(const base::FilePath& file_path, 129 void Unpin(const base::FilePath& file_path,
127 const FileOperationCallback& callback) override; 130 const FileOperationCallback& callback) override;
128 void GetFile(const base::FilePath& file_path, 131 void GetFile(const base::FilePath& file_path,
129 const GetFileCallback& callback) override; 132 const GetFileCallback& callback) override;
130 void GetFileForSaving(const base::FilePath& file_path, 133 void GetFileForSaving(const base::FilePath& file_path,
131 const GetFileCallback& callback) override; 134 const GetFileCallback& callback) override;
132 base::Closure GetFileContent( 135 base::Closure GetFileContent(
(...skipping 20 matching lines...) Expand all
153 google_apis::drive::PermissionRole role, 156 google_apis::drive::PermissionRole role,
154 const FileOperationCallback& callback) override; 157 const FileOperationCallback& callback) override;
155 void SetProperty(const base::FilePath& drive_file_path, 158 void SetProperty(const base::FilePath& drive_file_path,
156 google_apis::drive::Property::Visibility visibility, 159 google_apis::drive::Property::Visibility visibility,
157 const std::string& key, 160 const std::string& key,
158 const std::string& value, 161 const std::string& value,
159 const FileOperationCallback& callback) override; 162 const FileOperationCallback& callback) override;
160 void Reset(const FileOperationCallback& callback) override; 163 void Reset(const FileOperationCallback& callback) override;
161 void GetPathFromResourceId(const std::string& resource_id, 164 void GetPathFromResourceId(const std::string& resource_id,
162 const GetFilePathCallback& callback) override; 165 const GetFilePathCallback& callback) override;
163 void FreeDiskSpaceIfNeededFor(int64 num_bytes, 166 void FreeDiskSpaceIfNeededFor(int64_t num_bytes,
164 const FreeDiskSpaceCallback& callback) override; 167 const FreeDiskSpaceCallback& callback) override;
165 void CalculateEvictableCacheSize( 168 void CalculateEvictableCacheSize(
166 const EvictableCacheSizeCallback& callback) override; 169 const EvictableCacheSizeCallback& callback) override;
167 170
168 // file_system::OperationDelegate overrides. 171 // file_system::OperationDelegate overrides.
169 void OnFileChangedByOperation(const FileChange& changed_files) override; 172 void OnFileChangedByOperation(const FileChange& changed_files) override;
170 void OnEntryUpdatedByOperation(const ClientContext& context, 173 void OnEntryUpdatedByOperation(const ClientContext& context,
171 const std::string& local_id) override; 174 const std::string& local_id) override;
172 void OnDriveSyncError(file_system::DriveSyncErrorType type, 175 void OnDriveSyncError(file_system::DriveSyncErrorType type,
173 const std::string& local_id) override; 176 const std::string& local_id) override;
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 // Note: This should remain the last member so it'll be destroyed and 305 // Note: This should remain the last member so it'll be destroyed and
303 // invalidate the weak pointers before any other members are destroyed. 306 // invalidate the weak pointers before any other members are destroyed.
304 base::WeakPtrFactory<FileSystem> weak_ptr_factory_; 307 base::WeakPtrFactory<FileSystem> weak_ptr_factory_;
305 308
306 DISALLOW_COPY_AND_ASSIGN(FileSystem); 309 DISALLOW_COPY_AND_ASSIGN(FileSystem);
307 }; 310 };
308 311
309 } // namespace drive 312 } // namespace drive
310 313
311 #endif // COMPONENTS_DRIVE_FILE_SYSTEM_H_ 314 #endif // COMPONENTS_DRIVE_FILE_SYSTEM_H_
OLDNEW
« no previous file with comments | « components/drive/file_change.h ('k') | components/drive/file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698