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

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

Issue 2678273005: arc: Logging ARC data removal reasons (Closed)
Patch Set: 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 196
197 // Stops ARC without changing ArcEnabled preference. 197 // Stops ARC without changing ArcEnabled preference.
198 void StopArc(); 198 void StopArc();
199 199
200 // StopArc(), then EnableArc(). Between them data clear may happens. 200 // StopArc(), then EnableArc(). Between them data clear may happens.
201 // This is a special method to support enterprise device lost case. 201 // This is a special method to support enterprise device lost case.
202 // This can be called only when ARC is running. 202 // This can be called only when ARC is running.
203 void StopAndEnableArc(); 203 void StopAndEnableArc();
204 204
205 // Removes the data if ARC is stopped. Otherwise, queue to remove the data 205 // Removes the data if ARC is stopped. Otherwise, queue to remove the data
206 // on ARC is stopped. 206 // on ARC is stopped. A log statement with the removal reason must be added
207 // prior to calling RemoveArcData().
207 void RemoveArcData(); 208 void RemoveArcData();
208 209
209 ArcSupportHost* support_host() { return support_host_.get(); } 210 ArcSupportHost* support_host() { return support_host_.get(); }
210 211
211 // TODO(hidehiko): Get rid of the getter by migration between ArcAuthContext 212 // TODO(hidehiko): Get rid of the getter by migration between ArcAuthContext
212 // and ArcAuthInfoFetcher. 213 // and ArcAuthInfoFetcher.
213 ArcAuthContext* auth_context() { return context_.get(); } 214 ArcAuthContext* auth_context() { return context_.get(); }
214 215
215 void StartArc(); 216 void StartArc();
216 217
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 DISALLOW_COPY_AND_ASSIGN(ArcSessionManager); 296 DISALLOW_COPY_AND_ASSIGN(ArcSessionManager);
296 }; 297 };
297 298
298 // Outputs the stringified |state| to |os|. This is only for logging purposes. 299 // Outputs the stringified |state| to |os|. This is only for logging purposes.
299 std::ostream& operator<<(std::ostream& os, 300 std::ostream& operator<<(std::ostream& os,
300 const ArcSessionManager::State& state); 301 const ArcSessionManager::State& state);
301 302
302 } // namespace arc 303 } // namespace arc
303 304
304 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ 305 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698