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

Side by Side Diff: chrome/browser/chromeos/file_system_provider/registry_interface.h

Issue 1870793002: Convert //chrome/browser/chromeos from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SYSTEM_PROVIDER_REGISTRY_INTERFACE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REGISTRY_INTERFACE_H_
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REGISTRY_INTERFACE_H_ 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REGISTRY_INTERFACE_H_
7 7
8 #include <memory>
8 #include <string> 9 #include <string>
9 #include <vector> 10 #include <vector>
10 11
11 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
12 #include "base/memory/scoped_ptr.h"
13 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info .h" 13 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info .h"
14 #include "chrome/browser/chromeos/file_system_provider/watcher.h" 14 #include "chrome/browser/chromeos/file_system_provider/watcher.h"
15 15
16 namespace chromeos { 16 namespace chromeos {
17 namespace file_system_provider { 17 namespace file_system_provider {
18 18
19 // Remembers and restores file systems in a persistent storage. 19 // Remembers and restores file systems in a persistent storage.
20 class RegistryInterface { 20 class RegistryInterface {
21 public: 21 public:
22 struct RestoredFileSystem; 22 struct RestoredFileSystem;
(...skipping 20 matching lines...) Expand all
43 const Watchers& watchers) = 0; 43 const Watchers& watchers) = 0;
44 44
45 // Removes the file system from preferences, so it is not remounmted anymore 45 // Removes the file system from preferences, so it is not remounmted anymore
46 // after a reboot. 46 // after a reboot.
47 virtual void ForgetFileSystem(const std::string& extension_id, 47 virtual void ForgetFileSystem(const std::string& extension_id,
48 const std::string& file_system_id) = 0; 48 const std::string& file_system_id) = 0;
49 49
50 // Restores from preferences file systems mounted previously by the 50 // Restores from preferences file systems mounted previously by the
51 // |extension_id| providing extension. The returned list should be used to 51 // |extension_id| providing extension. The returned list should be used to
52 // remount them. 52 // remount them.
53 virtual scoped_ptr<RestoredFileSystems> RestoreFileSystems( 53 virtual std::unique_ptr<RestoredFileSystems> RestoreFileSystems(
54 const std::string& extension_id) = 0; 54 const std::string& extension_id) = 0;
55 55
56 // Updates a tag for the specified watcher. 56 // Updates a tag for the specified watcher.
57 virtual void UpdateWatcherTag(const ProvidedFileSystemInfo& file_system_info, 57 virtual void UpdateWatcherTag(const ProvidedFileSystemInfo& file_system_info,
58 const Watcher& watcher) = 0; 58 const Watcher& watcher) = 0;
59 }; 59 };
60 60
61 } // namespace file_system_provider 61 } // namespace file_system_provider
62 } // namespace chromeos 62 } // namespace chromeos
63 63
64 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REGISTRY_INTERFACE_H_ 64 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REGISTRY_INTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698