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