org.chromium.sdk/src/org/chromium/sdk/internal/V8ContextFilter.java
changeset 2 e4420d2515f1
equal deleted inserted replaced
1:ef76fc2ac88c 2:e4420d2515f1
       
     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;
       
     6 
       
     7 import org.chromium.sdk.internal.protocol.data.ContextHandle;
       
     8 
       
     9 /**
       
    10  * Embedder-specific filter for V8 VM contexts.
       
    11  */
       
    12 public interface V8ContextFilter {
       
    13   /**
       
    14    * Given a context handler, it should check whether it is our context or not.
       
    15    * The field {@link ContextHandle#data()} of embedder-specific type should be used.
       
    16    * @return whether the context is ours
       
    17    */
       
    18   boolean isContextOurs(ContextHandle contextHandle);
       
    19 }