| 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 CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "base/process_util.h" | 8 #include "base/process_util.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "content/public/browser/navigation_controller.h" | 10 #include "content/public/browser/navigation_controller.h" |
| 11 #include "content/public/common/page_transition_types.h" | 11 #include "content/public/common/page_transition_types.h" |
| 12 #include "ipc/ipc_channel.h" | 12 #include "ipc/ipc_channel.h" |
| 13 #include "webkit/glue/window_open_disposition.h" | 13 #include "webkit/glue/window_open_disposition.h" |
| 14 | 14 |
| 15 class RenderViewHost; | |
| 16 class TabContents; | 15 class TabContents; |
| 17 | 16 |
| 18 namespace content { | 17 namespace content { |
| 19 | 18 |
| 19 class RenderViewHost; |
| 20 class WebContents; | 20 class WebContents; |
| 21 struct FrameNavigateParams; | 21 struct FrameNavigateParams; |
| 22 struct LoadCommittedDetails; | 22 struct LoadCommittedDetails; |
| 23 struct Referrer; | 23 struct Referrer; |
| 24 | 24 |
| 25 // An observer API implemented by classes which are interested in various page | 25 // An observer API implemented by classes which are interested in various page |
| 26 // load events from TabContents. They also get a chance to filter IPC messages. | 26 // load events from TabContents. They also get a chance to filter IPC messages. |
| 27 class CONTENT_EXPORT WebContentsObserver : public IPC::Channel::Listener, | 27 class CONTENT_EXPORT WebContentsObserver : public IPC::Channel::Listener, |
| 28 public IPC::Message::Sender { | 28 public IPC::Message::Sender { |
| 29 public: | 29 public: |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 void TabContentsDestroyed(); | 130 void TabContentsDestroyed(); |
| 131 | 131 |
| 132 TabContents* tab_contents_; | 132 TabContents* tab_contents_; |
| 133 | 133 |
| 134 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 134 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
| 135 }; | 135 }; |
| 136 | 136 |
| 137 } // namespace content | 137 } // namespace content |
| 138 | 138 |
| 139 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 139 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
| OLD | NEW |