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

Unified Diff: components/cronet/android/api/src/org/chromium/net/InlineExecutionProhibitedException.java

Issue 2283243002: Allow direct executors in cronet. (Closed)
Patch Set: Improve thread checking Created 4 years, 3 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
Index: components/cronet/android/api/src/org/chromium/net/InlineExecutionProhibitedException.java
diff --git a/components/cronet/android/api/src/org/chromium/net/InlineExecutionProhibitedException.java b/components/cronet/android/api/src/org/chromium/net/InlineExecutionProhibitedException.java
new file mode 100644
index 0000000000000000000000000000000000000000..227737a6e4907e198ea6d049e82f9dba2caa510c
--- /dev/null
+++ b/components/cronet/android/api/src/org/chromium/net/InlineExecutionProhibitedException.java
@@ -0,0 +1,17 @@
+// Copyright 2016 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.net;
+
+import java.util.concurrent.RejectedExecutionException;
+
+/**
+ * Thrown when an executor runs a submitted runnable inline in {@link
+ * java.util.concurrent.Executor#execute(Runnable)}.
+ */
+public final class InlineExecutionProhibitedException extends RejectedExecutionException {
+ public InlineExecutionProhibitedException() {
+ super("Inline execution is prohibited for this request");
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698