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

Unified Diff: extensions/browser/deferred_start_render_host.h

Issue 933423003: Make BackgroundContentsService start up BackgroundContents with a delay, as for ExtensionHosts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: edulcni# 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 | « chrome/browser/extensions/chrome_extension_host_delegate.cc ('k') | extensions/browser/extension_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/deferred_start_render_host.h
diff --git a/extensions/browser/deferred_start_render_host.h b/extensions/browser/deferred_start_render_host.h
new file mode 100644
index 0000000000000000000000000000000000000000..f6810c635a8e1de9c82f568afc0935d45b6c8883
--- /dev/null
+++ b/extensions/browser/deferred_start_render_host.h
@@ -0,0 +1,27 @@
+// 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 EXTENSIONS_BROWSER_DEFERRED_START_RENDER_HOST_H_
+#define EXTENSIONS_BROWSER_DEFERRED_START_RENDER_HOST_H_
+
+namespace extensions {
+
+// A browser component that tracks a renderer. It allows for its renderer
+// startup to be deferred, to throttle resource usage upon profile startup.
+// To be used with ExtensionHostQueue.
+//
+// Note that if BackgroundContents and ExtensionHost are unified
+// (crbug.com/77790), this interface will be no longer needed.
+class DeferredStartRenderHost {
+ public:
+ virtual ~DeferredStartRenderHost() {}
+
+ // DO NOT CALL THIS unless you're implementing an ExtensionHostQueue.
+ // Called by the ExtensionHostQueue to create the RenderView.
+ virtual void CreateRenderViewNow() = 0;
+};
+
+} // namespace extensions
+
+#endif // EXTENSIONS_BROWSER_DEFERRED_START_RENDER_HOST_H_
« no previous file with comments | « chrome/browser/extensions/chrome_extension_host_delegate.cc ('k') | extensions/browser/extension_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698