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

Unified Diff: net/quic/core/quic_flags.h

Issue 2825083003: Landing Recent QUIC changes until Mon Apr 17 2017 (Closed)
Patch Set: Format Created 3 years, 8 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
« no previous file with comments | « net/quic/core/quic_data_writer_test.cc ('k') | net/quic/core/quic_flags.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_flags.h
diff --git a/net/quic/core/quic_flags.h b/net/quic/core/quic_flags.h
deleted file mode 100644
index a1a5ff36c0d154b77e304cc6ae76b76a19003e93..0000000000000000000000000000000000000000
--- a/net/quic/core/quic_flags.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright 2014 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 NET_QUIC_CORE_QUIC_FLAGS_H_
-#define NET_QUIC_CORE_QUIC_FLAGS_H_
-
-#include <cstdint>
-#include <string>
-
-#include "net/quic/platform/api/quic_export.h"
-
-#define QUIC_FLAG(type, flag, value) QUIC_EXPORT_PRIVATE extern type flag;
-#include "net/quic/core/quic_flags_list.h"
-#undef QUIC_FLAG
-
-// API compatibility with new-style flags.
-namespace base {
-
-inline bool GetFlag(bool flag) {
- return flag;
-}
-inline int32_t GetFlag(int32_t flag) {
- return flag;
-}
-inline int64_t GetFlag(int64_t flag) {
- return flag;
-}
-inline uint64_t GetFlag(uint64_t flag) {
- return flag;
-}
-inline double GetFlag(double flag) {
- return flag;
-}
-inline std::string GetFlag(const std::string& flag) {
- return flag;
-}
-
-inline void SetFlag(bool* f, bool v) {
- *f = v;
-}
-inline void SetFlag(int32_t* f, int32_t v) {
- *f = v;
-}
-inline void SetFlag(int64_t* f, int64_t v) {
- *f = v;
-}
-inline void SetFlag(uint64_t* f, uint64_t v) {
- *f = v;
-}
-inline void SetFlag(double* f, double v) {
- *f = v;
-}
-inline void SetFlag(std::string* f, const std::string& v) {
- *f = v;
-}
-
-} // namespace base
-
-#endif // NET_QUIC_CORE_QUIC_FLAGS_H_
« no previous file with comments | « net/quic/core/quic_data_writer_test.cc ('k') | net/quic/core/quic_flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698