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_DEFERRED_START_RENDER_HOST_H_ |
| 6 #define EXTENSIONS_BROWSER_DEFERRED_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 deferred, 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 DeferredStartRenderHost { |
| 17 public: |
| 18 virtual ~DeferredStartRenderHost() {} |
| 19 |
| 20 // DO NOT CALL THIS unless you're implementing an ExtensionHostQueue. |
| 21 // Called by the ExtensionHostQueue to create the RenderView. |
| 22 virtual void CreateRenderViewNow() = 0; |
| 23 }; |
| 24 |
| 25 } // namespace extensions |
| 26 |
| 27 #endif // EXTENSIONS_BROWSER_DEFERRED_START_RENDER_HOST_H_ |
OLD | NEW |