Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef EXTENSIONS_COMMON_ALIAS_H_ | |
| 6 #define EXTENSIONS_COMMON_ALIAS_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 namespace extensions { | |
| 11 | |
| 12 // Information about a specific alias. | |
|
Devlin
2016/10/07 18:36:21
What is an Alias? Why do we need them/where do we
tbarzic
2016/10/07 20:41:18
Done.
| |
| 13 class Alias { | |
| 14 public: | |
| 15 // |name|: The alias name. | |
| 16 // |real_name|: The real name behind alias. | |
| 17 Alias(const char* const name, const char* const real_name) | |
| 18 : name_(name), real_name_(real_name) {} | |
| 19 ~Alias() {} | |
| 20 | |
| 21 const std::string& name() const { return name_; } | |
| 22 const std::string& real_name() const { return real_name_; } | |
| 23 | |
| 24 private: | |
| 25 // The alias name. | |
| 26 std::string name_; | |
|
Devlin
2016/10/07 18:36:21
nit: \n
tbarzic
2016/10/07 20:41:18
Done.
| |
| 27 // The real name behind the alias. | |
| 28 std::string real_name_; | |
| 29 }; | |
| 30 | |
| 31 } // namespace extensions | |
| 32 | |
| 33 #endif // EXTENSIONS_COMMON_ALIAS_H_ | |
| OLD | NEW |