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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ProcessUtils.java

Issue 10690023: Upstream support for WebKit shared timer toggling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/DEPS ('k') | chrome/browser/android/process_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/ProcessUtils.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ProcessUtils.java b/chrome/android/java/src/org/chromium/chrome/browser/ProcessUtils.java
new file mode 100644
index 0000000000000000000000000000000000000000..aa2292b5c5482161ad990d88424fe70148ed4c6e
--- /dev/null
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ProcessUtils.java
@@ -0,0 +1,25 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package org.chromium.chrome.browser;
+
+/**
+ * A set of utility methods related to the various Chrome processes.
+ */
+public class ProcessUtils {
+ // To prevent this class from being instantiated.
+ private ProcessUtils() {
+ }
+
+ /**
+ * Suspends Webkit timers in all renderers.
+ *
+ * @param suspend true if timers should be suspended.
+ */
+ public static void toggleWebKitSharedTimers(boolean suspend) {
+ nativeToggleWebKitSharedTimers(suspend);
+ }
+
+ private static native void nativeToggleWebKitSharedTimers(boolean suspend);
+}
« no previous file with comments | « chrome/DEPS ('k') | chrome/browser/android/process_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698