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

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

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_impl.h ('k') | components/arc/audio/arc_audio_bridge.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 #include "components/arc/arc_bridge_service_impl.h" 5 #include "components/arc/arc_bridge_service_impl.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 void ArcBridgeServiceImpl::SetDetectedAvailability(bool arc_available) { 77 void ArcBridgeServiceImpl::SetDetectedAvailability(bool arc_available) {
78 DCHECK(CalledOnValidThread()); 78 DCHECK(CalledOnValidThread());
79 if (available() == arc_available) 79 if (available() == arc_available)
80 return; 80 return;
81 SetAvailable(arc_available); 81 SetAvailable(arc_available);
82 PrerequisitesChanged(); 82 PrerequisitesChanged();
83 } 83 }
84 84
85 void ArcBridgeServiceImpl::OnConnectionEstablished( 85 void ArcBridgeServiceImpl::OnConnectionEstablished(
86 ArcBridgeInstancePtr instance) { 86 mojom::ArcBridgeInstancePtr instance) {
87 DCHECK(CalledOnValidThread()); 87 DCHECK(CalledOnValidThread());
88 if (state() != State::CONNECTING) { 88 if (state() != State::CONNECTING) {
89 VLOG(1) << "StopInstance() called while connecting"; 89 VLOG(1) << "StopInstance() called while connecting";
90 return; 90 return;
91 } 91 }
92 92
93 instance_ptr_ = std::move(instance); 93 instance_ptr_ = std::move(instance);
94 instance_ptr_.set_connection_error_handler(base::Bind( 94 instance_ptr_.set_connection_error_handler(base::Bind(
95 &ArcBridgeServiceImpl::OnChannelClosed, weak_factory_.GetWeakPtr())); 95 &ArcBridgeServiceImpl::OnChannelClosed, weak_factory_.GetWeakPtr()));
96 96
(...skipping 19 matching lines...) Expand all
116 // This will happen when the instance is shut down. Ignore that case. 116 // This will happen when the instance is shut down. Ignore that case.
117 return; 117 return;
118 } 118 }
119 VLOG(1) << "Mojo connection lost"; 119 VLOG(1) << "Mojo connection lost";
120 CloseAllChannels(); 120 CloseAllChannels();
121 reconnect_ = true; 121 reconnect_ = true;
122 StopInstance(); 122 StopInstance();
123 } 123 }
124 124
125 } // namespace arc 125 } // namespace arc
OLDNEW
« no previous file with comments | « components/arc/arc_bridge_service_impl.h ('k') | components/arc/audio/arc_audio_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698