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

Side by Side Diff: blimp/engine/browser/font_data_fetcher_impl.cc

Issue 2598963005: Include-what-you-use for WrapUnique/MakeUnique. (Closed)
Patch Set: restore order of includes in x11_topmost_window_finder_interactive_uitest.cc Created 3 years, 12 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "blimp/engine/browser/font_data_fetcher_impl.h" 5 #include "blimp/engine/browser/font_data_fetcher_impl.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/memory/ptr_util.h"
9 #include "base/task_runner_util.h" 10 #include "base/task_runner_util.h"
10 11
11 namespace blimp { 12 namespace blimp {
12 namespace engine { 13 namespace engine {
13 14
14 namespace { 15 namespace {
15 // This is a temporary implementation which return a empty SkStream. 16 // This is a temporary implementation which return a empty SkStream.
16 std::unique_ptr<SkStream> 17 std::unique_ptr<SkStream>
17 FetchFontStreamOnFileThread(const std::string& font_hash) { 18 FetchFontStreamOnFileThread(const std::string& font_hash) {
18 return base::MakeUnique<SkMemoryStream>(); 19 return base::MakeUnique<SkMemoryStream>();
(...skipping 15 matching lines...) Expand all
34 const std::string& font_hash, const FontResponseCallback& callback) const { 35 const std::string& font_hash, const FontResponseCallback& callback) const {
35 DCHECK(thread_checker_.CalledOnValidThread()); 36 DCHECK(thread_checker_.CalledOnValidThread());
36 37
37 base::PostTaskAndReplyWithResult( 38 base::PostTaskAndReplyWithResult(
38 file_task_runner_.get(), FROM_HERE, 39 file_task_runner_.get(), FROM_HERE,
39 base::Bind(&FetchFontStreamOnFileThread, font_hash), callback); 40 base::Bind(&FetchFontStreamOnFileThread, font_hash), callback);
40 } 41 }
41 42
42 } // namespace engine 43 } // namespace engine
43 } // namespace blimp 44 } // namespace blimp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698