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

Side by Side Diff: mojo/fetcher/about_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 unified diff | Download patch
« no previous file with comments | « mojo/fetcher/DEPS ('k') | mojo/fetcher/about_fetcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MOJO_RUNNER_ABOUT_FETCHER_H_ 5 #ifndef MOJO_FETCHER_ABOUT_FETCHER_H_
6 #define MOJO_RUNNER_ABOUT_FETCHER_H_ 6 #define MOJO_FETCHER_ABOUT_FETCHER_H_
7 7
8 #include "mojo/shell/fetcher.h" 8 #include "mojo/shell/fetcher.h"
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "mojo/services/network/public/interfaces/url_loader.mojom.h" 11 #include "mojo/services/network/public/interfaces/url_loader.mojom.h"
12 #include "url/gurl.h" 12 #include "url/gurl.h"
13 13
14 namespace mojo { 14 namespace mojo {
15 namespace runner { 15 namespace fetcher {
16 16
17 // Implements Fetcher for about: URLs. 17 // Implements Fetcher for about: URLs.
18 class AboutFetcher : public shell::Fetcher { 18 class AboutFetcher : public shell::Fetcher {
19 public: 19 public:
20 static const char kAboutScheme[]; 20 static const char kAboutScheme[];
21 static const char kAboutBlankURL[]; 21 static const char kAboutBlankURL[];
22 22
23 static void Start(const GURL& url, const FetchCallback& loader_callback); 23 static void Start(const GURL& url, const FetchCallback& loader_callback);
24 24
25 private: 25 private:
(...skipping 19 matching lines...) Expand all
45 std::string MimeType() override; 45 std::string MimeType() override;
46 bool HasMojoMagic() override; 46 bool HasMojoMagic() override;
47 bool PeekFirstLine(std::string* line) override; 47 bool PeekFirstLine(std::string* line) override;
48 48
49 const GURL url_; 49 const GURL url_;
50 URLResponsePtr response_; 50 URLResponsePtr response_;
51 51
52 DISALLOW_COPY_AND_ASSIGN(AboutFetcher); 52 DISALLOW_COPY_AND_ASSIGN(AboutFetcher);
53 }; 53 };
54 54
55 } // namespace runner 55 } // namespace fetcher
56 } // namespace mojo 56 } // namespace mojo
57 57
58 #endif // MOJO_RUNNER_ABOUT_FETCHER_H_ 58 #endif // MOJO_FETCHER_ABOUT_FETCHER_H_
OLDNEW
« 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