summaryrefslogtreecommitdiffstats
path: root/content/test/js_injection_ready_observer.h
blob: 76370b5dcafabf5c51a3af9fc8cacf60aa01746e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright (c) 2011 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 CONTENT_TEST_JS_INJECTION_READY_OBSERVER_H_
#define CONTENT_TEST_JS_INJECTION_READY_OBSERVER_H_
#pragma once

namespace content {
class RenderViewHost;
}

// Interface to notify when JavaScript injection is possible.
class JsInjectionReadyObserver {
 public:
  // Called to indicate page entry committed and ready for JavaScript
  // injection. |render_view_host| may be used to route injection messages to
  // the appropriate RenderView.
  virtual void OnJsInjectionReady(
      content::RenderViewHost* render_view_host) = 0;

 protected:
  virtual ~JsInjectionReadyObserver() {}
};

#endif  // CONTENT_TEST_JS_INJECTION_READY_OBSERVER_H_