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

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

Issue 1885683005: Add module suffix in .mojom files for components/arc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase only Created 4 years, 8 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
« no previous file with comments | « components/arc/arc_bridge_service.cc ('k') | components/arc/arc_bridge_service_impl.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 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_IMPL_H_ 5 #ifndef COMPONENTS_ARC_ARC_BRIDGE_SERVICE_IMPL_H_
6 #define COMPONENTS_ARC_ARC_BRIDGE_SERVICE_IMPL_H_ 6 #define COMPONENTS_ARC_ARC_BRIDGE_SERVICE_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 30 matching lines...) Expand all
41 41
42 // If all pre-requisites are true (ARC is available, it has been enabled, and 42 // If all pre-requisites are true (ARC is available, it has been enabled, and
43 // the session has started), and ARC is stopped, start ARC. If ARC is running 43 // the session has started), and ARC is stopped, start ARC. If ARC is running
44 // and the pre-requisites stop being true, stop ARC. 44 // and the pre-requisites stop being true, stop ARC.
45 void PrerequisitesChanged(); 45 void PrerequisitesChanged();
46 46
47 // Stops the running instance. 47 // Stops the running instance.
48 void StopInstance(); 48 void StopInstance();
49 49
50 // ArcBridgeBootstrap::Delegate: 50 // ArcBridgeBootstrap::Delegate:
51 void OnConnectionEstablished(ArcBridgeInstancePtr instance) override; 51 void OnConnectionEstablished(mojom::ArcBridgeInstancePtr instance) override;
52 void OnStopped() override; 52 void OnStopped() override;
53 53
54 // Called when the bridge channel is closed. This typically only happens when 54 // Called when the bridge channel is closed. This typically only happens when
55 // the ARC instance crashes. This is not called during shutdown. 55 // the ARC instance crashes. This is not called during shutdown.
56 void OnChannelClosed(); 56 void OnChannelClosed();
57 57
58 scoped_ptr<ArcBridgeBootstrap> bootstrap_; 58 scoped_ptr<ArcBridgeBootstrap> bootstrap_;
59 59
60 // Mojo endpoints. 60 // Mojo endpoints.
61 mojo::Binding<ArcBridgeHost> binding_; 61 mojo::Binding<mojom::ArcBridgeHost> binding_;
62 ArcBridgeInstancePtr instance_ptr_; 62 mojom::ArcBridgeInstancePtr instance_ptr_;
63 63
64 // If the user's session has started. 64 // If the user's session has started.
65 bool session_started_; 65 bool session_started_;
66 66
67 // If the instance had already been started but the connection to it was 67 // If the instance had already been started but the connection to it was
68 // lost. This should make the instance restart. 68 // lost. This should make the instance restart.
69 bool reconnect_ = false; 69 bool reconnect_ = false;
70 70
71 // WeakPtrFactory to use callbacks. 71 // WeakPtrFactory to use callbacks.
72 base::WeakPtrFactory<ArcBridgeServiceImpl> weak_factory_; 72 base::WeakPtrFactory<ArcBridgeServiceImpl> weak_factory_;
73 73
74 DISALLOW_COPY_AND_ASSIGN(ArcBridgeServiceImpl); 74 DISALLOW_COPY_AND_ASSIGN(ArcBridgeServiceImpl);
75 }; 75 };
76 76
77 } // namespace arc 77 } // namespace arc
78 78
79 #endif // COMPONENTS_ARC_ARC_BRIDGE_SERVICE_IMPL_H_ 79 #endif // COMPONENTS_ARC_ARC_BRIDGE_SERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « components/arc/arc_bridge_service.cc ('k') | components/arc/arc_bridge_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698