| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "chrome/browser/tab_contents/render_view_host_manager.h" | 5 #include "chrome/browser/tab_contents/render_view_host_manager.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "chrome/browser/dom_ui/dom_ui.h" | 9 #include "chrome/browser/dom_ui/dom_ui.h" |
| 10 #include "chrome/browser/dom_ui/dom_ui_factory.h" | 10 #include "chrome/browser/dom_ui/dom_ui_factory.h" |
| 11 #include "chrome/browser/extensions/extensions_service.h" | 11 #include "chrome/browser/extensions/extensions_service.h" |
| 12 #include "chrome/browser/profile.h" | 12 #include "chrome/browser/profile.h" |
| 13 #include "chrome/browser/renderer_host/render_view_host.h" | 13 #include "chrome/browser/renderer_host/render_view_host.h" |
| 14 #include "chrome/browser/renderer_host/render_view_host_delegate.h" | 14 #include "chrome/browser/renderer_host/render_view_host_delegate.h" |
| 15 #include "chrome/browser/renderer_host/render_view_host_factory.h" | 15 #include "chrome/browser/renderer_host/render_view_host_factory.h" |
| 16 #include "chrome/browser/renderer_host/render_widget_host_view.h" | 16 #include "chrome/browser/renderer_host/render_widget_host_view.h" |
| 17 #include "chrome/browser/renderer_host/site_instance.h" | 17 #include "chrome/browser/renderer_host/site_instance.h" |
| 18 #include "chrome/browser/tab_contents/navigation_controller.h" | 18 #include "chrome/browser/tab_contents/navigation_controller.h" |
| 19 #include "chrome/browser/tab_contents/navigation_entry.h" | 19 #include "chrome/browser/tab_contents/navigation_entry.h" |
| 20 #include "chrome/common/chrome_switches.h" | 20 #include "chrome/common/chrome_switches.h" |
| 21 #include "chrome/common/notification_service.h" | 21 #include "chrome/common/notification_service.h" |
| 22 #include "chrome/common/notification_type.h" | 22 #include "chrome/common/notification_type.h" |
| 23 #include "chrome/common/render_messages.h" | 23 #include "chrome/common/render_messages.h" |
| 24 #include "chrome/common/render_messages_params.h" |
| 24 #include "chrome/common/url_constants.h" | 25 #include "chrome/common/url_constants.h" |
| 25 | 26 |
| 26 namespace base { | 27 namespace base { |
| 27 class WaitableEvent; | 28 class WaitableEvent; |
| 28 } | 29 } |
| 29 | 30 |
| 30 RenderViewHostManager::RenderViewHostManager( | 31 RenderViewHostManager::RenderViewHostManager( |
| 31 RenderViewHostDelegate* render_view_delegate, | 32 RenderViewHostDelegate* render_view_delegate, |
| 32 Delegate* delegate) | 33 Delegate* delegate) |
| 33 : delegate_(delegate), | 34 : delegate_(delegate), |
| (...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 666 // deleted (not sure from where) but not NULLed. | 667 // deleted (not sure from where) but not NULLed. |
| 667 if (rvh == pending_render_view_host_) { | 668 if (rvh == pending_render_view_host_) { |
| 668 // If you hit this NOTREACHED, please report it in the following bug | 669 // If you hit this NOTREACHED, please report it in the following bug |
| 669 // http://crbug.com/23411 Make sure to include what you were doing when it | 670 // http://crbug.com/23411 Make sure to include what you were doing when it |
| 670 // happened (navigating to a new page, closing a tab...) and if you can | 671 // happened (navigating to a new page, closing a tab...) and if you can |
| 671 // reproduce. | 672 // reproduce. |
| 672 NOTREACHED(); | 673 NOTREACHED(); |
| 673 pending_render_view_host_ = NULL; | 674 pending_render_view_host_ = NULL; |
| 674 } | 675 } |
| 675 } | 676 } |
| OLD | NEW |