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

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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 } 110 }
111 } 111 }
112 112
113 } 113 }
114 114
115 namespace chrome { 115 namespace chrome {
116 116
117 void ChromeContentBrowserClient::RenderViewHostCreated( 117 void ChromeContentBrowserClient::RenderViewHostCreated(
118 RenderViewHost* render_view_host) { 118 RenderViewHost* render_view_host) {
119 new ChromeRenderViewHostObserver(render_view_host); 119 new ChromeRenderViewHostObserver(render_view_host);
120 new DesktopNotificationHandler(render_view_host); 120 DesktopNotificationHandler::Create(render_view_host);
121 new DevToolsHandler(render_view_host); 121 new DevToolsHandler(render_view_host);
122 new ExtensionMessageHandler(render_view_host); 122 new ExtensionMessageHandler(render_view_host);
123 123
124 InitRenderViewHostForExtensions(render_view_host); 124 InitRenderViewHostForExtensions(render_view_host);
125 } 125 }
126 126
127 void ChromeContentBrowserClient::BrowserRenderProcessHostCreated( 127 void ChromeContentBrowserClient::BrowserRenderProcessHostCreated(
128 BrowserRenderProcessHost* host) { 128 BrowserRenderProcessHost* host) {
129 int id = host->id(); 129 int id = host->id();
130 Profile* profile = host->profile(); 130 Profile* profile = host->profile();
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 return PpapiCrashHandlerHostLinux::GetInstance()->GetDeathSignalSocket(); 323 return PpapiCrashHandlerHostLinux::GetInstance()->GetDeathSignalSocket();
324 324
325 if (process_type == switches::kGpuProcess) 325 if (process_type == switches::kGpuProcess)
326 return GpuCrashHandlerHostLinux::GetInstance()->GetDeathSignalSocket(); 326 return GpuCrashHandlerHostLinux::GetInstance()->GetDeathSignalSocket();
327 327
328 return -1; 328 return -1;
329 } 329 }
330 #endif 330 #endif
331 331
332 } // namespace chrome 332 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698