Finish refactoring of DomCodeToUsLayoutKeyboardCode().
[chromium-blink-merge.git] / extensions / browser / deferred_start_render_host_observer.h
blob09f04a27af3d02fc898549fab6e3fee79a771385
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_DEFERRED_START_RENDER_HOST_OBSERVER_H_
6 #define EXTENSIONS_BROWSER_DEFERRED_START_RENDER_HOST_OBSERVER_H_
8 namespace extensions {
9 class DeferredStartRenderHost;
11 // Observer of DeferredStartRenderHost lifetime.
13 // Note that if BackgroundContents and ExtensionHost are unified
14 // (crbug.com/77790), this can be replaced by ExtensionHostObserver.
15 class DeferredStartRenderHostObserver {
16 public:
17 virtual ~DeferredStartRenderHostObserver() {}
19 // Called when a DeferredStartRenderHost started loading.
20 virtual void OnDeferredStartRenderHostDidStartFirstLoad(
21 const DeferredStartRenderHost* host) {}
23 // Called when a DeferredStartRenderHost stopped loading.
24 virtual void OnDeferredStartRenderHostDidStopFirstLoad(
25 const DeferredStartRenderHost* host) {}
27 // Called when a DeferredStartRenderHost is destroyed.
28 virtual void OnDeferredStartRenderHostDestroyed(
29 const DeferredStartRenderHost* host) {}
32 } // namespace extensions
34 #endif // EXTENSIONS_BROWSER_DEFERRED_START_RENDER_HOST_OBSERVER_H_