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

Side by Side Diff: chrome/browser/chromeos/file_manager/volume_manager.h

Issue 274473004: Nitpicking fixes for Files.app code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/file_manager/volume_manager.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_FILE_MANAGER_VOLUME_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 void RemoveObserver(VolumeManagerObserver* observer); 135 void RemoveObserver(VolumeManagerObserver* observer);
136 136
137 // Returns the information about all volumes currently mounted. 137 // Returns the information about all volumes currently mounted.
138 std::vector<VolumeInfo> GetVolumeInfoList() const; 138 std::vector<VolumeInfo> GetVolumeInfoList() const;
139 139
140 // Finds VolumeInfo for the given volume ID. If found, returns true and the 140 // Finds VolumeInfo for the given volume ID. If found, returns true and the
141 // result is written into |result|. Returns false otherwise. 141 // result is written into |result|. Returns false otherwise.
142 bool FindVolumeInfoById(const std::string& volume_id, 142 bool FindVolumeInfoById(const std::string& volume_id,
143 VolumeInfo* result) const; 143 VolumeInfo* result) const;
144 144
145 // For testing purpose, registers a native local file system poniting to 145 // For testing purpose, registers a native local file system pointing to
146 // |path| with DOWNLOADS type, and adds its volume info. 146 // |path| with DOWNLOADS type, and adds its volume info.
147 bool RegisterDownloadsDirectoryForTesting(const base::FilePath& path); 147 bool RegisterDownloadsDirectoryForTesting(const base::FilePath& path);
148 148
149 // For testing purpose, adds a volume info pointing to |path|, with TESTING 149 // For testing purpose, adds a volume info pointing to |path|, with TESTING
150 // type. Assumes that the mount point is already registered. 150 // type. Assumes that the mount point is already registered.
151 void AddVolumeInfoForTesting(const base::FilePath& path, 151 void AddVolumeInfoForTesting(const base::FilePath& path,
152 VolumeType volume_type, 152 VolumeType volume_type,
153 chromeos::DeviceType device_type); 153 chromeos::DeviceType device_type);
154 154
155 // drive::DriveIntegrationServiceObserver overrides. 155 // drive::DriveIntegrationServiceObserver overrides.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 215
216 // Note: This should remain the last member so it'll be destroyed and 216 // Note: This should remain the last member so it'll be destroyed and
217 // invalidate its weak pointers before any other members are destroyed. 217 // invalidate its weak pointers before any other members are destroyed.
218 base::WeakPtrFactory<VolumeManager> weak_ptr_factory_; 218 base::WeakPtrFactory<VolumeManager> weak_ptr_factory_;
219 DISALLOW_COPY_AND_ASSIGN(VolumeManager); 219 DISALLOW_COPY_AND_ASSIGN(VolumeManager);
220 }; 220 };
221 221
222 } // namespace file_manager 222 } // namespace file_manager
223 223
224 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_H_ 224 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/file_manager/volume_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698