Based on Nekogram. Key additions: - Rebrand to FoxiGram (app name, APK name, applicationId com.foxigram.app) - Embedded Xray (VLESS+Reality) proxy client via JNI libxray.so - Bundled hidden one-tap proxies (LTE + WiFi), read-only in UI - Auto-restore proxy on restart, rebind to active network (LTE/WiFi) - Server credentials externalized to git-ignored XrayServers.java (+ template) - libxray Go source included; compiled .so, keystore, google-services.json ignored
37 lines
938 B
C++
37 lines
938 B
C++
// Copyright 2018 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
// This is a separate file so that users of process metrics don't need to
|
|
// include windows.h unless they need IoCounters.
|
|
|
|
#ifndef BASE_PROCESS_PROCESS_METRICS_IOCOUNTERS_H_
|
|
#define BASE_PROCESS_PROCESS_METRICS_IOCOUNTERS_H_
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "base/process/process_metrics.h"
|
|
#include "build/build_config.h"
|
|
|
|
#if defined(OS_WIN)
|
|
#include <windows.h>
|
|
#endif
|
|
|
|
namespace base {
|
|
|
|
#if defined(OS_WIN)
|
|
struct IoCounters : public IO_COUNTERS {};
|
|
#elif defined(OS_POSIX)
|
|
struct IoCounters {
|
|
uint64_t ReadOperationCount;
|
|
uint64_t WriteOperationCount;
|
|
uint64_t OtherOperationCount;
|
|
uint64_t ReadTransferCount;
|
|
uint64_t WriteTransferCount;
|
|
uint64_t OtherTransferCount;
|
|
};
|
|
#endif
|
|
|
|
} // namespace base
|
|
|
|
#endif // BASE_PROCESS_PROCESS_METRICS_IOCOUNTERS_H_
|