1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef EXTENSIONS_BROWSER_EXTENSION_HOST_QUEUE_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_HOST_QUEUE_H_
10 class DeferredStartRenderHost
;
12 // An interface for a queue of ExtensionHosts waiting for initialization.
13 // This is used to implement different throttling strategies.
14 class ExtensionHostQueue
{
16 virtual ~ExtensionHostQueue() {}
18 // Adds a host to the queue for RenderView creation.
19 virtual void Add(DeferredStartRenderHost
* host
) = 0;
21 // Removes a host from the queue (for example, it may be deleted before
22 // having a chance to start).
23 virtual void Remove(DeferredStartRenderHost
* host
) = 0;
26 } // namespace extensions
28 #endif // EXTENSIONS_BROWSER_EXTENSION_HOST_QUEUE_H_