mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 23:38:38 +09:00
parent
1a823f5ad6
commit
e17c0d4d87
10 changed files with 0 additions and 159 deletions
|
|
@ -2403,61 +2403,6 @@ ContentChild::DeallocPOfflineCacheUpdateChild(POfflineCacheUpdateChild* actor)
|
|||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
ContentChild::RecvStartProfiler(const ProfilerInitParams& params)
|
||||
{
|
||||
nsTArray<const char*> featureArray;
|
||||
for (size_t i = 0; i < params.features().Length(); ++i) {
|
||||
featureArray.AppendElement(params.features()[i].get());
|
||||
}
|
||||
|
||||
nsTArray<const char*> threadNameFilterArray;
|
||||
for (size_t i = 0; i < params.threadFilters().Length(); ++i) {
|
||||
threadNameFilterArray.AppendElement(params.threadFilters()[i].get());
|
||||
}
|
||||
|
||||
profiler_start(params.entries(), params.interval(),
|
||||
featureArray.Elements(), featureArray.Length(),
|
||||
threadNameFilterArray.Elements(),
|
||||
threadNameFilterArray.Length());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
ContentChild::RecvStopProfiler()
|
||||
{
|
||||
profiler_stop();
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
ContentChild::RecvPauseProfiler(const bool& aPause)
|
||||
{
|
||||
if (aPause) {
|
||||
profiler_pause();
|
||||
} else {
|
||||
profiler_resume();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
ContentChild::RecvGatherProfile()
|
||||
{
|
||||
nsCString profileCString;
|
||||
UniquePtr<char[]> profile = profiler_get_profile();
|
||||
if (profile) {
|
||||
profileCString = nsCString(profile.get(), strlen(profile.get()));
|
||||
} else {
|
||||
profileCString = EmptyCString();
|
||||
}
|
||||
|
||||
Unused << SendProfile(profileCString);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
ContentChild::RecvLoadPluginResult(const uint32_t& aPluginId,
|
||||
const bool& aResult)
|
||||
|
|
|
|||
|
|
@ -454,14 +454,6 @@ public:
|
|||
|
||||
virtual bool RecvUpdateWindow(const uintptr_t& aChildId) override;
|
||||
|
||||
virtual bool RecvStartProfiler(const ProfilerInitParams& params) override;
|
||||
|
||||
virtual bool RecvPauseProfiler(const bool& aPause) override;
|
||||
|
||||
virtual bool RecvStopProfiler() override;
|
||||
|
||||
virtual bool RecvGatherProfile() override;
|
||||
|
||||
virtual bool RecvDomainSetChanged(const uint32_t& aSetType,
|
||||
const uint32_t& aChangeType,
|
||||
const OptionalURIParams& aDomain) override;
|
||||
|
|
|
|||
|
|
@ -4474,13 +4474,6 @@ ContentParent::RecvCreateWindow(PBrowserParent* aThisTab,
|
|||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
ContentParent::RecvProfile(const nsCString& aProfile)
|
||||
{
|
||||
/*** STUB ***/
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
ContentParent::RecvGetGraphicsDeviceInitData(ContentDeviceData* aOut)
|
||||
{
|
||||
|
|
@ -4567,12 +4560,6 @@ ContentParent::RecvNotifyBenchmarkResult(const nsString& aCodecName,
|
|||
return true;
|
||||
}
|
||||
|
||||
void
|
||||
ContentParent::StartProfiler(nsIProfilerStartParams* aParams)
|
||||
{
|
||||
/*** STUB ***/
|
||||
}
|
||||
|
||||
bool
|
||||
ContentParent::RecvNotifyPushObservers(const nsCString& aScope,
|
||||
const IPC::Principal& aPrincipal,
|
||||
|
|
|
|||
|
|
@ -1015,12 +1015,8 @@ private:
|
|||
virtual bool RecvUpdateDropEffect(const uint32_t& aDragAction,
|
||||
const uint32_t& aDropEffect) override;
|
||||
|
||||
virtual bool RecvProfile(const nsCString& aProfile) override;
|
||||
|
||||
virtual bool RecvGetGraphicsDeviceInitData(ContentDeviceData* aOut) override;
|
||||
|
||||
void StartProfiler(nsIProfilerStartParams* aParams);
|
||||
|
||||
virtual bool RecvGetAndroidSystemInfo(AndroidSystemInfo* aInfo) override;
|
||||
|
||||
virtual bool RecvNotifyBenchmarkResult(const nsString& aCodecName,
|
||||
|
|
|
|||
|
|
@ -464,15 +464,6 @@ child:
|
|||
*/
|
||||
async LoadPluginResult(uint32_t aPluginId, bool aResult);
|
||||
|
||||
/**
|
||||
* Control the Gecko Profiler in the child process.
|
||||
*/
|
||||
async StartProfiler(ProfilerInitParams params);
|
||||
async StopProfiler();
|
||||
async PauseProfiler(bool aPause);
|
||||
|
||||
async GatherProfile();
|
||||
|
||||
async InvokeDragSession(IPCDataTransfer[] transfers, uint32_t action);
|
||||
|
||||
async EndDragSession(bool aDoneDrag, bool aUserCancelled,
|
||||
|
|
@ -958,8 +949,6 @@ parent:
|
|||
async PContentPermissionRequest(PermissionRequest[] aRequests, Principal aPrincipal,
|
||||
TabId tabId);
|
||||
|
||||
async Profile(nsCString aProfile);
|
||||
|
||||
/**
|
||||
* Request graphics initialization information from the parent.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -92,14 +92,6 @@ child:
|
|||
|
||||
async SetParentHangTimeout(uint32_t seconds);
|
||||
|
||||
/**
|
||||
* Control the Gecko Profiler in the plugin process.
|
||||
*/
|
||||
async StartProfiler(ProfilerInitParams params);
|
||||
async StopProfiler();
|
||||
|
||||
async GatherProfile();
|
||||
|
||||
async SettingChanged(PluginSettings settings);
|
||||
|
||||
async NPP_SetValue_NPNVaudioDeviceChangeDetails(NPAudioDeviceChangeDetailsIPC changeDetails);
|
||||
|
|
@ -148,8 +140,6 @@ parent:
|
|||
// down the plugin process in response.
|
||||
async NotifyContentModuleDestroyed();
|
||||
|
||||
async Profile(nsCString aProfile);
|
||||
|
||||
// Answers to request about site data
|
||||
async ReturnClearSiteData(NPError aRv, uint64_t aCallbackId);
|
||||
|
||||
|
|
|
|||
|
|
@ -2549,48 +2549,6 @@ PluginModuleChild::ProcessNativeEvents() {
|
|||
}
|
||||
#endif
|
||||
|
||||
bool
|
||||
PluginModuleChild::RecvStartProfiler(const ProfilerInitParams& params)
|
||||
{
|
||||
nsTArray<const char*> featureArray;
|
||||
for (size_t i = 0; i < params.features().Length(); ++i) {
|
||||
featureArray.AppendElement(params.features()[i].get());
|
||||
}
|
||||
|
||||
nsTArray<const char*> threadNameFilterArray;
|
||||
for (size_t i = 0; i < params.threadFilters().Length(); ++i) {
|
||||
threadNameFilterArray.AppendElement(params.threadFilters()[i].get());
|
||||
}
|
||||
|
||||
profiler_start(params.entries(), params.interval(),
|
||||
featureArray.Elements(), featureArray.Length(),
|
||||
threadNameFilterArray.Elements(), threadNameFilterArray.Length());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
PluginModuleChild::RecvStopProfiler()
|
||||
{
|
||||
profiler_stop();
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
PluginModuleChild::RecvGatherProfile()
|
||||
{
|
||||
nsCString profileCString;
|
||||
UniquePtr<char[]> profile = profiler_get_profile();
|
||||
if (profile != nullptr) {
|
||||
profileCString = nsCString(profile.get(), strlen(profile.get()));
|
||||
} else {
|
||||
profileCString = nsCString("", 0);
|
||||
}
|
||||
|
||||
Unused << SendProfile(profileCString);
|
||||
return true;
|
||||
}
|
||||
|
||||
NPError
|
||||
PluginModuleChild::PluginRequiresAudioDeviceChanges(
|
||||
PluginInstanceChild* aInstance,
|
||||
|
|
|
|||
|
|
@ -125,10 +125,6 @@ protected:
|
|||
virtual bool
|
||||
RecvProcessNativeEventsInInterruptCall() override;
|
||||
|
||||
virtual bool RecvStartProfiler(const ProfilerInitParams& params) override;
|
||||
virtual bool RecvStopProfiler() override;
|
||||
virtual bool RecvGatherProfile() override;
|
||||
|
||||
virtual bool
|
||||
AnswerModuleSupportsAsyncRender(bool* aResult) override;
|
||||
public:
|
||||
|
|
|
|||
|
|
@ -2642,13 +2642,6 @@ PluginModuleParent::AnswerNPN_SetValue_NPPVpluginRequiresAudioDeviceChanges(
|
|||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
PluginModuleChromeParent::RecvProfile(const nsCString& aProfile)
|
||||
{
|
||||
/*** STUB ***/
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
PluginModuleParent::AnswerGetKeyState(const int32_t& aVirtKey, int16_t* aRet)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -185,8 +185,6 @@ protected:
|
|||
|
||||
virtual bool RecvNotifyContentModuleDestroyed() override { return true; }
|
||||
|
||||
virtual bool RecvProfile(const nsCString& aProfile) override { return true; }
|
||||
|
||||
virtual bool AnswerGetKeyState(const int32_t& aVirtKey, int16_t* aRet) override;
|
||||
|
||||
virtual bool RecvReturnClearSiteData(const NPError& aRv,
|
||||
|
|
@ -463,9 +461,6 @@ class PluginModuleChromeParent
|
|||
|
||||
void CachedSettingChanged();
|
||||
|
||||
virtual bool
|
||||
RecvProfile(const nsCString& aProfile) override;
|
||||
|
||||
virtual bool
|
||||
AnswerGetKeyState(const int32_t& aVirtKey, int16_t* aRet) override;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue