OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/webui/chrome_url_data_manager.h" | 5 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 l10n_util::GetStringUTF8(web_font_size_id)); | 193 l10n_util::GetStringUTF8(web_font_size_id)); |
194 localized_strings->SetString("textdirection", | 194 localized_strings->SetString("textdirection", |
195 base::i18n::IsRTL() ? "rtl" : "ltr"); | 195 base::i18n::IsRTL() ? "rtl" : "ltr"); |
196 } | 196 } |
197 | 197 |
198 void ChromeURLDataManager::DataSource::SendResponseOnIOThread( | 198 void ChromeURLDataManager::DataSource::SendResponseOnIOThread( |
199 int request_id, | 199 int request_id, |
200 scoped_refptr<base::RefCountedMemory> bytes) { | 200 scoped_refptr<base::RefCountedMemory> bytes) { |
201 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 201 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
202 if (backend_) | 202 if (backend_) |
203 backend_->DataAvailable(request_id, bytes); | 203 backend_->DataAvailable(request_id, bytes.get()); |
204 } | 204 } |
OLD | NEW |