OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 package org.chromium.net; | |
6 | |
7 /** | |
8 * Registration policy which make sure that the listener is always registered. | |
9 */ | |
10 public class RegistrationPolicyAlwaysRegister extends RegistrationPolicy { | |
11 public RegistrationPolicyAlwaysRegister() {} | |
pauljensen
2015/10/01 12:06:37
why do we need a constructor?
timvolodine
2015/10/05 17:26:45
no need. done.
| |
12 | |
13 protected void init(Listener listener) { | |
14 super.init(listener); | |
15 notifyRegister(); | |
16 } | |
17 | |
18 protected void destroy() {} | |
19 } | |
OLD | NEW |