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

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

Issue 248021: Reverting 27379. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 2 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
« no previous file with comments | « chrome/browser/chromeos/touchpad.cc ('k') | chrome/browser/gears_integration.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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 void RetainCallee(ChromeURLDataManager*) {} 156 static void RetainCallee(ChromeURLDataManager*) {}
157 void ReleaseCallee(ChromeURLDataManager*) {} 157 static 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__
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/touchpad.cc ('k') | chrome/browser/gears_integration.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698