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

Unified Diff: components/devtools_bridge/android/java/src/org/chromium/components/devtools_bridge/commands/CommandDefinition.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/commands/CommandDefinition.java
diff --git a/components/devtools_bridge/android/java/src/org/chromium/components/devtools_bridge/commands/CommandDefinition.java b/components/devtools_bridge/android/java/src/org/chromium/components/devtools_bridge/commands/CommandDefinition.java
deleted file mode 100644
index b7ddaf0fbca48cc9903c3e2c4947e8e13e93df07..0000000000000000000000000000000000000000
--- a/components/devtools_bridge/android/java/src/org/chromium/components/devtools_bridge/commands/CommandDefinition.java
+++ /dev/null
@@ -1,40 +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.commands;
-
-import java.util.List;
-import java.util.Map;
-
-/**
- * Definition for a Command and a command factory. Definition needed when
- * registering in GCD. GCD only interested in in-parameters so to CommandDefinition.
- */
-public abstract class CommandDefinition {
- private final String mName;
- private final List<ParamDefinition<?>> mInParams;
-
- public CommandDefinition(String name, List<ParamDefinition<?>> inParams) {
- mName = name;
- mInParams = inParams;
- }
-
- public Iterable<ParamDefinition<?>> inParams() {
- return mInParams;
- }
-
- public String shortName() {
- return "_" + mName;
- }
-
- public String fullName() {
- return "base._" + mName;
- }
-
- /**
- * Factory method for creaiting a command from serialized state.
- */
- public abstract Command newCommand(String id, Map<String, String> actualParameters)
- throws CommandFormatException;
-}

Powered by Google App Engine
This is Rietveld 408576698