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

Unified Diff: sky/engine/platform/fetcher/MojoFetcher.cpp

Issue 1214513003: Remove references into sky/engine/core/fetch (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 | « sky/engine/platform/fetcher/MojoFetcher.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/platform/fetcher/MojoFetcher.cpp
diff --git a/sky/engine/platform/fetcher/MojoFetcher.cpp b/sky/engine/platform/fetcher/MojoFetcher.cpp
deleted file mode 100644
index a3510fc3f08d86364b319583d7024029e7c2f908..0000000000000000000000000000000000000000
--- a/sky/engine/platform/fetcher/MojoFetcher.cpp
+++ /dev/null
@@ -1,40 +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/engine/platform/fetcher/MojoFetcher.h"
-
-#include "base/bind.h"
-#include "mojo/services/network/public/interfaces/network_service.mojom.h"
-#include "sky/engine/platform/weborigin/KURL.h"
-#include "sky/engine/public/platform/Platform.h"
-
-namespace blink {
-
-MojoFetcher::MojoFetcher(Client* client, const KURL& url)
- : client_(client),
- weak_factory_(this) {
- DCHECK(client_);
-
- mojo::NetworkService* net = Platform::current()->networkService();
- net->CreateURLLoader(GetProxy(&url_loader_));
-
- mojo::URLRequestPtr url_request = mojo::URLRequest::New();
- url_request->url = url.string().toUTF8();
- url_request->auto_follow_redirects = true;
- // TODO(rafaelw): Bypass the cache until we can figure out why modified
- // resources aren't updating within sky.
- url_request->bypass_cache = true;
- url_loader_->Start(url_request.Pass(),
- base::Bind(&MojoFetcher::OnReceivedResponse,
- weak_factory_.GetWeakPtr()));
-}
-
-MojoFetcher::~MojoFetcher() {
-}
-
-void MojoFetcher::OnReceivedResponse(mojo::URLResponsePtr response) {
- client_->OnReceivedResponse(response.Pass());
-}
-
-} // namespace blink
« no previous file with comments | « sky/engine/platform/fetcher/MojoFetcher.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698