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

Side by Side Diff: shell/application_manager/local_fetcher.h

Issue 972433004: Use the mojo::shell namespace consistently underly shell/. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Java! Created 5 years, 9 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 | « shell/application_manager/fetcher.cc ('k') | shell/application_manager/local_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 SHELL_APPLICATION_MANAGER_LOCAL_FETCHER_H_ 5 #ifndef SHELL_APPLICATION_MANAGER_LOCAL_FETCHER_H_
6 #define SHELL_APPLICATION_MANAGER_LOCAL_FETCHER_H_ 6 #define SHELL_APPLICATION_MANAGER_LOCAL_FETCHER_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "mojo/services/network/public/interfaces/url_loader.mojom.h" 9 #include "mojo/services/network/public/interfaces/url_loader.mojom.h"
10 #include "shell/application_manager/fetcher.h" 10 #include "shell/application_manager/fetcher.h"
11 #include "url/gurl.h" 11 #include "url/gurl.h"
12 12
13 namespace mojo { 13 namespace mojo {
14 namespace shell {
14 15
15 // Implements Fetcher for file:// URLs. 16 // Implements Fetcher for file:// URLs.
16 class LocalFetcher : public Fetcher { 17 class LocalFetcher : public Fetcher {
17 public: 18 public:
18 LocalFetcher(const GURL& url, 19 LocalFetcher(const GURL& url,
19 const GURL& url_without_query, 20 const GURL& url_without_query,
20 const FetchCallback& loader_callback); 21 const FetchCallback& loader_callback);
21 22
22 private: 23 private:
23 static base::FilePath UrlToFile(const GURL& url); 24 static base::FilePath UrlToFile(const GURL& url);
(...skipping 13 matching lines...) Expand all
37 bool HasMojoMagic() override; 38 bool HasMojoMagic() override;
38 39
39 bool PeekFirstLine(std::string* line) override; 40 bool PeekFirstLine(std::string* line) override;
40 41
41 GURL url_; 42 GURL url_;
42 base::FilePath path_; 43 base::FilePath path_;
43 44
44 DISALLOW_COPY_AND_ASSIGN(LocalFetcher); 45 DISALLOW_COPY_AND_ASSIGN(LocalFetcher);
45 }; 46 };
46 47
48 } // namespace shell
49 } // namespace mojo
50
47 #endif // SHELL_APPLICATION_MANAGER_LOCAL_FETCHER_H_ 51 #endif // SHELL_APPLICATION_MANAGER_LOCAL_FETCHER_H_
48
49 } // namespace mojo
OLDNEW
« no previous file with comments | « shell/application_manager/fetcher.cc ('k') | shell/application_manager/local_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698