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

Side by Side Diff: chrome/browser/extensions/api/file_system/request_file_system_notification.h

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_EXTENSIONS_API_FILE_SYSTEM_REQUEST_FILE_SYSTEM_NOTIFICATI ON_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_REQUEST_FILE_SYSTEM_NOTIFICATI ON_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_REQUEST_FILE_SYSTEM_NOTIFICATI ON_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_REQUEST_FILE_SYSTEM_NOTIFICATI ON_H_
7 7
8 #include <memory>
8 #include <string> 9 #include <string>
9 10
10 #include "base/callback.h" 11 #include "base/callback.h"
11 #include "base/macros.h" 12 #include "base/macros.h"
12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "chrome/browser/ui/app_icon_loader.h" 14 #include "chrome/browser/ui/app_icon_loader.h"
15 #include "ui/message_center/notification_delegate.h" 15 #include "ui/message_center/notification_delegate.h"
16 16
17 class Profile; 17 class Profile;
18 18
19 namespace extensions { 19 namespace extensions {
20 class Extension; 20 class Extension;
21 } // namespace extensions 21 } // namespace extensions
22 22
(...skipping 21 matching lines...) Expand all
44 const extensions::Extension& extension, 44 const extensions::Extension& extension,
45 const base::WeakPtr<file_manager::Volume>& volume, 45 const base::WeakPtr<file_manager::Volume>& volume,
46 bool writable); 46 bool writable);
47 47
48 private: 48 private:
49 RequestFileSystemNotification(Profile* profile, 49 RequestFileSystemNotification(Profile* profile,
50 const extensions::Extension& extension); 50 const extensions::Extension& extension);
51 ~RequestFileSystemNotification() override; 51 ~RequestFileSystemNotification() override;
52 52
53 // Shows the notification. Can be called only once. 53 // Shows the notification. Can be called only once.
54 void Show(scoped_ptr<message_center::Notification> notification); 54 void Show(std::unique_ptr<message_center::Notification> notification);
55 55
56 // AppIconLoaderDelegate overrides: 56 // AppIconLoaderDelegate overrides:
57 void OnAppImageUpdated(const std::string& id, 57 void OnAppImageUpdated(const std::string& id,
58 const gfx::ImageSkia& image) override; 58 const gfx::ImageSkia& image) override;
59 59
60 scoped_ptr<AppIconLoader> icon_loader_; 60 std::unique_ptr<AppIconLoader> icon_loader_;
61 scoped_ptr<gfx::Image> extension_icon_; 61 std::unique_ptr<gfx::Image> extension_icon_;
62 scoped_ptr<message_center::Notification> pending_notification_; 62 std::unique_ptr<message_center::Notification> pending_notification_;
63 63
64 DISALLOW_COPY_AND_ASSIGN(RequestFileSystemNotification); 64 DISALLOW_COPY_AND_ASSIGN(RequestFileSystemNotification);
65 }; 65 };
66 66
67 #endif // CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_REQUEST_FILE_SYSTEM_NOTIFIC ATION_H_ 67 #endif // CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_REQUEST_FILE_SYSTEM_NOTIFIC ATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698