| 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_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 bool user_gesture); | 298 bool user_gesture); |
| 299 | 299 |
| 300 // Notifies the delegate about the creation of a new WebContents. This | 300 // Notifies the delegate about the creation of a new WebContents. This |
| 301 // typically happens when popups are created. | 301 // typically happens when popups are created. |
| 302 virtual void WebContentsCreated(WebContents* source_contents, | 302 virtual void WebContentsCreated(WebContents* source_contents, |
| 303 int64 source_frame_id, | 303 int64 source_frame_id, |
| 304 const string16& frame_name, | 304 const string16& frame_name, |
| 305 const GURL& target_url, | 305 const GURL& target_url, |
| 306 WebContents* new_contents) {} | 306 WebContents* new_contents) {} |
| 307 | 307 |
| 308 // Notifies the delegate that the content restrictions for this tab has | |
| 309 // changed. | |
| 310 virtual void ContentRestrictionsChanged(WebContents* source) {} | |
| 311 | |
| 312 // Notification that the tab is hung. | 308 // Notification that the tab is hung. |
| 313 virtual void RendererUnresponsive(WebContents* source) {} | 309 virtual void RendererUnresponsive(WebContents* source) {} |
| 314 | 310 |
| 315 // Notification that the tab is no longer hung. | 311 // Notification that the tab is no longer hung. |
| 316 virtual void RendererResponsive(WebContents* source) {} | 312 virtual void RendererResponsive(WebContents* source) {} |
| 317 | 313 |
| 318 // Notification that a worker associated with this tab has crashed. | 314 // Notification that a worker associated with this tab has crashed. |
| 319 virtual void WorkerCrashed(WebContents* source) {} | 315 virtual void WorkerCrashed(WebContents* source) {} |
| 320 | 316 |
| 321 // Invoked when a main fram navigation occurs. | 317 // Invoked when a main fram navigation occurs. |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 // Called when |this| is no longer the WebContentsDelegate for |source|. | 438 // Called when |this| is no longer the WebContentsDelegate for |source|. |
| 443 void Detach(WebContents* source); | 439 void Detach(WebContents* source); |
| 444 | 440 |
| 445 // The WebContents that this is currently a delegate for. | 441 // The WebContents that this is currently a delegate for. |
| 446 std::set<WebContents*> attached_contents_; | 442 std::set<WebContents*> attached_contents_; |
| 447 }; | 443 }; |
| 448 | 444 |
| 449 } // namespace content | 445 } // namespace content |
| 450 | 446 |
| 451 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 447 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
| OLD | NEW |