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

Side by Side Diff: chrome/browser/dom_ui/chrome_url_data_manager.h

Issue 339078: Convert chrome_url_data_manager (previously a global) into a (Closed)
Patch Set: Created 11 years, 1 month 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
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 #ifndef CHROME_BROWSER_DOM_UI_CHROME_URL_DATA_MANAGER_H_ 5 #ifndef CHROME_BROWSER_DOM_UI_CHROME_URL_DATA_MANAGER_H_
6 #define CHROME_BROWSER_DOM_UI_CHROME_URL_DATA_MANAGER_H_ 6 #define CHROME_BROWSER_DOM_UI_CHROME_URL_DATA_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 RequestID next_request_id_; 151 RequestID next_request_id_;
152 }; 152 };
153 153
154 // Since we have a single global ChromeURLDataManager, we don't need to 154 // Since we have a single global ChromeURLDataManager, we don't need to
155 // grab a reference to it when creating Tasks involving it. 155 // grab a reference to it when creating Tasks involving it.
156 template <> struct RunnableMethodTraits<ChromeURLDataManager> { 156 template <> struct RunnableMethodTraits<ChromeURLDataManager> {
157 void RetainCallee(ChromeURLDataManager* manager) {} 157 void RetainCallee(ChromeURLDataManager* manager) {}
158 void ReleaseCallee(ChromeURLDataManager* manager) {} 158 void ReleaseCallee(ChromeURLDataManager* manager) {}
159 }; 159 };
160 160
161 // The single global instance of ChromeURLDataManager.
162 extern ChromeURLDataManager chrome_url_data_manager;
163
164 // Register our special URL handler under our special URL scheme. 161 // Register our special URL handler under our special URL scheme.
165 // Must be done once at startup. 162 // Must be done once at startup.
166 void RegisterURLRequestChromeJob(); 163 void RegisterURLRequestChromeJob();
167 164
168 // Undoes the registration done by RegisterURLRequestChromeJob. 165 // Undoes the registration done by RegisterURLRequestChromeJob.
169 void UnregisterURLRequestChromeJob(); 166 void UnregisterURLRequestChromeJob();
170 167
171 #endif // CHROME_BROWSER_DOM_UI_CHROME_URL_DATA_MANAGER_H_ 168 #endif // CHROME_BROWSER_DOM_UI_CHROME_URL_DATA_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_about_handler.cc ('k') | chrome/browser/dom_ui/chrome_url_data_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698