OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // Contains code for handling "about:" URLs in the browser process. | 5 // Contains code for handling "about:" URLs in the browser process. |
6 | 6 |
7 #ifndef CHROME_BROWSER_BROWSER_ABOUT_HANDLER_H_ | 7 #ifndef CHROME_BROWSER_BROWSER_ABOUT_HANDLER_H_ |
8 #define CHROME_BROWSER_BROWSER_ABOUT_HANDLER_H_ | 8 #define CHROME_BROWSER_BROWSER_ABOUT_HANDLER_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 } | 53 } |
54 | 54 |
55 // Callback for output returned from renderer processes. Adds | 55 // Callback for output returned from renderer processes. Adds |
56 // the output for a canonical renderer header string that | 56 // the output for a canonical renderer header string that |
57 // incorporates the pid. | 57 // incorporates the pid. |
58 void RendererCallback(base::ProcessId pid, std::string output) { | 58 void RendererCallback(base::ProcessId pid, std::string output) { |
59 SetOutput(StringPrintf("Renderer PID %d", static_cast<int>(pid)), output); | 59 SetOutput(StringPrintf("Renderer PID %d", static_cast<int>(pid)), output); |
60 } | 60 } |
61 | 61 |
62 private: | 62 private: |
63 AboutTcmallocOutputs() {} | 63 AboutTcmallocOutputs(); |
| 64 ~AboutTcmallocOutputs(); |
64 | 65 |
65 AboutTcmallocOutputsType outputs_; | 66 AboutTcmallocOutputsType outputs_; |
66 | 67 |
67 friend struct DefaultSingletonTraits<AboutTcmallocOutputs>; | 68 friend struct DefaultSingletonTraits<AboutTcmallocOutputs>; |
68 | 69 |
69 DISALLOW_COPY_AND_ASSIGN(AboutTcmallocOutputs); | 70 DISALLOW_COPY_AND_ASSIGN(AboutTcmallocOutputs); |
70 }; | 71 }; |
71 | 72 |
72 // Glue between the callback task and the method in the singleton. | 73 // Glue between the callback task and the method in the singleton. |
73 void AboutTcmallocRendererCallback(base::ProcessId pid, std::string output); | 74 void AboutTcmallocRendererCallback(base::ProcessId pid, std::string output); |
74 #endif | 75 #endif |
75 | 76 |
76 #endif // CHROME_BROWSER_BROWSER_ABOUT_HANDLER_H_ | 77 #endif // CHROME_BROWSER_BROWSER_ABOUT_HANDLER_H_ |
OLD | NEW |