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

Side by Side Diff: chrome/browser/chromeos/file_system_provider/registry.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_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REGISTRY_H_
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REGISTRY_H_ 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REGISTRY_H_
7 7
8 #include <memory>
8 #include <string> 9 #include <string>
9 10
10 #include "base/macros.h" 11 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "chrome/browser/chromeos/file_system_provider/registry_interface.h" 12 #include "chrome/browser/chromeos/file_system_provider/registry_interface.h"
13 #include "chrome/browser/chromeos/file_system_provider/watcher.h" 13 #include "chrome/browser/chromeos/file_system_provider/watcher.h"
14 14
15 class Profile; 15 class Profile;
16 16
17 namespace user_prefs { 17 namespace user_prefs {
18 class PrefRegistrySyncable; 18 class PrefRegistrySyncable;
19 } // namespace user_prefs 19 } // namespace user_prefs
20 20
21 namespace chromeos { 21 namespace chromeos {
(...skipping 20 matching lines...) Expand all
42 class Registry : public RegistryInterface { 42 class Registry : public RegistryInterface {
43 public: 43 public:
44 explicit Registry(Profile* profile); 44 explicit Registry(Profile* profile);
45 ~Registry() override; 45 ~Registry() override;
46 46
47 // RegistryInterface overrides. 47 // RegistryInterface overrides.
48 void RememberFileSystem(const ProvidedFileSystemInfo& file_system_info, 48 void RememberFileSystem(const ProvidedFileSystemInfo& file_system_info,
49 const Watchers& watchers) override; 49 const Watchers& watchers) override;
50 void ForgetFileSystem(const std::string& extension_id, 50 void ForgetFileSystem(const std::string& extension_id,
51 const std::string& file_system_id) override; 51 const std::string& file_system_id) override;
52 scoped_ptr<RestoredFileSystems> RestoreFileSystems( 52 std::unique_ptr<RestoredFileSystems> RestoreFileSystems(
53 const std::string& extension_id) override; 53 const std::string& extension_id) override;
54 void UpdateWatcherTag(const ProvidedFileSystemInfo& file_system_info, 54 void UpdateWatcherTag(const ProvidedFileSystemInfo& file_system_info,
55 const Watcher& watcher) override; 55 const Watcher& watcher) override;
56 56
57 private: 57 private:
58 Profile* profile_; // Not owned. 58 Profile* profile_; // Not owned.
59 DISALLOW_COPY_AND_ASSIGN(Registry); 59 DISALLOW_COPY_AND_ASSIGN(Registry);
60 }; 60 };
61 61
62 } // namespace file_system_provider 62 } // namespace file_system_provider
63 } // namespace chromeos 63 } // namespace chromeos
64 64
65 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REGISTRY_H_ 65 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REGISTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698