| 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 #include "chrome/browser/chromeos/boot_times_loader.h" | 5 #include "chrome/browser/chromeos/boot_times_loader.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #include "chrome/common/chrome_notification_types.h" | 27 #include "chrome/common/chrome_notification_types.h" |
| 28 #include "chrome/common/chrome_switches.h" | 28 #include "chrome/common/chrome_switches.h" |
| 29 #include "content/public/browser/browser_thread.h" | 29 #include "content/public/browser/browser_thread.h" |
| 30 #include "content/public/browser/navigation_controller.h" | 30 #include "content/public/browser/navigation_controller.h" |
| 31 #include "content/public/browser/notification_service.h" | 31 #include "content/public/browser/notification_service.h" |
| 32 #include "content/public/browser/render_widget_host_view.h" | 32 #include "content/public/browser/render_widget_host_view.h" |
| 33 #include "content/public/browser/web_contents.h" | 33 #include "content/public/browser/web_contents.h" |
| 34 | 34 |
| 35 using content::BrowserThread; | 35 using content::BrowserThread; |
| 36 using content::NavigationController; | 36 using content::NavigationController; |
| 37 using content::RenderWidgetHost; |
| 37 using content::RenderWidgetHostView; | 38 using content::RenderWidgetHostView; |
| 38 using content::WebContents; | 39 using content::WebContents; |
| 39 | 40 |
| 40 namespace { | 41 namespace { |
| 41 | 42 |
| 42 RenderWidgetHost* GetRenderWidgetHost(NavigationController* tab) { | 43 RenderWidgetHost* GetRenderWidgetHost(NavigationController* tab) { |
| 43 WebContents* web_contents = tab->GetWebContents(); | 44 WebContents* web_contents = tab->GetWebContents(); |
| 44 if (web_contents) { | 45 if (web_contents) { |
| 45 RenderWidgetHostView* render_widget_host_view = | 46 RenderWidgetHostView* render_widget_host_view = |
| 46 web_contents->GetRenderWidgetHostView(); | 47 web_contents->GetRenderWidgetHostView(); |
| (...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 GetRenderWidgetHost(&web_contents->GetController()); | 511 GetRenderWidgetHost(&web_contents->GetController()); |
| 511 render_widget_hosts_loading_.erase(render_widget_host); | 512 render_widget_hosts_loading_.erase(render_widget_host); |
| 512 break; | 513 break; |
| 513 } | 514 } |
| 514 default: | 515 default: |
| 515 break; | 516 break; |
| 516 } | 517 } |
| 517 } | 518 } |
| 518 | 519 |
| 519 } // namespace chromeos | 520 } // namespace chromeos |
| OLD | NEW |