summaryrefslogtreecommitdiffstats
path: root/components/html_viewer/html_frame_tree_manager_observer.h
blob: d4633657468faa2ad84ec0245ac2bd3ad398d3eb (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 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 COMPONENTS_HTML_VIEWER_HTML_FRAME_TREE_MANAGER_OBSERVER_H_
#define COMPONENTS_HTML_VIEWER_HTML_FRAME_TREE_MANAGER_OBSERVER_H_

namespace html_viewer {

// Used to inform observers of interesting events to HTMLFrameTreeManager.
class HTMLFrameTreeManagerObserver {
 public:
  // The change_id of the HTMLFrameTreeManager has advanced. In other words,
  // a structure change was done.
  virtual void OnHTMLFrameTreeManagerChangeIdAdvanced() = 0;

  // The HTMLFrameTreeManager was destroyed.
  virtual void OnHTMLFrameTreeManagerDestroyed() = 0;

 protected:
  virtual ~HTMLFrameTreeManagerObserver() {}
};

}  // namespace html_viewer

#endif  // COMPONENTS_HTML_VIEWER_HTML_FRAME_TREE_MANAGER_OBSERVER_H_