blob: 420800bf240783dbd6b734015e0ca4194411d6d3 [file] [log] [blame]
// 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.
namespace extensions {
class DeferredStartRenderHost;
// An interface for a queue of ExtensionHosts waiting for initialization.
// This is used to implement different throttling strategies.
class ExtensionHostQueue {
virtual ~ExtensionHostQueue() {}
// Adds a host to the queue for RenderView creation.
virtual void Add(DeferredStartRenderHost* host) = 0;
// Removes a host from the queue (for example, it may be deleted before
// having a chance to start).
virtual void Remove(DeferredStartRenderHost* host) = 0;
} // namespace extensions