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

Unified Diff: services/sky/dart_library_provider_impl.cc

Issue 1239963003: Remove //services/sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « services/sky/dart_library_provider_impl.h ('k') | services/sky/document_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/sky/dart_library_provider_impl.cc
diff --git a/services/sky/dart_library_provider_impl.cc b/services/sky/dart_library_provider_impl.cc
deleted file mode 100644
index e21bfde46a172d868739f26588585d9b33e34be3..0000000000000000000000000000000000000000
--- a/services/sky/dart_library_provider_impl.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2015 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 "services/sky/dart_library_provider_impl.h"
-
-namespace sky {
-
-DartLibraryProviderImpl::PrefetchedLibrary::PrefetchedLibrary() {
-}
-
-DartLibraryProviderImpl::PrefetchedLibrary::~PrefetchedLibrary() {
-}
-
-DartLibraryProviderImpl::DartLibraryProviderImpl(
- mojo::NetworkService* network_service,
- scoped_ptr<PrefetchedLibrary> prefetched)
- : shell::DartLibraryProviderNetwork(network_service),
- prefetched_library_(prefetched.Pass()) {
-}
-
-DartLibraryProviderImpl::~DartLibraryProviderImpl() {
-}
-
-void DartLibraryProviderImpl::GetLibraryAsStream(
- const std::string& name,
- blink::DataPipeConsumerCallback callback) {
- if (prefetched_library_ && prefetched_library_->name == name) {
- mojo::ScopedDataPipeConsumerHandle pipe = prefetched_library_->pipe.Pass();
- prefetched_library_ = nullptr;
- callback.Run(pipe.Pass());
- return;
- }
-
- shell::DartLibraryProviderNetwork::GetLibraryAsStream(name, callback);
-}
-
-} // namespace sky
« no previous file with comments | « services/sky/dart_library_provider_impl.h ('k') | services/sky/document_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698