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

Side by Side Diff: components/arc/arc_bridge_service.h

Issue 1966133002: Run RemoveArcData after a user has opted out (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean up boolean logic Created 4 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_ 5 #ifndef COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_
6 #define COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_ 6 #define COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 // The ARC instance has started shutting down. 62 // The ARC instance has started shutting down.
63 STOPPING, 63 STOPPING,
64 }; 64 };
65 65
66 // Notifies life cycle events of ArcBridgeService. 66 // Notifies life cycle events of ArcBridgeService.
67 class Observer { 67 class Observer {
68 public: 68 public:
69 // Called whenever the state of the bridge has changed. 69 // Called whenever the state of the bridge has changed.
70 virtual void OnStateChanged(State state) {} 70 virtual void OnStateChanged(State state) {}
71 virtual void OnBridgeReady() {}
Daniel Erat 2016/05/20 17:41:05 adding these seems strange. why can't observers ju
dspaid 2016/05/23 01:22:36 Luis commented that OnStateChanged was originally
Daniel Erat 2016/05/24 14:51:22 luis, can you add some more details here? is the i
Luis Héctor Chávez 2016/05/24 16:18:28 changing to OnStateChangedForTest SGTM.
dspaid 2016/05/25 00:06:48 Luis, is this something you'll do in the cleanup C
Luis Héctor Chávez 2016/05/25 00:11:01 it's fine to defer for later, just add a TODO for
dspaid 2016/05/25 00:13:27 Done.
72 virtual void OnBridgeStopped() {}
71 73
72 // Called whenever ARC's availability has changed for this system. 74 // Called whenever ARC's availability has changed for this system.
73 virtual void OnAvailableChanged(bool available) {} 75 virtual void OnAvailableChanged(bool available) {}
74 76
75 // Called whenever the ARC app interface state changes. 77 // Called whenever the ARC app interface state changes.
76 virtual void OnAppInstanceReady() {} 78 virtual void OnAppInstanceReady() {}
77 virtual void OnAppInstanceClosed() {} 79 virtual void OnAppInstanceClosed() {}
78 80
79 // Called whenever the ARC audio interface state changes. 81 // Called whenever the ARC audio interface state changes.
80 virtual void OnAudioInstanceReady() {} 82 virtual void OnAudioInstanceReady() {}
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 383
382 // WeakPtrFactory to use callbacks. 384 // WeakPtrFactory to use callbacks.
383 base::WeakPtrFactory<ArcBridgeService> weak_factory_; 385 base::WeakPtrFactory<ArcBridgeService> weak_factory_;
384 386
385 DISALLOW_COPY_AND_ASSIGN(ArcBridgeService); 387 DISALLOW_COPY_AND_ASSIGN(ArcBridgeService);
386 }; 388 };
387 389
388 } // namespace arc 390 } // namespace arc
389 391
390 #endif // COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_ 392 #endif // COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698