| 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 "content/browser/webui/url_data_source_impl.h" | 5 #include "content/browser/webui/url_data_source_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/memory/ref_counted_memory.h" | 8 #include "base/memory/ref_counted_memory.h" |
| 9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 10 #include "content/browser/webui/url_data_manager_backend.h" | 10 #include "content/browser/webui/url_data_manager_backend.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 } | 46 } |
| 47 | 47 |
| 48 void URLDataSourceImpl::SendResponseOnIOThread( | 48 void URLDataSourceImpl::SendResponseOnIOThread( |
| 49 int request_id, | 49 int request_id, |
| 50 scoped_refptr<base::RefCountedMemory> bytes) { | 50 scoped_refptr<base::RefCountedMemory> bytes) { |
| 51 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 51 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
| 52 if (backend_) | 52 if (backend_) |
| 53 backend_->DataAvailable(request_id, bytes.get()); | 53 backend_->DataAvailable(request_id, bytes.get()); |
| 54 } | 54 } |
| 55 | 55 |
| 56 const ui::TemplateReplacements* URLDataSourceImpl::GetTemplateReplacements() con
st { |
| 57 return nullptr; |
| 58 } |
| 59 |
| 56 } // namespace content | 60 } // namespace content |
| OLD | NEW |