Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 7053041: Add a Create method to DesktopNotificationHandler and stubs for the notification objects. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 } 112 }
113 } 113 }
114 114
115 } 115 }
116 116
117 namespace chrome { 117 namespace chrome {
118 118
119 void ChromeContentBrowserClient::RenderViewHostCreated( 119 void ChromeContentBrowserClient::RenderViewHostCreated(
120 RenderViewHost* render_view_host) { 120 RenderViewHost* render_view_host) {
121 new ChromeRenderViewHostObserver(render_view_host); 121 new ChromeRenderViewHostObserver(render_view_host);
122 new DesktopNotificationHandler(render_view_host); 122 DesktopNotificationHandler::Create(render_view_host);
123 new DevToolsHandler(render_view_host); 123 new DevToolsHandler(render_view_host);
124 new ExtensionMessageHandler(render_view_host); 124 new ExtensionMessageHandler(render_view_host);
125 125
126 InitRenderViewHostForExtensions(render_view_host); 126 InitRenderViewHostForExtensions(render_view_host);
127 } 127 }
128 128
129 void ChromeContentBrowserClient::BrowserRenderProcessHostCreated( 129 void ChromeContentBrowserClient::BrowserRenderProcessHostCreated(
130 BrowserRenderProcessHost* host) { 130 BrowserRenderProcessHost* host) {
131 int id = host->id(); 131 int id = host->id();
132 Profile* profile = host->profile(); 132 Profile* profile = host->profile();
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 return PpapiCrashHandlerHostLinux::GetInstance()->GetDeathSignalSocket(); 346 return PpapiCrashHandlerHostLinux::GetInstance()->GetDeathSignalSocket();
347 347
348 if (process_type == switches::kGpuProcess) 348 if (process_type == switches::kGpuProcess)
349 return GpuCrashHandlerHostLinux::GetInstance()->GetDeathSignalSocket(); 349 return GpuCrashHandlerHostLinux::GetInstance()->GetDeathSignalSocket();
350 350
351 return -1; 351 return -1;
352 } 352 }
353 #endif 353 #endif
354 354
355 } // namespace chrome 355 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698