org.chromium.sdk/src/org/chromium/sdk/internal/tools/v8/processor/V8EventProcessor.java
equal
deleted
inserted
replaced
|
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
|
2 // Use of this source code is governed by a BSD-style license that can be |
|
3 // found in the LICENSE file. |
|
4 |
|
5 package org.chromium.sdk.internal.tools.v8.processor; |
|
6 |
|
7 import org.chromium.sdk.internal.DebugSession; |
|
8 import org.chromium.sdk.internal.protocol.EventNotification; |
|
9 |
|
10 /** |
|
11 * An abstract base implementation of DebugContextImpl-aware |
|
12 * reply handlers for certain V8 commands. |
|
13 * <p> |
|
14 * NB! The {@link #messageReceived(org.json.simple.JSONObject)} implementation |
|
15 * MUST NOT perform debugger commands in a blocking way the current thread. |
|
16 */ |
|
17 public abstract class V8EventProcessor { |
|
18 |
|
19 private final DebugSession debugSession; |
|
20 |
|
21 public V8EventProcessor(DebugSession debugSession) { |
|
22 this.debugSession = debugSession; |
|
23 } |
|
24 |
|
25 public abstract void messageReceived(EventNotification eventMessage); |
|
26 |
|
27 protected DebugSession getDebugSession() { |
|
28 return debugSession; |
|
29 } |
|
30 } |