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.h" | 8 #include "base/process.h" |
9 #include "base/process_util.h" | 9 #include "base/process_util.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 | 150 |
151 // Invoked when new FaviconURL candidates are received from the renderer. | 151 // Invoked when new FaviconURL candidates are received from the renderer. |
152 virtual void DidUpdateFaviconURL(int32 page_id, | 152 virtual void DidUpdateFaviconURL(int32 page_id, |
153 const std::vector<FaviconURL>& candidates) {} | 153 const std::vector<FaviconURL>& candidates) {} |
154 | 154 |
155 // Invoked when a pepper plugin creates and shows or destroys a fullscreen | 155 // Invoked when a pepper plugin creates and shows or destroys a fullscreen |
156 // render widget. | 156 // render widget. |
157 virtual void DidShowFullscreenWidget(int routing_id) {} | 157 virtual void DidShowFullscreenWidget(int routing_id) {} |
158 virtual void DidDestroyFullscreenWidget(int routing_id) {} | 158 virtual void DidDestroyFullscreenWidget(int routing_id) {} |
159 | 159 |
| 160 // Invoked when visible SSL state (as defined by SSLStatus) changes. |
| 161 virtual void DidChangeVisibleSSLState() {} |
| 162 |
160 // IPC::Listener implementation. | 163 // IPC::Listener implementation. |
161 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 164 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
162 | 165 |
163 // IPC::Sender implementation. | 166 // IPC::Sender implementation. |
164 virtual bool Send(IPC::Message* message) OVERRIDE; | 167 virtual bool Send(IPC::Message* message) OVERRIDE; |
165 int routing_id() const; | 168 int routing_id() const; |
166 | 169 |
167 protected: | 170 protected: |
168 // Use this constructor when the object is tied to a single WebContents for | 171 // Use this constructor when the object is tied to a single WebContents for |
169 // its entire lifetime. | 172 // its entire lifetime. |
(...skipping 19 matching lines...) Expand all Loading... |
189 void WebContentsImplDestroyed(); | 192 void WebContentsImplDestroyed(); |
190 | 193 |
191 WebContentsImpl* web_contents_; | 194 WebContentsImpl* web_contents_; |
192 | 195 |
193 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 196 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
194 }; | 197 }; |
195 | 198 |
196 } // namespace content | 199 } // namespace content |
197 | 200 |
198 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 201 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
OLD | NEW |