| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_ | 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_ | 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/tab_contents/navigation_controller.h" | 8 #include "content/browser/tab_contents/navigation_controller.h" |
| 9 #include "ipc/ipc_channel.h" | 9 #include "ipc/ipc_channel.h" |
| 10 | 10 |
| 11 struct ViewHostMsg_FrameNavigate_Params; | 11 struct ViewHostMsg_FrameNavigate_Params; |
| 12 | 12 |
| 13 // An observer API implemented by classes which are interested in various page | 13 // An observer API implemented by classes which are interested in various page |
| 14 // load events from TabContents. They also get a chance to filter IPC messages. | 14 // load events from TabContents. They also get a chance to filter IPC messages. |
| 15 class TabContentsObserver : public IPC::Channel::Listener { | 15 class TabContentsObserver : public IPC::Channel::Listener { |
| 16 public: | 16 public: |
| 17 virtual void NavigateToPendingEntry() { } | 17 virtual void NavigateToPendingEntry() { } |
| 18 | 18 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 59 |
| 60 void set_tab_contents(TabContents* tc) { tab_contents_ = tc; } | 60 void set_tab_contents(TabContents* tc) { tab_contents_ = tc; } |
| 61 | 61 |
| 62 TabContents* tab_contents_; | 62 TabContents* tab_contents_; |
| 63 // The routing ID of the associated TabContents. | 63 // The routing ID of the associated TabContents. |
| 64 int routing_id_; | 64 int routing_id_; |
| 65 | 65 |
| 66 DISALLOW_COPY_AND_ASSIGN(TabContentsObserver); | 66 DISALLOW_COPY_AND_ASSIGN(TabContentsObserver); |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_ | 69 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_ |
| OLD | NEW |