Commit 8839f04c authored by mlamouri's avatar mlamouri Committed by Commit bot

Remove PermissionController.* files

It is no longer compiled.

BUG=None

Review-Url: https://codereview.chromium.org/2392893002
Cr-Commit-Position: refs/heads/master@{#422770}
parent f0889fe1
// Copyright 2015 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.
#include "modules/permissions/PermissionController.h"
#include "core/frame/LocalFrame.h"
#include "platform/RuntimeEnabledFeatures.h"
namespace blink {
PermissionController::~PermissionController() {}
void PermissionController::provideTo(LocalFrame& frame) {
ASSERT(RuntimeEnabledFeatures::permissionsEnabled());
PermissionController* controller = new PermissionController(frame);
Supplement<LocalFrame>::provideTo(frame, supplementName(), controller);
}
PermissionController* PermissionController::from(LocalFrame& frame) {
return static_cast<PermissionController*>(
Supplement<LocalFrame>::from(frame, supplementName()));
}
PermissionController::PermissionController(LocalFrame& frame)
: DOMWindowProperty(&frame) {}
const char* PermissionController::supplementName() {
return "PermissionController";
}
void PermissionController::frameDestroyed() {
DOMWindowProperty::frameDestroyed();
}
DEFINE_TRACE(PermissionController) {
DOMWindowProperty::trace(visitor);
Supplement<LocalFrame>::trace(visitor);
}
} // namespace blink
// Copyright 2015 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.
#ifndef PermissionController_h
#define PermissionController_h
#include "core/frame/DOMWindowProperty.h"
#include "modules/ModulesExport.h"
#include "platform/Supplementable.h"
namespace blink {
class MODULES_EXPORT PermissionController final
: public GarbageCollectedFinalized<PermissionController>,
public Supplement<LocalFrame>,
public DOMWindowProperty {
WTF_MAKE_NONCOPYABLE(PermissionController);
USING_GARBAGE_COLLECTED_MIXIN(PermissionController);
public:
virtual ~PermissionController();
static void provideTo(LocalFrame&);
static PermissionController* from(LocalFrame&);
static const char* supplementName();
DECLARE_VIRTUAL_TRACE();
private:
PermissionController(LocalFrame&);
// Inherited from DOMWindowProperty.
void frameDestroyed() override;
};
} // namespace blink
#endif // PermissionController_h
......@@ -58,7 +58,6 @@
#include "modules/bluetooth/BluetoothSupplement.h"
#include "modules/installedapp/InstalledAppController.h"
#include "modules/mediastream/UserMediaController.h"
#include "modules/permissions/PermissionController.h"
#include "modules/presentation/PresentationController.h"
#include "modules/push_messaging/PushController.h"
#include "modules/screen_orientation/ScreenOrientationController.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment