forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uri_components.h
41 lines (31 loc) · 1.07 KB
/
uri_components.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Copyright 2017 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 CHROMEOS_PRINTING_URI_COMPONENTS_H_
#define CHROMEOS_PRINTING_URI_COMPONENTS_H_
#include <string>
#include "chromeos/chromeos_export.h"
#include "url/third_party/mozilla/url_parse.h"
namespace chromeos {
class CHROMEOS_EXPORT UriComponents {
public:
UriComponents(bool encrypted,
const std::string& scheme,
const std::string& host,
int port,
const std::string& path);
UriComponents(const UriComponents&);
bool encrypted() const { return encrypted_; }
std::string scheme() const { return scheme_; }
std::string host() const { return host_; }
int port() const { return port_; }
std::string path() const { return path_; }
private:
const bool encrypted_;
const std::string scheme_;
const std::string host_;
const int port_;
const std::string path_;
};
} // namespace chromeos
#endif // CHROMEOS_PRINTING_URI_COMPONENTS_H_