Roll src/third_party/WebKit 63beae6:7fa8deb (svn 201790:201791)
[chromium-blink-merge.git] / extensions / browser / extension_host_queue.h
blob420800bf240783dbd6b734015e0ca4194411d6d3
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_
8 namespace extensions {
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 {
15 public:
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_