mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
0b96ada9ac
Summary: Without this thing some stuff does not compile. Changelog: [Internal] Fabric-specific internal change. Reviewed By: fkgozali Differential Revision: D23948622 fbshipit-source-id: f066ada183c0fd6a7b5eec542395d44bbbfe80a3
46 lines
977 B
C++
46 lines
977 B
C++
/*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <react/renderer/core/ReactPrimitives.h>
|
|
#include <react/utils/Telemetry.h>
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
/*
|
|
* Represents telemetry data associated with a image request
|
|
*/
|
|
class ImageTelemetry final {
|
|
public:
|
|
ImageTelemetry(SurfaceId const surfaceId) : surfaceId_(surfaceId) {}
|
|
|
|
/*
|
|
* Signaling
|
|
*/
|
|
void willRequestUrl();
|
|
|
|
/*
|
|
* Reading
|
|
*/
|
|
TelemetryTimePoint getWillRequestUrlTime() const;
|
|
|
|
SurfaceId getSurfaceId() const;
|
|
std::string getLoaderModuleName() const;
|
|
void setLoaderModuleName(std::string const &loaderModuleName);
|
|
|
|
private:
|
|
TelemetryTimePoint willRequestUrlTime_{kTelemetryUndefinedTimePoint};
|
|
|
|
const SurfaceId surfaceId_;
|
|
std::string loaderModuleName_{""};
|
|
};
|
|
|
|
} // namespace react
|
|
} // namespace facebook
|