1// Copyright 2012 The Chromium Authors 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5package org.chromium.net; 6 7import androidx.annotation.IntDef; 8 9import java.lang.annotation.Retention; 10import java.lang.annotation.RetentionPolicy; 11 12@IntDef({ 13#define NET_ERROR(name, value) NetError.ERR_##name, 14#include "net/base/net_error_list.h" 15#undef NET_ERROR 16NetError.OK 17}) 18@Retention(RetentionPolicy.SOURCE) 19public @interface NetError { 20int OK = 0; 21#define NET_ERROR(name, value) int ERR_##name = value; 22#include "net/base/net_error_list.h" 23#undef NET_ERROR 24} 25