OLD | NEW |
---|---|
(Empty) | |
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. | |
4 | |
5 #ifndef EXTENSIONS_BROWSER_DELAYED_START_RENDER_HOST_H_ | |
6 #define EXTENSIONS_BROWSER_DELAYED_START_RENDER_HOST_H_ | |
7 | |
8 namespace extensions { | |
9 | |
10 // A browser component that tracks a renderer. It allows for its renderer | |
11 // startup to be delayed, to throttle resource usage upon profile startup. | |
12 // To be used with ExtensionHostQueue. | |
13 // | |
14 // Note that if BackgroundContents and ExtensionHost are unified | |
15 // (crbug.com/77790), this interface will be no longer needed. | |
16 class DelayedStartRenderHost { | |
Yoyo Zhou
2015/02/18 22:53:18
This is not my favoritest name - suggestions welco
Devlin
2015/02/18 23:22:12
Even though the DelayedStart part of this is a pre
Yoyo Zhou
2015/02/19 02:55:37
I came up with the slightly tautological Extension
Devlin
2015/02/19 16:41:43
Also, I think that having ExtensionQueueHost and E
| |
17 public: | |
18 // Called by the ExtensionHostQueue to create the RenderView. | |
19 virtual void CreateRenderViewNow() = 0; | |
Devlin
2015/02/18 23:22:12
virtual destructor?
Yoyo Zhou
2015/02/19 02:55:37
Done.
| |
20 }; | |
21 | |
22 } // namespace extensions | |
23 | |
24 #endif // EXTENSIONS_BROWSER_DELAYED_START_RENDER_HOST_H_ | |
OLD | NEW |