You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
610 B
25 lines
610 B
// Copyright 2012 The Chromium Authors
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
package org.chromium.net;
|
|
|
|
import androidx.annotation.IntDef;
|
|
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
|
|
@IntDef({
|
|
#define NET_ERROR(name, value) NetError.ERR_##name,
|
|
#include "net/base/net_error_list.h"
|
|
#undef NET_ERROR
|
|
NetError.OK
|
|
})
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
public @interface NetError {
|
|
int OK = 0;
|
|
#define NET_ERROR(name, value) int ERR_##name = value;
|
|
#include "net/base/net_error_list.h"
|
|
#undef NET_ERROR
|
|
}
|