Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Side by Side Diff: content/browser/webui/url_data_source_impl.cc

Issue 2266693002: Implement "streaming" $i18n{} replacer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@compress-webui2
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/browser/webui/url_data_source_impl.h ('k') | content/browser/webui/web_ui_data_source_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698