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

Side by Side Diff: ios/chrome/browser/infobars/infobar_manager_impl.h

Issue 1861593005: Convert //ios 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 IOS_CHROME_BROWSER_INFOBARS_INFOBAR_MANAGER_IMPL_H_ 5 #ifndef IOS_CHROME_BROWSER_INFOBARS_INFOBAR_MANAGER_IMPL_H_
6 #define IOS_CHROME_BROWSER_INFOBARS_INFOBAR_MANAGER_IMPL_H_ 6 #define IOS_CHROME_BROWSER_INFOBARS_INFOBAR_MANAGER_IMPL_H_
7 7
8 #include <memory>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "components/infobars/core/infobar_manager.h" 11 #include "components/infobars/core/infobar_manager.h"
11 #include "ios/web/public/web_state/web_state_observer.h" 12 #include "ios/web/public/web_state/web_state_observer.h"
12 #include "ios/web/public/web_state/web_state_user_data.h" 13 #include "ios/web/public/web_state/web_state_user_data.h"
13 14
14 namespace infobars { 15 namespace infobars {
15 class InfoBar; 16 class InfoBar;
16 } 17 }
17 18
18 namespace web { 19 namespace web {
19 struct LoadCommittedDetails; 20 struct LoadCommittedDetails;
(...skipping 12 matching lines...) Expand all
32 static web::WebState* WebStateFromInfoBar(infobars::InfoBar* infobar); 33 static web::WebState* WebStateFromInfoBar(infobars::InfoBar* infobar);
33 34
34 private: 35 private:
35 friend class web::WebStateUserData<InfoBarManagerImpl>; 36 friend class web::WebStateUserData<InfoBarManagerImpl>;
36 37
37 explicit InfoBarManagerImpl(web::WebState* web_state); 38 explicit InfoBarManagerImpl(web::WebState* web_state);
38 ~InfoBarManagerImpl() override; 39 ~InfoBarManagerImpl() override;
39 40
40 // InfoBarManager implementation. 41 // InfoBarManager implementation.
41 int GetActiveEntryID() override; 42 int GetActiveEntryID() override;
42 scoped_ptr<infobars::InfoBar> CreateConfirmInfoBar( 43 std::unique_ptr<infobars::InfoBar> CreateConfirmInfoBar(
43 scoped_ptr<ConfirmInfoBarDelegate> delegate) override; 44 std::unique_ptr<ConfirmInfoBarDelegate> delegate) override;
44 45
45 // web::WebStateObserver implementation. 46 // web::WebStateObserver implementation.
46 void NavigationItemCommitted( 47 void NavigationItemCommitted(
47 const web::LoadCommittedDetails& load_details) override; 48 const web::LoadCommittedDetails& load_details) override;
48 void WebStateDestroyed() override; 49 void WebStateDestroyed() override;
49 50
50 // Opens a URL according to the specified |disposition|. 51 // Opens a URL according to the specified |disposition|.
51 void OpenURL(const GURL& url, WindowOpenDisposition disposition) override; 52 void OpenURL(const GURL& url, WindowOpenDisposition disposition) override;
52 53
53 DISALLOW_COPY_AND_ASSIGN(InfoBarManagerImpl); 54 DISALLOW_COPY_AND_ASSIGN(InfoBarManagerImpl);
54 }; 55 };
55 56
56 #endif // IOS_CHROME_BROWSER_INFOBARS_INFOBAR_MANAGER_IMPL_H_ 57 #endif // IOS_CHROME_BROWSER_INFOBARS_INFOBAR_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/infobars/infobar_controller.mm ('k') | ios/chrome/browser/infobars/infobar_manager_impl.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698