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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 // Indicates that client 3D APIs (Pepper 3D, WebGL) were just | 145 // Indicates that client 3D APIs (Pepper 3D, WebGL) were just |
146 // blocked on the current page, specifically because the GPU was | 146 // blocked on the current page, specifically because the GPU was |
147 // reset recently. | 147 // reset recently. |
148 virtual void DidBlock3DAPIs(const GURL& url, | 148 virtual void DidBlock3DAPIs(const GURL& url, |
149 ThreeDAPIType requester) {} | 149 ThreeDAPIType requester) {} |
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 visible SSL state (as defined by SSLStatus) changes. |
| 156 virtual void DidChangeVisibleSSLState() {} |
| 157 |
155 // IPC::Listener implementation. | 158 // IPC::Listener implementation. |
156 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 159 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
157 | 160 |
158 // IPC::Sender implementation. | 161 // IPC::Sender implementation. |
159 virtual bool Send(IPC::Message* message) OVERRIDE; | 162 virtual bool Send(IPC::Message* message) OVERRIDE; |
160 int routing_id() const; | 163 int routing_id() const; |
161 | 164 |
162 protected: | 165 protected: |
163 // Use this constructor when the object is tied to a single WebContents for | 166 // Use this constructor when the object is tied to a single WebContents for |
164 // its entire lifetime. | 167 // its entire lifetime. |
(...skipping 19 matching lines...) Expand all Loading... |
184 void WebContentsImplDestroyed(); | 187 void WebContentsImplDestroyed(); |
185 | 188 |
186 WebContentsImpl* web_contents_; | 189 WebContentsImpl* web_contents_; |
187 | 190 |
188 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 191 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
189 }; | 192 }; |
190 | 193 |
191 } // namespace content | 194 } // namespace content |
192 | 195 |
193 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 196 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
OLD | NEW |