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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <set> | 10 #include <set> |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 int32_t main_frame_widget_route_id, | 312 int32_t main_frame_widget_route_id, |
313 WindowContainerType window_container_type, | 313 WindowContainerType window_container_type, |
314 const std::string& frame_name, | 314 const std::string& frame_name, |
315 const GURL& target_url, | 315 const GURL& target_url, |
316 const std::string& partition_id, | 316 const std::string& partition_id, |
317 SessionStorageNamespace* session_storage_namespace); | 317 SessionStorageNamespace* session_storage_namespace); |
318 | 318 |
319 // Notifies the delegate about the creation of a new WebContents. This | 319 // Notifies the delegate about the creation of a new WebContents. This |
320 // typically happens when popups are created. | 320 // typically happens when popups are created. |
321 virtual void WebContentsCreated(WebContents* source_contents, | 321 virtual void WebContentsCreated(WebContents* source_contents, |
| 322 int opener_render_process_id, |
322 int opener_render_frame_id, | 323 int opener_render_frame_id, |
323 const std::string& frame_name, | 324 const std::string& frame_name, |
324 const GURL& target_url, | 325 const GURL& target_url, |
325 WebContents* new_contents) {} | 326 WebContents* new_contents) {} |
326 | 327 |
327 // Notification that the tab is hung. | 328 // Notification that the tab is hung. |
328 virtual void RendererUnresponsive(WebContents* source) {} | 329 virtual void RendererUnresponsive(WebContents* source) {} |
329 | 330 |
330 // Notification that the tab is no longer hung. | 331 // Notification that the tab is no longer hung. |
331 virtual void RendererResponsive(WebContents* source) {} | 332 virtual void RendererResponsive(WebContents* source) {} |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 // Called when |this| is no longer the WebContentsDelegate for |source|. | 556 // Called when |this| is no longer the WebContentsDelegate for |source|. |
556 void Detach(WebContents* source); | 557 void Detach(WebContents* source); |
557 | 558 |
558 // The WebContents that this is currently a delegate for. | 559 // The WebContents that this is currently a delegate for. |
559 std::set<WebContents*> attached_contents_; | 560 std::set<WebContents*> attached_contents_; |
560 }; | 561 }; |
561 | 562 |
562 } // namespace content | 563 } // namespace content |
563 | 564 |
564 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 565 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
OLD | NEW |