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

Unified Diff: net/quic/quic_types.h

Issue 2193073003: Move shared files in net/quic/ into net/quic/core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: io_thread_unittest.cc Created 4 years, 5 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/quic_time_test.cc ('k') | net/quic/quic_types.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_types.h
diff --git a/net/quic/quic_types.h b/net/quic/quic_types.h
deleted file mode 100644
index 4f24e95f62d15a6a6c8f728d29ef487a1bf58bf1..0000000000000000000000000000000000000000
--- a/net/quic/quic_types.h
+++ /dev/null
@@ -1,70 +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_QUIC_TYPES_H_
-#define NET_QUIC_QUIC_TYPES_H_
-
-// This header defines some basic types that don't depend on quic_protocol.h,
-// so that classes not directly related to the protocol wire format can avoid
-// including quic_protocol.h.
-
-#include <stddef.h>
-
-#include <ostream>
-
-#include "net/base/net_export.h"
-
-namespace net {
-
-// A struct for functions which consume data payloads and fins.
-struct NET_EXPORT_PRIVATE QuicConsumedData {
- QuicConsumedData(size_t bytes_consumed, bool fin_consumed);
-
- // By default, gtest prints the raw bytes of an object. The bool data
- // member causes this object to have padding bytes, which causes the
- // default gtest object printer to read uninitialize memory. So we need
- // to teach gtest how to print this object.
- NET_EXPORT_PRIVATE friend std::ostream& operator<<(std::ostream& os,
- const QuicConsumedData& s);
-
- // How many bytes were consumed.
- size_t bytes_consumed;
-
- // True if an incoming fin was consumed.
- bool fin_consumed;
-};
-
-// QuicAsyncStatus enumerates the possible results of an asynchronous
-// operation.
-enum QuicAsyncStatus {
- QUIC_SUCCESS = 0,
- QUIC_FAILURE = 1,
- // QUIC_PENDING results from an operation that will occur asynchonously. When
- // the operation is complete, a callback's |Run| method will be called.
- QUIC_PENDING = 2,
-};
-
-// TODO(wtc): see if WriteStatus can be replaced by QuicAsyncStatus.
-enum WriteStatus {
- WRITE_STATUS_OK,
- WRITE_STATUS_BLOCKED,
- WRITE_STATUS_ERROR,
-};
-
-// A struct used to return the result of write calls including either the number
-// of bytes written or the error code, depending upon the status.
-struct NET_EXPORT_PRIVATE WriteResult {
- WriteResult(WriteStatus status, int bytes_written_or_error_code);
- WriteResult();
-
- WriteStatus status;
- union {
- int bytes_written; // only valid when status is WRITE_STATUS_OK
- int error_code; // only valid when status is WRITE_STATUS_ERROR
- };
-};
-
-} // namespace net
-
-#endif // NET_QUIC_QUIC_TYPES_H_
« no previous file with comments | « net/quic/quic_time_test.cc ('k') | net/quic/quic_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698