blob: b4de4fb0fdc218789efa5952cfa33eafbc62f72d (
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
27
28
29
30
31
32
33
34
|
// 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 ANDROID_CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_
#define ANDROID_CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_
// Android specific implementation
#include "content/browser/tab_contents/tab_contents.h"
// An observer API implemented by classes which are interested in various page
// load events from TabContents. They also get a chance to filter IPC messages.
class TabContentsObserver {
public:
protected:
TabContentsObserver(TabContents* tab_contents) {
tab_contents_ = tab_contents;
}
virtual ~TabContentsObserver() {}
TabContents* tab_contents() { return tab_contents_; }
private:
friend class TabContents;
TabContents* tab_contents_;
DISALLOW_COPY_AND_ASSIGN(TabContentsObserver);
};
#endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_
|