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

Unified Diff: mojo/fetcher/about_fetcher.h

Issue 1343823002: Revert of 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/fetcher/DEPS ('k') | mojo/fetcher/about_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/fetcher/about_fetcher.h
diff --git a/mojo/fetcher/about_fetcher.h b/mojo/fetcher/about_fetcher.h
deleted file mode 100644
index 456125a284ef22f573cbc5e0d31380d1ee7fc8a2..0000000000000000000000000000000000000000
--- a/mojo/fetcher/about_fetcher.h
+++ /dev/null
@@ -1,58 +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_FETCHER_ABOUT_FETCHER_H_
-#define MOJO_FETCHER_ABOUT_FETCHER_H_
-
-#include "mojo/shell/fetcher.h"
-
-#include "base/macros.h"
-#include "mojo/services/network/public/interfaces/url_loader.mojom.h"
-#include "url/gurl.h"
-
-namespace mojo {
-namespace fetcher {
-
-// Implements Fetcher for about: URLs.
-class AboutFetcher : public shell::Fetcher {
- public:
- static const char kAboutScheme[];
- static const char kAboutBlankURL[];
-
- static void Start(const GURL& url, const FetchCallback& loader_callback);
-
- private:
- AboutFetcher(const GURL& url, const FetchCallback& loader_callback);
- ~AboutFetcher() override;
-
- void BuildResponse();
-
- // Must be called exactly once to run the loader callback (asynchrously). On
- // success, the ownership of this object is passed to the loader callback;
- // otherwise, the callback is run with a nullptr and this object is destroyed.
- void PostToRunCallback(bool success);
-
- // shell::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;
-
- const GURL url_;
- URLResponsePtr response_;
-
- DISALLOW_COPY_AND_ASSIGN(AboutFetcher);
-};
-
-} // namespace fetcher
-} // namespace mojo
-
-#endif // MOJO_FETCHER_ABOUT_FETCHER_H_
« no previous file with comments | « mojo/fetcher/DEPS ('k') | mojo/fetcher/about_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698