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

Side by Side Diff: ios/chrome/browser/rlz/rlz_tracker_delegate_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 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 IOS_CHROME_BROWSER_RLZ_RLZ_TRACKER_DELEGATE_IMPL_H_ 5 #ifndef IOS_CHROME_BROWSER_RLZ_RLZ_TRACKER_DELEGATE_IMPL_H_
6 #define IOS_CHROME_BROWSER_RLZ_RLZ_TRACKER_DELEGATE_IMPL_H_ 6 #define IOS_CHROME_BROWSER_RLZ_RLZ_TRACKER_DELEGATE_IMPL_H_
7 7
8 #include <memory>
9
8 #include "base/callback.h" 10 #include "base/callback.h"
9 #include "base/callback_list.h" 11 #include "base/callback_list.h"
10 #include "base/macros.h" 12 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "components/rlz/rlz_tracker_delegate.h" 13 #include "components/rlz/rlz_tracker_delegate.h"
13 14
14 struct OmniboxLog; 15 struct OmniboxLog;
15 16
16 namespace ios { 17 namespace ios {
17 class ChromeBrowserState; 18 class ChromeBrowserState;
18 } 19 }
19 20
20 // RLZTrackerDelegateImpl implements RLZTrackerDelegate abstract interface 21 // RLZTrackerDelegateImpl implements RLZTrackerDelegate abstract interface
21 // and provides access to Chrome on iOS features. 22 // and provides access to Chrome on iOS features.
(...skipping 19 matching lines...) Expand all
41 bool GetLanguage(base::string16* language) override; 42 bool GetLanguage(base::string16* language) override;
42 bool GetReferral(base::string16* referral) override; 43 bool GetReferral(base::string16* referral) override;
43 bool ClearReferral() override; 44 bool ClearReferral() override;
44 void SetOmniboxSearchCallback(const base::Closure& callback) override; 45 void SetOmniboxSearchCallback(const base::Closure& callback) override;
45 void SetHomepageSearchCallback(const base::Closure& callback) override; 46 void SetHomepageSearchCallback(const base::Closure& callback) override;
46 47
47 // Called when user open an URL from the Omnibox. 48 // Called when user open an URL from the Omnibox.
48 void OnURLOpenedFromOmnibox(OmniboxLog* log); 49 void OnURLOpenedFromOmnibox(OmniboxLog* log);
49 50
50 base::Closure on_omnibox_search_callback_; 51 base::Closure on_omnibox_search_callback_;
51 scoped_ptr<base::CallbackList<void(OmniboxLog*)>::Subscription> 52 std::unique_ptr<base::CallbackList<void(OmniboxLog*)>::Subscription>
52 on_omnibox_url_opened_subscription_; 53 on_omnibox_url_opened_subscription_;
53 54
54 DISALLOW_COPY_AND_ASSIGN(RLZTrackerDelegateImpl); 55 DISALLOW_COPY_AND_ASSIGN(RLZTrackerDelegateImpl);
55 }; 56 };
56 57
57 #endif // IOS_CHROME_BROWSER_RLZ_RLZ_TRACKER_DELEGATE_IMPL_H_ 58 #endif // IOS_CHROME_BROWSER_RLZ_RLZ_TRACKER_DELEGATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698