• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2011 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 ANDROID_CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_
6 #define ANDROID_CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_
7 
8 // Android specific implementation
9 
10 #include "content/browser/tab_contents/tab_contents.h"
11 
12 // An observer API implemented by classes which are interested in various page
13 // load events from TabContents.  They also get a chance to filter IPC messages.
14 class TabContentsObserver {
15  public:
16 
17  protected:
TabContentsObserver(TabContents * tab_contents)18   TabContentsObserver(TabContents* tab_contents) {
19     tab_contents_ = tab_contents;
20   }
21 
~TabContentsObserver()22   virtual ~TabContentsObserver() {}
23 
tab_contents()24   TabContents* tab_contents() { return tab_contents_; }
25 
26  private:
27   friend class TabContents;
28 
29   TabContents* tab_contents_;
30 
31   DISALLOW_COPY_AND_ASSIGN(TabContentsObserver);
32 };
33 
34 #endif  // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_
35