OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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.content.browser; | 5 package org.chromium.content.browser; |
6 | 6 |
7 import org.chromium.net.ProxyChangeListener; | 7 import org.chromium.net.ProxyChangeListener; |
8 | 8 |
9 /** | 9 /** |
10 * Implementations of various static methods. | 10 * Implementations of various static methods. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 * Notifications are enabled by default. | 42 * Notifications are enabled by default. |
43 */ | 43 */ |
44 public static void enablePlatformNotifications() { | 44 public static void enablePlatformNotifications() { |
45 ProxyChangeListener.setEnabled(true); | 45 ProxyChangeListener.setEnabled(true); |
46 } | 46 } |
47 | 47 |
48 /** | 48 /** |
49 * Disables platform notifications of data state and proxy changes. | 49 * Disables platform notifications of data state and proxy changes. |
50 * Notifications are enabled by default. | 50 * Notifications are enabled by default. |
51 */ | 51 */ |
52 public static void disablePlatformNotifications () { | 52 public static void disablePlatformNotifications() { |
53 ProxyChangeListener.setEnabled(false); | 53 ProxyChangeListener.setEnabled(false); |
54 } | 54 } |
55 | 55 |
56 // Native functions | 56 // Native functions |
57 | 57 |
58 private static native String nativeFindAddress(String addr); | 58 private static native String nativeFindAddress(String addr); |
59 | 59 |
60 private static native void nativeSetWebKitSharedTimersSuspended(boolean susp
end); | 60 private static native void nativeSetWebKitSharedTimersSuspended(boolean susp
end); |
61 } | 61 } |
OLD | NEW |