org.chromium.sdk/src/org/chromium/sdk/internal/protocol/data/SomeSerialized.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.protocol.data;
       
     6 
       
     7 import org.chromium.sdk.internal.protocolparser.JsonSubtypeCasting;
       
     8 import org.chromium.sdk.internal.protocolparser.JsonType;
       
     9 
       
    10 
       
    11 /**
       
    12  * A serialized form of object. There may be 2 schemas: reference (like pointer) or full description
       
    13  * called "a handle" hereafter. It appears that it's not always statically known which of schemas
       
    14  * is used in every place; thus it requires a base type like this.
       
    15  * <p>Gets serialized in mirror-delay.js,
       
    16  * JSONProtocolSerializer.prototype.serialize_
       
    17  */
       
    18 @JsonType
       
    19 public interface SomeSerialized {
       
    20   @JsonSubtypeCasting
       
    21   SomeRef asSomeRef();
       
    22 
       
    23   @JsonSubtypeCasting
       
    24   SomeHandle asSmthWithHandle();
       
    25 }