equal
deleted
inserted
replaced
|
1 // Copyright (c) 2010 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.debug.core.model; |
|
6 |
|
7 import org.chromium.sdk.Script; |
|
8 |
|
9 /** |
|
10 * A representation of V8 VM resource. The exact nature of the resource is unspecified, we |
|
11 * only know it may contain one or more {@link Script}s. Typically resource is .js or .html file. |
|
12 */ |
|
13 |
|
14 public interface VmResource { |
|
15 VmResourceId getId(); |
|
16 |
|
17 /** |
|
18 * @return script if this resource entirely consists of 1 script, otherwise throws exception |
|
19 * @throws UnsupportedOperationException if this resource does not entirely consists of 1 script |
|
20 * TODO(peter.rybin): redesign this method to normally work with html resources. |
|
21 */ |
|
22 Script getScript(); |
|
23 |
|
24 String getFileName(); |
|
25 } |