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

Unified Diff: components/devtools_bridge/android/java/src/org/chromium/components/devtools_bridge/SessionDependencyFactory.java

Issue 1142463003: Remove devtools_bridge component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/devtools_bridge/android/java/src/org/chromium/components/devtools_bridge/SessionDependencyFactory.java
diff --git a/components/devtools_bridge/android/java/src/org/chromium/components/devtools_bridge/SessionDependencyFactory.java b/components/devtools_bridge/android/java/src/org/chromium/components/devtools_bridge/SessionDependencyFactory.java
deleted file mode 100644
index e90e8ce40989d1df33149abefcd6544ac4385d9a..0000000000000000000000000000000000000000
--- a/components/devtools_bridge/android/java/src/org/chromium/components/devtools_bridge/SessionDependencyFactory.java
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2014 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.components.devtools_bridge;
-
-/**
- * Implements AbstractDataChannel and AbstractPeerConnection on top of org.webrtc.* API.
- * Isolation is needed because some configuration of DevTools bridge may not be based on
- * Java API.
- * In addition abstraction layer isolates SessionBase from complexity of underlying API
- * beside used features.
- */
-public abstract class SessionDependencyFactory {
- private interface Constructor {
- SessionDependencyFactory newInstance();
- }
-
- private static Constructor sConstructor;
-
- public static SessionDependencyFactory newInstance() {
- return sConstructor.newInstance();
- }
-
- public static <T extends SessionDependencyFactory> void init(final Class<T> c) {
- sConstructor = new Constructor() {
- @Override
- public SessionDependencyFactory newInstance() {
- try {
- return c.newInstance();
- } catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
- };
- }
-
- public abstract AbstractPeerConnection createPeerConnection(
- RTCConfiguration config, AbstractPeerConnection.Observer observer);
-
- public abstract SocketTunnel newSocketTunnelServer(String socketName);
-
- public abstract void dispose();
-}

Powered by Google App Engine
This is Rietveld 408576698