OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/webui/chrome_url_data_manager.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/i18n/rtl.h" | 9 #include "base/i18n/rtl.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
11 #include "base/ref_counted_memory.h" | 11 #include "base/ref_counted_memory.h" |
12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
13 #include "base/synchronization/lock.h" | 13 #include "base/synchronization/lock.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "chrome/browser/browser_thread.h" | 15 #include "chrome/browser/browser_thread.h" |
16 #include "chrome/browser/dom_ui/chrome_url_data_manager_backend.h" | |
17 #include "chrome/browser/net/chrome_url_request_context.h" | 16 #include "chrome/browser/net/chrome_url_request_context.h" |
18 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
| 18 #include "chrome/browser/webui/chrome_url_data_manager_backend.h" |
19 #include "grit/platform_locale_settings.h" | 19 #include "grit/platform_locale_settings.h" |
20 #include "ui/base/l10n/l10n_util.h" | 20 #include "ui/base/l10n/l10n_util.h" |
21 | 21 |
22 #if defined(OS_WIN) | 22 #if defined(OS_WIN) |
23 #include "base/win/windows_version.h" | 23 #include "base/win/windows_version.h" |
24 #endif | 24 #endif |
25 | 25 |
26 // static | 26 // static |
27 base::Lock ChromeURLDataManager::delete_lock_; | 27 base::Lock ChromeURLDataManager::delete_lock_; |
28 | 28 |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 base::i18n::IsRTL() ? "rtl" : "ltr"); | 169 base::i18n::IsRTL() ? "rtl" : "ltr"); |
170 } | 170 } |
171 | 171 |
172 void ChromeURLDataManager::DataSource::SendResponseOnIOThread( | 172 void ChromeURLDataManager::DataSource::SendResponseOnIOThread( |
173 int request_id, | 173 int request_id, |
174 scoped_refptr<RefCountedMemory> bytes) { | 174 scoped_refptr<RefCountedMemory> bytes) { |
175 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 175 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
176 if (backend_) | 176 if (backend_) |
177 backend_->DataAvailable(request_id, bytes); | 177 backend_->DataAvailable(request_id, bytes); |
178 } | 178 } |
OLD | NEW |