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

Side by Side Diff: chrome/browser/extensions/api/webstore_widget_private/app_installer.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 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_EXTENSIONS_API_WEBSTORE_WIDGET_PRIVATE_APP_INSTALLER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_WIDGET_PRIVATE_APP_INSTALLER_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_WIDGET_PRIVATE_APP_INSTALLER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_WIDGET_PRIVATE_APP_INSTALLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 23 matching lines...) Expand all
34 ~AppInstaller() override; 34 ~AppInstaller() override;
35 35
36 void OnWebContentsDestroyed(content::WebContents* web_contents); 36 void OnWebContentsDestroyed(content::WebContents* web_contents);
37 37
38 // WebstoreStandaloneInstaller implementation. 38 // WebstoreStandaloneInstaller implementation.
39 bool CheckRequestorAlive() const override; 39 bool CheckRequestorAlive() const override;
40 const GURL& GetRequestorURL() const override; 40 const GURL& GetRequestorURL() const override;
41 bool ShouldShowPostInstallUI() const override; 41 bool ShouldShowPostInstallUI() const override;
42 bool ShouldShowAppInstalledBubble() const override; 42 bool ShouldShowAppInstalledBubble() const override;
43 content::WebContents* GetWebContents() const override; 43 content::WebContents* GetWebContents() const override;
44 scoped_ptr<ExtensionInstallPrompt::Prompt> CreateInstallPrompt() 44 std::unique_ptr<ExtensionInstallPrompt::Prompt> CreateInstallPrompt()
45 const override; 45 const override;
46 bool CheckInlineInstallPermitted(const base::DictionaryValue& webstore_data, 46 bool CheckInlineInstallPermitted(const base::DictionaryValue& webstore_data,
47 std::string* error) const override; 47 std::string* error) const override;
48 bool CheckRequestorPermitted(const base::DictionaryValue& webstore_data, 48 bool CheckRequestorPermitted(const base::DictionaryValue& webstore_data,
49 std::string* error) const override; 49 std::string* error) const override;
50 50
51 private: 51 private:
52 class WebContentsObserver; 52 class WebContentsObserver;
53 53
54 bool silent_installation_; 54 bool silent_installation_;
55 Callback callback_; 55 Callback callback_;
56 content::WebContents* web_contents_; 56 content::WebContents* web_contents_;
57 scoped_ptr<WebContentsObserver> web_contents_observer_; 57 std::unique_ptr<WebContentsObserver> web_contents_observer_;
58 58
59 DISALLOW_IMPLICIT_CONSTRUCTORS(AppInstaller); 59 DISALLOW_IMPLICIT_CONSTRUCTORS(AppInstaller);
60 }; 60 };
61 61
62 } // namespace webstore_widget 62 } // namespace webstore_widget
63 63
64 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_WIDGET_PRIVATE_APP_INSTALLER_H _ 64 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_WIDGET_PRIVATE_APP_INSTALLER_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698