| Index: sky/viewer/platform/platform_impl.cc
|
| diff --git a/sky/viewer/platform/platform_impl.cc b/sky/viewer/platform/platform_impl.cc
|
| deleted file mode 100644
|
| index 2962d7293c2c7f26238e4f45210b6f5dfa8ccb95..0000000000000000000000000000000000000000
|
| --- a/sky/viewer/platform/platform_impl.cc
|
| +++ /dev/null
|
| @@ -1,48 +0,0 @@
|
| -// Copyright 2014 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 "sky/viewer/platform/platform_impl.h"
|
| -
|
| -#include "mojo/public/cpp/application/application_impl.h"
|
| -#include "sky/viewer/platform/net_constants.h"
|
| -#include "sky/viewer/platform/weburlloader_impl.h"
|
| -
|
| -namespace sky {
|
| -
|
| -PlatformImpl::PlatformImpl(mojo::ApplicationImpl* app)
|
| - : main_thread_task_runner_(base::MessageLoop::current()->task_runner()) {
|
| - app->ConnectToService("mojo:network_service", &network_service_);
|
| -}
|
| -
|
| -PlatformImpl::~PlatformImpl() {
|
| -}
|
| -
|
| -blink::WebString PlatformImpl::defaultLocale() {
|
| - return blink::WebString::fromUTF8("en-US");
|
| -}
|
| -
|
| -base::SingleThreadTaskRunner* PlatformImpl::mainThreadTaskRunner() {
|
| - return main_thread_task_runner_.get();
|
| -}
|
| -
|
| -mojo::NetworkService* PlatformImpl::networkService() {
|
| - return network_service_.get();
|
| -}
|
| -
|
| -blink::WebURLLoader* PlatformImpl::createURLLoader() {
|
| - return new WebURLLoaderImpl(network_service_.get());
|
| -}
|
| -
|
| -blink::WebURLError PlatformImpl::cancelledError(const blink::WebURL& url)
|
| - const {
|
| - blink::WebURLError error;
|
| - error.domain = blink::WebString::fromUTF8(kNetErrorDomain);
|
| - error.reason = kNetErrorAborted;
|
| - error.unreachableURL = url;
|
| - error.staleCopyInCache = false;
|
| - error.isCancellation = true;
|
| - return error;
|
| -}
|
| -
|
| -} // namespace sky
|
|
|