OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "chrome/browser/browser_about_handler.h" | 5 #include "chrome/browser/browser_about_handler.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 return chromeos::CrosLibrary::Get()->GetNetworkLibrary()-> | 298 return chromeos::CrosLibrary::Get()->GetNetworkLibrary()-> |
299 GetHtmlInfo(refresh); | 299 GetHtmlInfo(refresh); |
300 } | 300 } |
301 #endif | 301 #endif |
302 | 302 |
303 // AboutDnsHandler bounces the request back to the IO thread to collect | 303 // AboutDnsHandler bounces the request back to the IO thread to collect |
304 // the DNS information. | 304 // the DNS information. |
305 class AboutDnsHandler : public base::RefCountedThreadSafe<AboutDnsHandler> { | 305 class AboutDnsHandler : public base::RefCountedThreadSafe<AboutDnsHandler> { |
306 public: | 306 public: |
307 static void Start(AboutSource* source, int request_id) { | 307 static void Start(AboutSource* source, int request_id) { |
308 scoped_refptr<AboutDnsHandler> handler = | 308 scoped_refptr<AboutDnsHandler> handler( |
309 new AboutDnsHandler(source, request_id); | 309 new AboutDnsHandler(source, request_id)); |
310 handler->StartOnUIThread(); | 310 handler->StartOnUIThread(); |
311 } | 311 } |
312 | 312 |
313 private: | 313 private: |
314 AboutDnsHandler(AboutSource* source, int request_id) | 314 AboutDnsHandler(AboutSource* source, int request_id) |
315 : source_(source), | 315 : source_(source), |
316 request_id_(request_id) { | 316 request_id_(request_id) { |
317 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 317 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
318 } | 318 } |
319 | 319 |
(...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1169 // Run the dialog. This will re-use the existing one if it's already up. | 1169 // Run the dialog. This will re-use the existing one if it's already up. |
1170 AboutIPCDialog::RunDialog(); | 1170 AboutIPCDialog::RunDialog(); |
1171 return true; | 1171 return true; |
1172 } | 1172 } |
1173 #endif | 1173 #endif |
1174 | 1174 |
1175 #endif // OFFICIAL_BUILD | 1175 #endif // OFFICIAL_BUILD |
1176 | 1176 |
1177 return false; | 1177 return false; |
1178 } | 1178 } |
OLD | NEW |