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

Unified Diff: mojo/shell/update_fetcher.h

Issue 1342503003: Move fetching logic out of ApplicationManager, eliminate url mappings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 3 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 | « mojo/shell/network_fetcher.cc ('k') | mojo/shell/update_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/update_fetcher.h
diff --git a/mojo/shell/update_fetcher.h b/mojo/shell/update_fetcher.h
deleted file mode 100644
index 26c82df40cf42c4baff02b9187ccc118a7c631e2..0000000000000000000000000000000000000000
--- a/mojo/shell/update_fetcher.h
+++ /dev/null
@@ -1,55 +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.
-
-#ifndef MOJO_SHELL_UPDATE_FETCHER_H_
-#define MOJO_SHELL_UPDATE_FETCHER_H_
-
-#include "mojo/shell/fetcher.h"
-
-#include "base/files/file_path.h"
-#include "base/memory/weak_ptr.h"
-#include "mojo/services/updater/updater.mojom.h"
-#include "url/gurl.h"
-
-namespace mojo {
-
-class URLLoaderFactory;
-
-namespace shell {
-
-class UpdateFetcher : public Fetcher {
- public:
- UpdateFetcher(const GURL& url,
- updater::Updater* updater,
- const FetchCallback& loader_callback);
-
- ~UpdateFetcher() override;
-
- private:
- // Fetcher implementation:
- const GURL& GetURL() const override;
- GURL GetRedirectURL() const override;
- GURL GetRedirectReferer() const override;
- URLResponsePtr AsURLResponse(base::TaskRunner* task_runner,
- uint32_t skip) override;
- void AsPath(
- base::TaskRunner* task_runner,
- base::Callback<void(const base::FilePath&, bool)> callback) override;
- std::string MimeType() override;
- bool HasMojoMagic() override;
- bool PeekFirstLine(std::string* line) override;
-
- void OnGetAppPath(const mojo::String& path);
-
- const GURL url_;
- base::FilePath path_;
- base::WeakPtrFactory<UpdateFetcher> weak_ptr_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(UpdateFetcher);
-};
-
-} // namespace shell
-} // namespace mojo
-
-#endif // MOJO_SHELL_UPDATE_FETCHER_H_
« no previous file with comments | « mojo/shell/network_fetcher.cc ('k') | mojo/shell/update_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698