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

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

Issue 2700783002: s/\bArc\b/ARC/g for ARC related code. (Closed)
Patch Set: Address ARC++ Created 3 years, 10 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_SESSION_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <ostream> 9 #include <ostream>
10 #include <string> 10 #include <string>
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // Exposed here for unit_tests validation. 114 // Exposed here for unit_tests validation.
115 static bool IsOobeOptInActive(); 115 static bool IsOobeOptInActive();
116 116
117 // It is called from chrome/browser/prefs/browser_prefs.cc. 117 // It is called from chrome/browser/prefs/browser_prefs.cc.
118 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 118 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
119 119
120 static void DisableUIForTesting(); 120 static void DisableUIForTesting();
121 static void SetShelfDelegateForTesting(ash::ShelfDelegate* shelf_delegate); 121 static void SetShelfDelegateForTesting(ash::ShelfDelegate* shelf_delegate);
122 static void EnableCheckAndroidManagementForTesting(); 122 static void EnableCheckAndroidManagementForTesting();
123 123
124 // Returns true if Arc is allowed to run for the current session. 124 // Returns true if ARC is allowed to run for the current session.
125 // TODO(hidehiko): The name is very close to IsArcAllowedForProfile(), but 125 // TODO(hidehiko): The name is very close to IsArcAllowedForProfile(), but
126 // has different meaning. Clean this up. 126 // has different meaning. Clean this up.
127 bool IsAllowed() const; 127 bool IsAllowed() const;
128 128
129 void OnPrimaryUserProfilePrepared(Profile* profile); 129 void OnPrimaryUserProfilePrepared(Profile* profile);
130 void Shutdown(); 130 void Shutdown();
131 131
132 Profile* profile() { return profile_; } 132 Profile* profile() { return profile_; }
133 const Profile* profile() const { return profile_; } 133 const Profile* profile() const { return profile_; }
134 134
135 State state() const { return state_; } 135 State state() const { return state_; }
136 136
137 // Adds or removes observers. 137 // Adds or removes observers.
138 void AddObserver(Observer* observer); 138 void AddObserver(Observer* observer);
139 void RemoveObserver(Observer* observer); 139 void RemoveObserver(Observer* observer);
140 140
141 // Adds or removes ArcSessionObservers. 141 // Adds or removes ArcSessionObservers.
142 // TODO(hidehiko): The observer should be migrated into 142 // TODO(hidehiko): The observer should be migrated into
143 // ArcSessionManager::Observer. 143 // ArcSessionManager::Observer.
144 void AddSessionObserver(ArcSessionObserver* observer); 144 void AddSessionObserver(ArcSessionObserver* observer);
145 void RemoveSessionObserver(ArcSessionObserver* observer); 145 void RemoveSessionObserver(ArcSessionObserver* observer);
146 146
147 // Returns true if ARC instance is running/stopped, respectively. 147 // Returns true if ARC instance is running/stopped, respectively.
148 // See ArcSessionRunner::IsRunning()/IsStopped() for details. 148 // See ArcSessionRunner::IsRunning()/IsStopped() for details.
149 bool IsSessionRunning() const; 149 bool IsSessionRunning() const;
150 bool IsSessionStopped() const; 150 bool IsSessionStopped() const;
151 151
152 // Called from Arc support platform app when user cancels signing. 152 // Called from ARC support platform app when user cancels signing.
153 void CancelAuthCode(); 153 void CancelAuthCode();
154 154
155 // TODO(hidehiko): Better to rename longer but descriptive one, e.g. 155 // TODO(hidehiko): Better to rename longer but descriptive one, e.g.
156 // IsArcEnabledPreferenceManaged. 156 // IsArcEnabledPreferenceManaged.
157 // TODO(hidehiko): Look at the real usage, and write document. 157 // TODO(hidehiko): Look at the real usage, and write document.
158 bool IsArcManaged() const; 158 bool IsArcManaged() const;
159 159
160 // Returns the preference value of "arc.enabled", which means whether the 160 // Returns the preference value of "arc.enabled", which means whether the
161 // user has opted in (or is opting in now) to use Google Play Store on ARC. 161 // user has opted in (or is opting in now) to use Google Play Store on ARC.
162 bool IsArcPlayStoreEnabled() const; 162 bool IsArcPlayStoreEnabled() const;
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 DISALLOW_COPY_AND_ASSIGN(ArcSessionManager); 308 DISALLOW_COPY_AND_ASSIGN(ArcSessionManager);
309 }; 309 };
310 310
311 // Outputs the stringified |state| to |os|. This is only for logging purposes. 311 // Outputs the stringified |state| to |os|. This is only for logging purposes.
312 std::ostream& operator<<(std::ostream& os, 312 std::ostream& operator<<(std::ostream& os,
313 const ArcSessionManager::State& state); 313 const ArcSessionManager::State& state);
314 314
315 } // namespace arc 315 } // namespace arc
316 316
317 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ 317 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/arc/arc_optin_uma.h ('k') | chrome/browser/chromeos/arc/arc_session_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698