OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 package org.chromium.mojo.bindings; | 5 package org.chromium.mojo.bindings; |
6 | 6 |
7 import android.annotation.SuppressLint; | 7 import android.annotation.SuppressLint; |
8 | 8 |
9 import org.chromium.mojo.system.Core; | 9 import org.chromium.mojo.system.Core; |
10 import org.chromium.mojo.system.MessagePipeHandle; | 10 import org.chromium.mojo.system.MessagePipeHandle; |
(...skipping 30 matching lines...) Expand all Loading... |
41 handleConnectorClose(); | 41 handleConnectorClose(); |
42 } | 42 } |
43 | 43 |
44 } | 44 } |
45 | 45 |
46 /** | 46 /** |
47 * | 47 * |
48 * {@link MessageReceiver} used to return responses to the caller. | 48 * {@link MessageReceiver} used to return responses to the caller. |
49 */ | 49 */ |
50 class ResponderThunk implements MessageReceiver { | 50 class ResponderThunk implements MessageReceiver { |
51 private boolean mAcceptWasInvoked = false; | 51 private boolean mAcceptWasInvoked; |
52 | 52 |
53 /** | 53 /** |
54 * @see | 54 * @see |
55 * MessageReceiver#accept(Message) | 55 * MessageReceiver#accept(Message) |
56 */ | 56 */ |
57 @Override | 57 @Override |
58 public boolean accept(Message message) { | 58 public boolean accept(Message message) { |
59 mAcceptWasInvoked = true; | 59 mAcceptWasInvoked = true; |
60 return RouterImpl.this.accept(message); | 60 return RouterImpl.this.accept(message); |
61 } | 61 } |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 mExecutor.execute(new Runnable() { | 258 mExecutor.execute(new Runnable() { |
259 | 259 |
260 @Override | 260 @Override |
261 public void run() { | 261 public void run() { |
262 close(); | 262 close(); |
263 } | 263 } |
264 }); | 264 }); |
265 } | 265 } |
266 } | 266 } |
267 } | 267 } |
OLD | NEW |