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

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

Issue 1103293002: [iOS] Upstream iOS geolocation code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 5 years, 7 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 class PrefService; 8 class PrefService;
9 9
10 namespace net { 10 namespace net {
(...skipping 11 matching lines...) Expand all
22 @protocol InfoBarViewProtocol; 22 @protocol InfoBarViewProtocol;
23 typedef UIView<InfoBarViewProtocol> InfoBarViewPlaceholder; 23 typedef UIView<InfoBarViewProtocol> InfoBarViewPlaceholder;
24 #else 24 #else
25 class InfoBarViewPlaceholder; 25 class InfoBarViewPlaceholder;
26 class UIView; 26 class UIView;
27 #endif 27 #endif
28 28
29 namespace ios { 29 namespace ios {
30 30
31 class ChromeBrowserProvider; 31 class ChromeBrowserProvider;
32 class GeolocationUpdaterProvider;
32 class StringProvider; 33 class StringProvider;
33 class UpdatableResourceProvider; 34 class UpdatableResourceProvider;
34 35
35 // Setter and getter for the provider. The provider should be set early, before 36 // Setter and getter for the provider. The provider should be set early, before
36 // any browser code is called. 37 // any browser code is called.
37 void SetChromeBrowserProvider(ChromeBrowserProvider* provider); 38 void SetChromeBrowserProvider(ChromeBrowserProvider* provider);
38 ChromeBrowserProvider* GetChromeBrowserProvider(); 39 ChromeBrowserProvider* GetChromeBrowserProvider();
39 40
40 // A class that allows embedding iOS-specific functionality in the 41 // A class that allows embedding iOS-specific functionality in the
41 // ios_chrome_browser target. 42 // ios_chrome_browser target.
42 class ChromeBrowserProvider { 43 class ChromeBrowserProvider {
43 public: 44 public:
44 ChromeBrowserProvider(); 45 ChromeBrowserProvider();
45 virtual ~ChromeBrowserProvider(); 46 virtual ~ChromeBrowserProvider();
46 47
47 // Gets the system URL request context. 48 // Gets the system URL request context.
48 virtual net::URLRequestContextGetter* GetSystemURLRequestContext(); 49 virtual net::URLRequestContextGetter* GetSystemURLRequestContext();
49 // Gets the local state. 50 // Gets the local state.
50 virtual PrefService* GetLocalState(); 51 virtual PrefService* GetLocalState();
51 // Returns an UpdatableResourceProvider instance. 52 // Returns an UpdatableResourceProvider instance.
52 virtual UpdatableResourceProvider* GetUpdatableResourceProvider(); 53 virtual UpdatableResourceProvider* GetUpdatableResourceProvider();
53 // Returns an instance of an infobar view. The caller is responsible for 54 // Returns an instance of an infobar view. The caller is responsible for
54 // initializing the returned object and releasing it when appropriate. 55 // initializing the returned object and releasing it when appropriate.
55 virtual InfoBarViewPlaceholder* CreateInfoBarView(); 56 virtual InfoBarViewPlaceholder* CreateInfoBarView();
56 // Returns an instance of a string provider. 57 // Returns an instance of a string provider.
57 virtual StringProvider* GetStringProvider(); 58 virtual StringProvider* GetStringProvider();
59 virtual GeolocationUpdaterProvider* GetGeolocationUpdaterProvider();
58 // Displays the Translate settings screen. 60 // Displays the Translate settings screen.
59 virtual void ShowTranslateSettings(); 61 virtual void ShowTranslateSettings();
60 // Returns the chrome UI scheme. 62 // Returns the chrome UI scheme.
61 // TODO(droger): Remove this method once chrome no longer needs to match 63 // TODO(droger): Remove this method once chrome no longer needs to match
62 // content. 64 // content.
63 virtual const char* GetChromeUIScheme(); 65 virtual const char* GetChromeUIScheme();
64 // Sets the alpha property of an UIView with an animation. 66 // Sets the alpha property of an UIView with an animation.
65 virtual void SetUIViewAlphaWithAnimation(UIView* view, float alpha); 67 virtual void SetUIViewAlphaWithAnimation(UIView* view, float alpha);
66 }; 68 };
67 69
68 } // namespace ios 70 } // namespace ios
69 71
70 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ 72 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_
OLDNEW
« no previous file with comments | « ios/provider/ios_provider_chrome.gyp ('k') | ios/public/provider/chrome/browser/chrome_browser_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698