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 // 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 |
11 #include <map> | 11 #include <map> |
12 #include <string> | 12 #include <string> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/process.h" | 15 #include "base/process.h" |
16 #include "base/stringprintf.h" | 16 #include "base/stringprintf.h" |
17 #include "build/build_config.h" // USE_TCMALLOC | 17 #include "build/build_config.h" // USE_TCMALLOC |
18 | 18 |
19 template <typename T> struct DefaultSingletonTraits; | 19 template <typename T> struct DefaultSingletonTraits; |
20 class GURL; | 20 class GURL; |
21 class Profile; | |
22 | 21 |
23 namespace content { | 22 namespace content { |
24 class BrowserContext; | 23 class BrowserContext; |
25 } | 24 } |
26 | 25 |
27 // Register a data source for a known source name. Safe to call multiple times. | 26 // Register a data source for a known source name. Safe to call multiple times. |
28 // |name| may be an unkown host (e.g. "chrome://foo/"); only handle known hosts. | 27 // |name| may be an unkown host (e.g. "chrome://foo/"); only handle known hosts. |
29 // In general case WillHandleBrowserAboutURL will initialize all data sources. | 28 // In general case WillHandleBrowserAboutURL will initialize all data sources. |
30 // But in some case like navigating to chrome://oobe on boot and loading | 29 // But in some case like navigating to chrome://oobe on boot and loading |
31 // chrome://terms in an iframe there, kChromeUITermsHost data source needs to | 30 // chrome://terms in an iframe there, kChromeUITermsHost data source needs to |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 84 |
86 DISALLOW_COPY_AND_ASSIGN(AboutTcmallocOutputs); | 85 DISALLOW_COPY_AND_ASSIGN(AboutTcmallocOutputs); |
87 }; | 86 }; |
88 | 87 |
89 // Glue between the callback task and the method in the singleton. | 88 // Glue between the callback task and the method in the singleton. |
90 void AboutTcmallocRendererCallback(base::ProcessId pid, | 89 void AboutTcmallocRendererCallback(base::ProcessId pid, |
91 const std::string& output); | 90 const std::string& output); |
92 #endif | 91 #endif |
93 | 92 |
94 #endif // CHROME_BROWSER_BROWSER_ABOUT_HANDLER_H_ | 93 #endif // CHROME_BROWSER_BROWSER_ABOUT_HANDLER_H_ |
OLD | NEW |