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

Side by Side Diff: ios/public/provider/chrome/browser/chrome_browser_provider.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: Add 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 IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ 5 #ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_
6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ 6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_
7 7
8 #include <CoreGraphics/CoreGraphics.h> 8 #include <CoreGraphics/CoreGraphics.h>
9 #include <stddef.h> 9 #include <stddef.h>
10
11 #include <memory>
10 #include <string> 12 #include <string>
11 #include <vector> 13 #include <vector>
12 14
13 #include "base/callback_forward.h" 15 #include "base/callback_forward.h"
14 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
15 #include "base/memory/scoped_ptr.h"
16 #include "components/favicon_base/favicon_callback.h" 17 #include "components/favicon_base/favicon_callback.h"
17 18
18 class AutocompleteProvider; 19 class AutocompleteProvider;
19 class GURL; 20 class GURL;
20 class InfoBarViewDelegate; 21 class InfoBarViewDelegate;
21 class PrefRegistrySimple; 22 class PrefRegistrySimple;
22 class PrefService; 23 class PrefService;
23 class ProfileOAuth2TokenServiceIOSProvider; 24 class ProfileOAuth2TokenServiceIOSProvider;
24 25
25 namespace autofill { 26 namespace autofill {
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 112
112 // Returns whether safe browsing is enabled. See the comment on 113 // Returns whether safe browsing is enabled. See the comment on
113 // metrics_services_manager_client.h for details on |on_update_callback|. 114 // metrics_services_manager_client.h for details on |on_update_callback|.
114 virtual bool IsSafeBrowsingEnabled(const base::Closure& on_update_callback); 115 virtual bool IsSafeBrowsingEnabled(const base::Closure& on_update_callback);
115 116
116 // Called when the IOSChromeMetricsServiceClientManager instance is 117 // Called when the IOSChromeMetricsServiceClientManager instance is
117 // destroyed. 118 // destroyed.
118 virtual void OnMetricsServicesManagerClientDestroyed(); 119 virtual void OnMetricsServicesManagerClientDestroyed();
119 120
120 // Returns the SyncedWindowDelegatesGetter implementation. 121 // Returns the SyncedWindowDelegatesGetter implementation.
121 virtual scoped_ptr<browser_sync::SyncedWindowDelegatesGetter> 122 virtual std::unique_ptr<browser_sync::SyncedWindowDelegatesGetter>
122 CreateSyncedWindowDelegatesGetter(ios::ChromeBrowserState* browser_state); 123 CreateSyncedWindowDelegatesGetter(ios::ChromeBrowserState* browser_state);
123 124
124 // Gets the URLRequestContextGetter used by the SafeBrowsing service. Returns 125 // Gets the URLRequestContextGetter used by the SafeBrowsing service. Returns
125 // null if there is no SafeBrowsing service. 126 // null if there is no SafeBrowsing service.
126 virtual net::URLRequestContextGetter* GetSafeBrowsingURLRequestContext(); 127 virtual net::URLRequestContextGetter* GetSafeBrowsingURLRequestContext();
127 }; 128 };
128 129
129 } // namespace ios 130 } // namespace ios
130 131
131 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ 132 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698