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

Unified Diff: net/quic/crypto/crypto_server_config_protobuf.h

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: net/quic/crypto/crypto_server_config_protobuf.h
diff --git a/net/quic/crypto/crypto_server_config_protobuf.h b/net/quic/crypto/crypto_server_config_protobuf.h
index 57ebfb048478efc4b2bf2ab63ae30003c2a2f767..111fad8a2140529ea9db3fa280187aaa0b2fdf85 100644
--- a/net/quic/crypto/crypto_server_config_protobuf.h
+++ b/net/quic/crypto/crypto_server_config_protobuf.h
@@ -26,18 +26,10 @@ class NET_EXPORT_PRIVATE QuicServerConfigProtobuf {
// private key is specific to the algorithm in question.
class NET_EXPORT_PRIVATE PrivateKey {
public:
- QuicTag tag() const {
- return tag_;
- }
- void set_tag(QuicTag tag) {
- tag_ = tag;
- }
- std::string private_key() const {
- return private_key_;
- }
- void set_private_key(std::string key) {
- private_key_ = key;
- }
+ QuicTag tag() const { return tag_; }
+ void set_tag(QuicTag tag) { tag_ = tag; }
+ std::string private_key() const { return private_key_; }
+ void set_private_key(std::string key) { private_key_ = key; }
private:
QuicTag tag_;
@@ -47,55 +39,35 @@ class NET_EXPORT_PRIVATE QuicServerConfigProtobuf {
QuicServerConfigProtobuf();
~QuicServerConfigProtobuf();
- size_t key_size() const {
- return keys_.size();
- }
+ size_t key_size() const { return keys_.size(); }
const PrivateKey& key(size_t i) const {
DCHECK_GT(keys_.size(), i);
return *keys_[i];
}
- std::string config() const {
- return config_;
- }
+ std::string config() const { return config_; }
- void set_config(base::StringPiece config) {
- config.CopyToString(&config_);
- }
+ void set_config(base::StringPiece config) { config.CopyToString(&config_); }
QuicServerConfigProtobuf::PrivateKey* add_key() {
keys_.push_back(new PrivateKey);
return keys_.back();
}
- void clear_key() {
- STLDeleteElements(&keys_);
- }
+ void clear_key() { STLDeleteElements(&keys_); }
- bool has_primary_time() const {
- return primary_time_ > 0;
- }
+ bool has_primary_time() const { return primary_time_ > 0; }
- int64 primary_time() const {
- return primary_time_;
- }
+ int64 primary_time() const { return primary_time_; }
- void set_primary_time(int64 primary_time) {
- primary_time_ = primary_time;
- }
+ void set_primary_time(int64 primary_time) { primary_time_ = primary_time; }
- bool has_priority() const {
- return priority_ > 0;
- }
+ bool has_priority() const { return priority_ > 0; }
- uint64 priority() const {
- return priority_;
- }
+ uint64 priority() const { return priority_; }
- void set_priority(int64 priority) {
- priority_ = priority;
- }
+ void set_priority(int64 priority) { priority_ = priority; }
bool has_source_address_token_secret_override() const {
return !source_address_token_secret_override_.empty();

Powered by Google App Engine
This is Rietveld 408576698