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

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

Issue 2577103002: arc: Rename methods in ArcSessionManager::Observer. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/arc_session_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 CHECKING_ANDROID_MANAGEMENT, 96 CHECKING_ANDROID_MANAGEMENT,
97 REMOVING_DATA_DIR, 97 REMOVING_DATA_DIR,
98 ACTIVE, 98 ACTIVE,
99 }; 99 };
100 100
101 class Observer { 101 class Observer {
102 public: 102 public:
103 virtual ~Observer() = default; 103 virtual ~Observer() = default;
104 104
105 // Called to notify that ARC bridge is shut down. 105 // Called to notify that ARC bridge is shut down.
106 virtual void OnShutdownBridge() {} 106 virtual void OnArcShutdownBridge() {}
Luis Héctor Chávez 2016/12/15 18:10:39 nit: the other methods use OnArcNounVerb() pattern
Daniel Erat 2016/12/15 18:15:33 sure. thoughts about going with "OnArcBridgeShutDo
Luis Héctor Chávez 2016/12/15 18:21:51 Yeah, I was hesitant to add the comment about OnAr
107 107
108 // Called to notify that ARC enabled state has been updated. 108 // Called to notify that ARC enabled state has been updated.
109 virtual void OnOptInEnabled(bool enabled) {} 109 virtual void OnArcOptInChanged(bool enabled) {}
110 110
111 // Called to notify that ARC has been initialized successfully. 111 // Called to notify that ARC has been initialized successfully.
112 virtual void OnInitialStart() {} 112 virtual void OnArcInitialStart() {}
113 113
114 // Called to notify that Android data has been removed. Used in 114 // Called to notify that Android data has been removed. Used in
115 // browser_tests 115 // browser_tests
116 virtual void OnArcDataRemoved() {} 116 virtual void OnArcDataRemoved() {}
117 }; 117 };
118 118
119 explicit ArcSessionManager(ArcBridgeService* bridge_service); 119 explicit ArcSessionManager(ArcBridgeService* bridge_service);
120 ~ArcSessionManager() override; 120 ~ArcSessionManager() override;
121 121
122 static ArcSessionManager* Get(); 122 static ArcSessionManager* Get();
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 DISALLOW_COPY_AND_ASSIGN(ArcSessionManager); 263 DISALLOW_COPY_AND_ASSIGN(ArcSessionManager);
264 }; 264 };
265 265
266 // Outputs the stringified |state| to |os|. This is only for logging purposes. 266 // Outputs the stringified |state| to |os|. This is only for logging purposes.
267 std::ostream& operator<<(std::ostream& os, 267 std::ostream& operator<<(std::ostream& os,
268 const ArcSessionManager::State& state); 268 const ArcSessionManager::State& state);
269 269
270 } // namespace arc 270 } // namespace arc
271 271
272 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ 272 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/arc_session_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698