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 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" | 5 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
12 #include "base/thread.h" | 12 #include "base/thread.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "chrome/browser/browser_process.h" | 14 #include "chrome/browser/browser_process.h" |
| 15 #ifdef CHROME_PERSONALIZATION |
| 16 // TODO(timsteele): Remove all CHROME_PERSONALIZATION code in this file. |
| 17 // It is only temporarily needed to configure some personalization data sources |
| 18 // that will go away soon. |
| 19 #include "chrome/browser/sync/personalization.h" |
| 20 #endif |
15 #include "chrome/common/chrome_paths.h" | 21 #include "chrome/common/chrome_paths.h" |
16 #include "chrome/common/ref_counted_util.h" | 22 #include "chrome/common/ref_counted_util.h" |
17 #include "chrome/common/url_constants.h" | 23 #include "chrome/common/url_constants.h" |
18 #include "googleurl/src/url_util.h" | 24 #include "googleurl/src/url_util.h" |
19 #include "net/base/io_buffer.h" | 25 #include "net/base/io_buffer.h" |
20 #include "net/base/net_errors.h" | 26 #include "net/base/net_errors.h" |
21 #include "net/url_request/url_request.h" | 27 #include "net/url_request/url_request.h" |
22 #include "net/url_request/url_request_file_job.h" | 28 #include "net/url_request/url_request_file_job.h" |
23 #include "net/url_request/url_request_job.h" | 29 #include "net/url_request/url_request_job.h" |
24 #ifdef CHROME_PERSONALIZATION | |
25 // TODO(timsteele): Remove all CHROME_PERSONALIZATION code in this file. | |
26 // It is only temporarily needed to configure some personalization data sources | |
27 // that will go away soon. | |
28 #include "chrome/personalization/personalization.h" | |
29 #endif | |
30 | 30 |
31 #include "grit/locale_settings.h" | 31 #include "grit/locale_settings.h" |
32 | 32 |
33 // The URL scheme used for internal chrome resources. | 33 // The URL scheme used for internal chrome resources. |
34 // TODO(glen): Choose a better location for this. | 34 // TODO(glen): Choose a better location for this. |
35 static const char kChromeURLScheme[] = "chrome"; | 35 static const char kChromeURLScheme[] = "chrome"; |
36 | 36 |
37 // The single global instance of ChromeURLDataManager. | 37 // The single global instance of ChromeURLDataManager. |
38 ChromeURLDataManager chrome_url_data_manager; | 38 ChromeURLDataManager chrome_url_data_manager; |
39 | 39 |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 net::ERR_INVALID_URL)); | 391 net::ERR_INVALID_URL)); |
392 } | 392 } |
393 } | 393 } |
394 | 394 |
395 URLRequestChromeFileJob::URLRequestChromeFileJob(URLRequest* request, | 395 URLRequestChromeFileJob::URLRequestChromeFileJob(URLRequest* request, |
396 const FilePath& path) | 396 const FilePath& path) |
397 : URLRequestFileJob(request, path) { | 397 : URLRequestFileJob(request, path) { |
398 } | 398 } |
399 | 399 |
400 URLRequestChromeFileJob::~URLRequestChromeFileJob() { } | 400 URLRequestChromeFileJob::~URLRequestChromeFileJob() { } |
OLD | NEW |