org.chromium.debug.core/src/org/chromium/debug/core/model/TabSelector.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.debug.core.model;
       
     6 
       
     7 import java.io.IOException;
       
     8 
       
     9 import org.chromium.sdk.Browser;
       
    10 
       
    11 /**
       
    12  * This interface allows clients to provide various strategies
       
    13  * for selecting a Chromium tab to debug.
       
    14  */
       
    15 public interface TabSelector {
       
    16 
       
    17   /**
       
    18    * @param tabFetcher that is used to download list of tabs; list of tabs
       
    19    *        may be reloaded if needed
       
    20    * @return a tab to debug, or null if the launch configuration should not
       
    21    *         proceed attaching to a Chromium tab
       
    22    * @throws IOException if tabFetcher got network problems downloading tabs
       
    23    */
       
    24   Browser.TabConnector selectTab(Browser.TabFetcher tabFetcher) throws IOException;
       
    25 }