| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/chrome_content_browser_client.h" | 5 #include "chrome/browser/chrome_content_browser_client.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "chrome/app/breakpad_mac.h" | 8 #include "chrome/app/breakpad_mac.h" |
| 9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/character_encoding.h" | 10 #include "chrome/browser/character_encoding.h" |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 } | 111 } |
| 112 } | 112 } |
| 113 | 113 |
| 114 } | 114 } |
| 115 | 115 |
| 116 namespace chrome { | 116 namespace chrome { |
| 117 | 117 |
| 118 void ChromeContentBrowserClient::RenderViewHostCreated( | 118 void ChromeContentBrowserClient::RenderViewHostCreated( |
| 119 RenderViewHost* render_view_host) { | 119 RenderViewHost* render_view_host) { |
| 120 new ChromeRenderViewHostObserver(render_view_host); | 120 new ChromeRenderViewHostObserver(render_view_host); |
| 121 new DesktopNotificationHandler(render_view_host); | 121 DesktopNotificationHandler::Create(render_view_host); |
| 122 new DevToolsHandler(render_view_host); | 122 new DevToolsHandler(render_view_host); |
| 123 new ExtensionMessageHandler(render_view_host); | 123 new ExtensionMessageHandler(render_view_host); |
| 124 | 124 |
| 125 InitRenderViewHostForExtensions(render_view_host); | 125 InitRenderViewHostForExtensions(render_view_host); |
| 126 } | 126 } |
| 127 | 127 |
| 128 void ChromeContentBrowserClient::BrowserRenderProcessHostCreated( | 128 void ChromeContentBrowserClient::BrowserRenderProcessHostCreated( |
| 129 BrowserRenderProcessHost* host) { | 129 BrowserRenderProcessHost* host) { |
| 130 int id = host->id(); | 130 int id = host->id(); |
| 131 Profile* profile = host->profile(); | 131 Profile* profile = host->profile(); |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 return PpapiCrashHandlerHostLinux::GetInstance()->GetDeathSignalSocket(); | 336 return PpapiCrashHandlerHostLinux::GetInstance()->GetDeathSignalSocket(); |
| 337 | 337 |
| 338 if (process_type == switches::kGpuProcess) | 338 if (process_type == switches::kGpuProcess) |
| 339 return GpuCrashHandlerHostLinux::GetInstance()->GetDeathSignalSocket(); | 339 return GpuCrashHandlerHostLinux::GetInstance()->GetDeathSignalSocket(); |
| 340 | 340 |
| 341 return -1; | 341 return -1; |
| 342 } | 342 } |
| 343 #endif | 343 #endif |
| 344 | 344 |
| 345 } // namespace chrome | 345 } // namespace chrome |
| OLD | NEW |