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

Side by Side Diff: mojo/fetcher/url_resolver.h

Issue 1543603002: Switch to standard integer types in mojo/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years 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/update_fetcher.cc ('k') | mojo/gles2/command_buffer_client_impl.h » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_URL_RESOLVER_H_ 5 #ifndef MOJO_FETCHER_URL_RESOLVER_H_
6 #define MOJO_FETCHER_URL_RESOLVER_H_ 6 #define MOJO_FETCHER_URL_RESOLVER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
11 #include "base/basictypes.h"
12 #include "base/command_line.h" 11 #include "base/command_line.h"
13 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/macros.h"
14 #include "url/gurl.h" 14 #include "url/gurl.h"
15 15
16 namespace mojo { 16 namespace mojo {
17 namespace fetcher { 17 namespace fetcher {
18 18
19 // Supports resolving "mojo:" URLs to a file location, with ".mojo" appended. 19 // Supports resolving "mojo:" URLs to a file location, with ".mojo" appended.
20 class URLResolver { 20 class URLResolver {
21 public: 21 public:
22 explicit URLResolver(const GURL& mojo_base_url); 22 explicit URLResolver(const GURL& mojo_base_url);
23 ~URLResolver(); 23 ~URLResolver();
24 24
25 // Resolve the given "mojo:" URL to the URL that should be used to fetch the 25 // Resolve the given "mojo:" URL to the URL that should be used to fetch the
26 // code for the corresponding Mojo App. 26 // code for the corresponding Mojo App.
27 GURL ResolveMojoURL(const GURL& mojo_url) const; 27 GURL ResolveMojoURL(const GURL& mojo_url) const;
28 28
29 private: 29 private:
30 GURL mojo_base_url_; 30 GURL mojo_base_url_;
31 31
32 DISALLOW_COPY_AND_ASSIGN(URLResolver); 32 DISALLOW_COPY_AND_ASSIGN(URLResolver);
33 }; 33 };
34 34
35 } // namespace fetcher 35 } // namespace fetcher
36 } // namespace mojo 36 } // namespace mojo
37 37
38 #endif // MOJO_FETCHER_URL_RESOLVER_H_ 38 #endif // MOJO_FETCHER_URL_RESOLVER_H_
OLDNEW
« no previous file with comments | « mojo/fetcher/update_fetcher.cc ('k') | mojo/gles2/command_buffer_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698