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 BROWSER_DOM_UI_CHROME_URL_DATA_MANAGER_H__ | 5 #ifndef BROWSER_DOM_UI_CHROME_URL_DATA_MANAGER_H__ |
6 #define BROWSER_DOM_UI_CHROME_URL_DATA_MANAGER_H__ | 6 #define 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 typedef std::map<RequestID, URLRequestChromeJob*> PendingRequestMap; | 146 typedef std::map<RequestID, URLRequestChromeJob*> PendingRequestMap; |
147 PendingRequestMap pending_requests_; | 147 PendingRequestMap pending_requests_; |
148 | 148 |
149 // The ID we'll use for the next request we receive. | 149 // The ID we'll use for the next request we receive. |
150 RequestID next_request_id_; | 150 RequestID next_request_id_; |
151 }; | 151 }; |
152 | 152 |
153 // Since we have a single global ChromeURLDataManager, we don't need to | 153 // Since we have a single global ChromeURLDataManager, we don't need to |
154 // grab a reference to it when creating Tasks involving it. | 154 // grab a reference to it when creating Tasks involving it. |
155 template <> struct RunnableMethodTraits<ChromeURLDataManager> { | 155 template <> struct RunnableMethodTraits<ChromeURLDataManager> { |
156 static void RetainCallee(ChromeURLDataManager*) {} | 156 void RetainCallee(ChromeURLDataManager*) {} |
157 static void ReleaseCallee(ChromeURLDataManager*) {} | 157 void ReleaseCallee(ChromeURLDataManager*) {} |
158 }; | 158 }; |
159 | 159 |
160 // The single global instance of ChromeURLDataManager. | 160 // The single global instance of ChromeURLDataManager. |
161 extern ChromeURLDataManager chrome_url_data_manager; | 161 extern ChromeURLDataManager chrome_url_data_manager; |
162 | 162 |
163 // Register our special URL handler under our special URL scheme. | 163 // Register our special URL handler under our special URL scheme. |
164 // Must be done once at startup. | 164 // Must be done once at startup. |
165 void RegisterURLRequestChromeJob(); | 165 void RegisterURLRequestChromeJob(); |
166 | 166 |
167 // Undoes the registration done by RegisterURLRequestChromeJob. | 167 // Undoes the registration done by RegisterURLRequestChromeJob. |
168 void UnregisterURLRequestChromeJob(); | 168 void UnregisterURLRequestChromeJob(); |
169 | 169 |
170 #endif // BROWSER_DOM_UI_CHROME_URL_DATA_MANAGER_H__ | 170 #endif // BROWSER_DOM_UI_CHROME_URL_DATA_MANAGER_H__ |
OLD | NEW |