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

Unified Diff: blimp/engine/browser/font_data_fetcher_impl.cc

Issue 2629743003: Remove all blimp engine code (Closed)
Patch Set: Use consistent comment style in //chrome Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: blimp/engine/browser/font_data_fetcher_impl.cc
diff --git a/blimp/engine/browser/font_data_fetcher_impl.cc b/blimp/engine/browser/font_data_fetcher_impl.cc
deleted file mode 100644
index b130215a64edebf5b450a9bc7700b0ab060138d7..0000000000000000000000000000000000000000
--- a/blimp/engine/browser/font_data_fetcher_impl.cc
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "blimp/engine/browser/font_data_fetcher_impl.h"
-
-#include <memory>
-
-#include "base/memory/ptr_util.h"
-#include "base/task_runner_util.h"
-
-namespace blimp {
-namespace engine {
-
-namespace {
-// This is a temporary implementation which return a empty SkStream.
-std::unique_ptr<SkStream>
-FetchFontStreamOnFileThread(const std::string& font_hash) {
- return base::MakeUnique<SkMemoryStream>();
-}
-
-} // namespace
-
-FontDataFetcherImpl::FontDataFetcherImpl(
- scoped_refptr<base::SingleThreadTaskRunner> file_task_runner)
- : file_task_runner_(file_task_runner) {
- DCHECK(file_task_runner_);
-}
-
-FontDataFetcherImpl::~FontDataFetcherImpl() {
- DCHECK(thread_checker_.CalledOnValidThread());
-}
-
-void FontDataFetcherImpl::FetchFontStream(
- const std::string& font_hash, const FontResponseCallback& callback) const {
- DCHECK(thread_checker_.CalledOnValidThread());
-
- base::PostTaskAndReplyWithResult(
- file_task_runner_.get(), FROM_HERE,
- base::Bind(&FetchFontStreamOnFileThread, font_hash), callback);
-}
-
-} // namespace engine
-} // namespace blimp
« no previous file with comments | « blimp/engine/browser/font_data_fetcher_impl.h ('k') | blimp/engine/browser/font_data_fetcher_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698