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

Side by Side Diff: mojo/shell/fetcher/about_fetcher.h

Issue 1563413002: Move fetchers into mojo/shell/fetcher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/shell/fetcher/DEPS ('k') | mojo/shell/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_FETCHER_ABOUT_FETCHER_H_ 5 #ifndef MOJO_SHELL_FETCHER_ABOUT_FETCHER_H_
6 #define MOJO_FETCHER_ABOUT_FETCHER_H_ 6 #define MOJO_SHELL_FETCHER_ABOUT_FETCHER_H_
7 7
8 #include "mojo/shell/fetcher.h" 8 #include "mojo/shell/fetcher.h"
9 9
10 #include <stdint.h> 10 #include <stdint.h>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "mojo/services/network/public/interfaces/url_loader.mojom.h" 13 #include "mojo/services/network/public/interfaces/url_loader.mojom.h"
14 #include "url/gurl.h" 14 #include "url/gurl.h"
15 15
16 namespace mojo { 16 namespace mojo {
17 namespace fetcher { 17 namespace shell {
18 18
19 // Implements Fetcher for about: URLs. 19 // Implements Fetcher for about: URLs.
20 class AboutFetcher : public shell::Fetcher { 20 class AboutFetcher : public shell::Fetcher {
21 public: 21 public:
22 static const char kAboutScheme[]; 22 static const char kAboutScheme[];
23 static const char kAboutBlankURL[]; 23 static const char kAboutBlankURL[];
24 24
25 static void Start(const GURL& url, const FetchCallback& loader_callback); 25 static void Start(const GURL& url, const FetchCallback& loader_callback);
26 26
27 private: 27 private:
(...skipping 19 matching lines...) Expand all
47 std::string MimeType() override; 47 std::string MimeType() override;
48 bool HasMojoMagic() override; 48 bool HasMojoMagic() override;
49 bool PeekFirstLine(std::string* line) override; 49 bool PeekFirstLine(std::string* line) override;
50 50
51 const GURL url_; 51 const GURL url_;
52 URLResponsePtr response_; 52 URLResponsePtr response_;
53 53
54 DISALLOW_COPY_AND_ASSIGN(AboutFetcher); 54 DISALLOW_COPY_AND_ASSIGN(AboutFetcher);
55 }; 55 };
56 56
57 } // namespace fetcher 57 } // namespace shell
58 } // namespace mojo 58 } // namespace mojo
59 59
60 #endif // MOJO_FETCHER_ABOUT_FETCHER_H_ 60 #endif // MOJO_SHELL_FETCHER_ABOUT_FETCHER_H_
OLDNEW
« no previous file with comments | « mojo/shell/fetcher/DEPS ('k') | mojo/shell/fetcher/about_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698