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 #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 Loading... |
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_ |
OLD | NEW |