2016-11-19 00:54:57 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
#include "URLClassifierChild.h"
|
|
|
|
#include "nsComponentManagerUtils.h"
|
2017-02-21 04:46:36 +03:00
|
|
|
#include "nsIURI.h"
|
2016-11-19 00:54:57 +03:00
|
|
|
|
|
|
|
using namespace mozilla::dom;
|
|
|
|
|
|
|
|
mozilla::ipc::IPCResult
|
2017-02-21 04:46:36 +03:00
|
|
|
URLClassifierChild::Recv__delete__(const MaybeInfo& aInfo,
|
|
|
|
const nsresult& aResult)
|
2016-11-19 00:54:57 +03:00
|
|
|
{
|
|
|
|
MOZ_ASSERT(mCallback);
|
2017-02-21 04:46:36 +03:00
|
|
|
if (aInfo.type() == MaybeInfo::TClassifierInfo) {
|
|
|
|
mCallback->OnClassifyComplete(aResult, aInfo.get_ClassifierInfo().list(),
|
|
|
|
aInfo.get_ClassifierInfo().provider(),
|
|
|
|
aInfo.get_ClassifierInfo().prefix());
|
2016-11-19 00:54:57 +03:00
|
|
|
}
|
|
|
|
return IPC_OK();
|
|
|
|
}
|