| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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" |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 virtual ~WebContentsObserver(); | 118 virtual ~WebContentsObserver(); |
| 119 | 119 |
| 120 // Start observing a different WebContents; used with the default constructor. | 120 // Start observing a different WebContents; used with the default constructor. |
| 121 void Observe(WebContents* web_contents); | 121 void Observe(WebContents* web_contents); |
| 122 | 122 |
| 123 WebContents* web_contents() const; | 123 WebContents* web_contents() const; |
| 124 | 124 |
| 125 private: | 125 private: |
| 126 friend class ::WebContentsImpl; | 126 friend class ::WebContentsImpl; |
| 127 | 127 |
| 128 // Invoked from WebContentsImpl. Invokes TabContentsDestroyed and NULL out | 128 // Invoked from WebContentsImpl. Invokes WebContentsDestroyed and NULL out |
| 129 // |tab_contents_|. | 129 // |web_contents_|. |
| 130 void TabContentsDestroyed(); | 130 void WebContentsImplDestroyed(); |
| 131 | 131 |
| 132 WebContentsImpl* web_contents_; | 132 WebContentsImpl* web_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 |