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

Side by Side Diff: ios/public/provider/chrome/browser/chrome_browser_provider.h

Issue 2121083004: Upstream ProfileOAuth2TokenServiceProviderImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Style nits Created 4 years, 5 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 10
11 #include <memory> 11 #include <memory>
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/callback_forward.h" 15 #include "base/callback_forward.h"
16 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
17 #include "components/favicon_base/favicon_callback.h" 17 #include "components/favicon_base/favicon_callback.h"
18 18
19 class AutocompleteProvider; 19 class AutocompleteProvider;
20 class GURL; 20 class GURL;
21 class InfoBarViewDelegate; 21 class InfoBarViewDelegate;
22 class PrefRegistrySimple; 22 class PrefRegistrySimple;
23 class PrefService; 23 class PrefService;
24 class ProfileOAuth2TokenServiceIOSProvider;
25 24
26 namespace autofill { 25 namespace autofill {
27 class CardUnmaskPromptController; 26 class CardUnmaskPromptController;
28 class CardUnmaskPromptView; 27 class CardUnmaskPromptView;
29 } 28 }
30 29
31 namespace browser_sync { 30 namespace browser_sync {
32 class SyncedWindowDelegatesGetter; 31 class SyncedWindowDelegatesGetter;
33 } 32 }
34 33
(...skipping 29 matching lines...) Expand all
64 class ChromeBrowserProvider { 63 class ChromeBrowserProvider {
65 public: 64 public:
66 ChromeBrowserProvider(); 65 ChromeBrowserProvider();
67 virtual ~ChromeBrowserProvider(); 66 virtual ~ChromeBrowserProvider();
68 67
69 // Asserts all iOS-specific |BrowserContextKeyedServiceFactory| are built. 68 // Asserts all iOS-specific |BrowserContextKeyedServiceFactory| are built.
70 virtual void AssertBrowserContextKeyedFactoriesBuilt(); 69 virtual void AssertBrowserContextKeyedFactoriesBuilt();
71 // Registers all prefs that will be used via a PrefService attached to a 70 // Registers all prefs that will be used via a PrefService attached to a
72 // Profile. 71 // Profile.
73 virtual void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 72 virtual void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
74 // Returns an instance of profile OAuth2 token service provider.
75 virtual ProfileOAuth2TokenServiceIOSProvider*
76 GetProfileOAuth2TokenServiceIOSProvider();
77 // Returns an UpdatableResourceProvider instance. 73 // Returns an UpdatableResourceProvider instance.
78 virtual UpdatableResourceProvider* GetUpdatableResourceProvider(); 74 virtual UpdatableResourceProvider* GetUpdatableResourceProvider();
79 // Returns an infobar view conforming to the InfoBarViewProtocol. The returned 75 // Returns an infobar view conforming to the InfoBarViewProtocol. The returned
80 // object is retained. 76 // object is retained.
81 virtual InfoBarViewPlaceholder CreateInfoBarView( 77 virtual InfoBarViewPlaceholder CreateInfoBarView(
82 CGRect frame, 78 CGRect frame,
83 InfoBarViewDelegate* delegate); 79 InfoBarViewDelegate* delegate);
84 // Returns an instance of a signin resources provider. 80 // Returns an instance of a signin resources provider.
85 virtual SigninResourcesProvider* GetSigninResourcesProvider(); 81 virtual SigninResourcesProvider* GetSigninResourcesProvider();
86 // Returns an instance of a Chrome identity service. 82 // Returns an instance of a Chrome identity service.
(...skipping 28 matching lines...) Expand all
115 virtual bool IsSafeBrowsingEnabled(const base::Closure& on_update_callback); 111 virtual bool IsSafeBrowsingEnabled(const base::Closure& on_update_callback);
116 112
117 // Returns the SyncedWindowDelegatesGetter implementation. 113 // Returns the SyncedWindowDelegatesGetter implementation.
118 virtual std::unique_ptr<browser_sync::SyncedWindowDelegatesGetter> 114 virtual std::unique_ptr<browser_sync::SyncedWindowDelegatesGetter>
119 CreateSyncedWindowDelegatesGetter(ios::ChromeBrowserState* browser_state); 115 CreateSyncedWindowDelegatesGetter(ios::ChromeBrowserState* browser_state);
120 }; 116 };
121 117
122 } // namespace ios 118 } // namespace ios
123 119
124 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ 120 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_
OLDNEW
« no previous file with comments | « ios/chrome/ios_chrome.gyp ('k') | ios/public/provider/chrome/browser/chrome_browser_provider.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698