Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Unified Diff: extensions/browser/serial_extension_host_queue.h

Issue 955713004: Merge 317853 - Make BackgroundContentsService start up BackgroundContents with a delay, as for Exte… (Closed) Base URL: https://chromium.googlesource.com/chromium/src@2311
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/browser/extension_host_queue.h ('k') | extensions/browser/serial_extension_host_queue.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/serial_extension_host_queue.h
diff --git a/extensions/browser/serial_extension_host_queue.h b/extensions/browser/serial_extension_host_queue.h
index 794ff6061f50f0b215e0e68b0905e9e9df235ca8..40d11edd22274dc85319814d19ae3075dc13caf7 100644
--- a/extensions/browser/serial_extension_host_queue.h
+++ b/extensions/browser/serial_extension_host_queue.h
@@ -13,11 +13,11 @@
namespace extensions {
-class ExtensionHost;
+class DeferredStartRenderHost;
-// An ExtensionHostQueue which initializes ExtensionHosts in the order they're
-// Add()ed, with simple rate limiting logic that re-posts each task to the UI
-// thread, to avoid clogging it for a long period of time.
+// An ExtensionHostQueue which initializes DeferredStartRenderHosts in the order
+// they're Add()ed, with simple rate limiting logic that re-posts each task to
+// the UI thread, to avoid clogging it for a long period of time.
class SerialExtensionHostQueue : public ExtensionHostQueue {
public:
SerialExtensionHostQueue();
@@ -25,21 +25,22 @@ class SerialExtensionHostQueue : public ExtensionHostQueue {
private:
// ExtensionHostQueue:
- void Add(ExtensionHost* host) override;
- void Remove(ExtensionHost* host) override;
+ void Add(DeferredStartRenderHost* host) override;
+ void Remove(DeferredStartRenderHost* host) override;
- // Queues up a delayed task to process the next ExtensionHost in the queue.
+ // Queues up a delayed task to process the next DeferredStartRenderHost in
+ // the queue.
void PostTask();
// Creates the RenderView for the next host in the queue.
void ProcessOneHost();
// True if this queue is currently in the process of starting an
- // ExtensionHost.
+ // DeferredStartRenderHost.
bool pending_create_;
- // The list of ExtensionHosts waiting to be started.
- std::list<ExtensionHost*> queue_;
+ // The list of DeferredStartRenderHosts waiting to be started.
+ std::list<DeferredStartRenderHost*> queue_;
base::WeakPtrFactory<SerialExtensionHostQueue> ptr_factory_;
« no previous file with comments | « extensions/browser/extension_host_queue.h ('k') | extensions/browser/serial_extension_host_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698