NetError.template 636 B

123456789101112131415161718192021222324
  1. // Copyright (c) 2012 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. package org.chromium.net;
  5. import androidx.annotation.IntDef;
  6. import java.lang.annotation.Retention;
  7. import java.lang.annotation.RetentionPolicy;
  8. @IntDef({
  9. #define NET_ERROR(name, value) NetError.ERR_##name,
  10. #include "net/base/net_error_list.h"
  11. #undef NET_ERROR
  12. NetError.OK
  13. })
  14. @Retention(RetentionPolicy.SOURCE)
  15. public @interface NetError {
  16. int OK = 0;
  17. #define NET_ERROR(name, value) int ERR_##name = value;
  18. #include "net/base/net_error_list.h"
  19. #undef NET_ERROR
  20. }