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

Side by Side Diff: chrome/browser/browser_about_handler.h

Issue 6479007: Attempt 3 at: Splits ChromeURLDataManager into 2 chunks:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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) 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 10 matching lines...) Expand all
21 // Decides whether the given URL will be handled by the browser about handler 21 // Decides whether the given URL will be handled by the browser about handler
22 // and returns true if so. On true, it may also modify the given URL to be the 22 // and returns true if so. On true, it may also modify the given URL to be the
23 // final form (we fix up most "about:" URLs to be "chrome:" because WebKit 23 // final form (we fix up most "about:" URLs to be "chrome:" because WebKit
24 // handles all "about:" URLs as "about:blank. 24 // handles all "about:" URLs as "about:blank.
25 // 25 //
26 // This is used by BrowserURLHandler. 26 // This is used by BrowserURLHandler.
27 bool WillHandleBrowserAboutURL(GURL* url, Profile* profile); 27 bool WillHandleBrowserAboutURL(GURL* url, Profile* profile);
28 28
29 // Register the data source for chrome://about URLs. 29 // Register the data source for chrome://about URLs.
30 // Safe to call multiple times. 30 // Safe to call multiple times.
31 void InitializeAboutDataSource(); 31 void InitializeAboutDataSource(Profile* profile);
32 32
33 // We have a few magic commands that don't cause navigations, but rather pop up 33 // We have a few magic commands that don't cause navigations, but rather pop up
34 // dialogs. This function handles those cases, and returns true if so. In this 34 // dialogs. This function handles those cases, and returns true if so. In this
35 // case, normal tab navigation should be skipped. 35 // case, normal tab navigation should be skipped.
36 bool HandleNonNavigationAboutURL(const GURL& url); 36 bool HandleNonNavigationAboutURL(const GURL& url);
37 37
38 #if defined(USE_TCMALLOC) 38 #if defined(USE_TCMALLOC)
39 // A map of header strings (e.g. "Browser", "Renderer PID 123") 39 // A map of header strings (e.g. "Browser", "Renderer PID 123")
40 // to the tcmalloc output collected for each process. 40 // to the tcmalloc output collected for each process.
41 typedef std::map<std::string, std::string> AboutTcmallocOutputsType; 41 typedef std::map<std::string, std::string> AboutTcmallocOutputsType;
(...skipping 25 matching lines...) Expand all
67 friend struct DefaultSingletonTraits<AboutTcmallocOutputs>; 67 friend struct DefaultSingletonTraits<AboutTcmallocOutputs>;
68 68
69 DISALLOW_COPY_AND_ASSIGN(AboutTcmallocOutputs); 69 DISALLOW_COPY_AND_ASSIGN(AboutTcmallocOutputs);
70 }; 70 };
71 71
72 // Glue between the callback task and the method in the singleton. 72 // Glue between the callback task and the method in the singleton.
73 void AboutTcmallocRendererCallback(base::ProcessId pid, std::string output); 73 void AboutTcmallocRendererCallback(base::ProcessId pid, std::string output);
74 #endif 74 #endif
75 75
76 #endif // CHROME_BROWSER_BROWSER_ABOUT_HANDLER_H_ 76 #endif // CHROME_BROWSER_BROWSER_ABOUT_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/browser_about_handler.cc » ('j') | chrome/browser/dom_ui/chrome_url_data_manager.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698