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

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

Issue 5519016: Add a new GetInstance() method for singleton classes used in chrome/browser files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 10 years 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
« no previous file with comments | « chrome/browser/crash_handler_host_linux.cc ('k') | chrome/browser/cross_site_request_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // This is a stub file which is compiled in when we are building without 5 // This is a stub file which is compiled in when we are building without
6 // breakpad support. 6 // breakpad support.
7 7
8 #include "chrome/browser/crash_handler_host_linux.h" 8 #include "chrome/browser/crash_handler_host_linux.h"
9 9
10 #include "base/singleton.h"
11
10 CrashHandlerHostLinux::CrashHandlerHostLinux() 12 CrashHandlerHostLinux::CrashHandlerHostLinux()
11 : process_socket_(-1), 13 : process_socket_(-1),
12 browser_socket_(-1) { 14 browser_socket_(-1) {
13 } 15 }
14 16
15 CrashHandlerHostLinux::~CrashHandlerHostLinux() { 17 CrashHandlerHostLinux::~CrashHandlerHostLinux() {
16 } 18 }
17 19
18 void CrashHandlerHostLinux::OnFileCanReadWithoutBlocking(int fd) { 20 void CrashHandlerHostLinux::OnFileCanReadWithoutBlocking(int fd) {
19 } 21 }
20 22
21 void CrashHandlerHostLinux::OnFileCanWriteWithoutBlocking(int fd) { 23 void CrashHandlerHostLinux::OnFileCanWriteWithoutBlocking(int fd) {
22 } 24 }
23 25
24 void CrashHandlerHostLinux::WillDestroyCurrentMessageLoop() { 26 void CrashHandlerHostLinux::WillDestroyCurrentMessageLoop() {
25 } 27 }
26 28
27 PluginCrashHandlerHostLinux::PluginCrashHandlerHostLinux() { 29 PluginCrashHandlerHostLinux::PluginCrashHandlerHostLinux() {
28 } 30 }
29 31
30 PluginCrashHandlerHostLinux::~PluginCrashHandlerHostLinux() { 32 PluginCrashHandlerHostLinux::~PluginCrashHandlerHostLinux() {
31 } 33 }
32 34
35 // static
36 PluginCrashHandlerHostLinux* PluginCrashHandlerHostLinux::GetInstance() {
37 return Singleton<PluginCrashHandlerHostLinux>::get();
38 }
39
33 RendererCrashHandlerHostLinux::RendererCrashHandlerHostLinux() { 40 RendererCrashHandlerHostLinux::RendererCrashHandlerHostLinux() {
34 } 41 }
35 42
36 RendererCrashHandlerHostLinux::~RendererCrashHandlerHostLinux() { 43 RendererCrashHandlerHostLinux::~RendererCrashHandlerHostLinux() {
37 } 44 }
45
46 // static
47 RendererCrashHandlerHostLinux* RendererCrashHandlerHostLinux::GetInstance() {
48 return Singleton<RendererCrashHandlerHostLinux>::get();
49 }
OLDNEW
« no previous file with comments | « chrome/browser/crash_handler_host_linux.cc ('k') | chrome/browser/cross_site_request_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698