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

Side by Side Diff: chrome/browser/chromeos/arc/arc_auth_service.h

Issue 2179803002: arc: Use location service consent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: discard unwanted change Created 4 years, 4 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <ostream> 9 #include <ostream>
10 #include <string> 10 #include <string>
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 virtual void OnOptInUIClose() {} 79 virtual void OnOptInUIClose() {}
80 80
81 // Called to notify that OptIn UI needs to show specific page. 81 // Called to notify that OptIn UI needs to show specific page.
82 virtual void OnOptInUIShowPage(UIPage page, const base::string16& status) {} 82 virtual void OnOptInUIShowPage(UIPage page, const base::string16& status) {}
83 83
84 // Called to notify that ARC bridge is shut down. 84 // Called to notify that ARC bridge is shut down.
85 virtual void OnShutdownBridge() {} 85 virtual void OnShutdownBridge() {}
86 86
87 // Called to notify that ARC enabled state has been updated. 87 // Called to notify that ARC enabled state has been updated.
88 virtual void OnOptInEnabled(bool enabled) {} 88 virtual void OnOptInEnabled(bool enabled) {}
89
90 // Called to notify that ARC has been initialized successfully.
91 virtual void OnInitialStart() {}
89 }; 92 };
90 93
91 explicit ArcAuthService(ArcBridgeService* bridge_service); 94 explicit ArcAuthService(ArcBridgeService* bridge_service);
92 ~ArcAuthService() override; 95 ~ArcAuthService() override;
93 96
94 static ArcAuthService* Get(); 97 static ArcAuthService* Get();
95 98
96 // It is called from chrome/browser/prefs/browser_prefs.cc. 99 // It is called from chrome/browser/prefs/browser_prefs.cc.
97 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 100 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
98 101
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 base::WeakPtrFactory<ArcAuthService> weak_ptr_factory_; 224 base::WeakPtrFactory<ArcAuthService> weak_ptr_factory_;
222 225
223 DISALLOW_COPY_AND_ASSIGN(ArcAuthService); 226 DISALLOW_COPY_AND_ASSIGN(ArcAuthService);
224 }; 227 };
225 228
226 std::ostream& operator<<(std::ostream& os, const ArcAuthService::State& state); 229 std::ostream& operator<<(std::ostream& os, const ArcAuthService::State& state);
227 230
228 } // namespace arc 231 } // namespace arc
229 232
230 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ 233 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/arc_auth_service.cc » ('j') | chrome/browser/chromeos/arc/arc_settings_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698