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

Side by Side Diff: components/domain_reliability/quic_error_mapping.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, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_DOMAIN_RELIABILITY_QUIC_ERROR_MAPPING_H_ 5 #ifndef COMPONENTS_DOMAIN_RELIABILITY_QUIC_ERROR_MAPPING_H_
6 #define COMPONENTS_DOMAIN_RELIABILITY_QUIC_ERROR_MAPPING_H_ 6 #define COMPONENTS_DOMAIN_RELIABILITY_QUIC_ERROR_MAPPING_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "net/quic/quic_protocol.h" 10 #include "net/quic/core/quic_protocol.h"
11 11
12 // N.B. This file and the .cc are separate from util.h/.cc so that they can be 12 // N.B. This file and the .cc are separate from util.h/.cc so that they can be
13 // independently updated by folks working on QUIC when new errors are added. 13 // independently updated by folks working on QUIC when new errors are added.
14 14
15 namespace domain_reliability { 15 namespace domain_reliability {
16 16
17 // Attempts to convert a QUIC error into the quic_error string 17 // Attempts to convert a QUIC error into the quic_error string
18 // that should be recorded in a beacon. Returns true and parse the QUIC error 18 // that should be recorded in a beacon. Returns true and parse the QUIC error
19 // code in |beacon_quic_error_out| if it could. 19 // code in |beacon_quic_error_out| if it could.
20 // Returns false and clear |beacon_quic_error_out| otherwise. 20 // Returns false and clear |beacon_quic_error_out| otherwise.
21 bool GetDomainReliabilityBeaconQuicError(net::QuicErrorCode quic_error, 21 bool GetDomainReliabilityBeaconQuicError(net::QuicErrorCode quic_error,
22 std::string* beacon_quic_error_out); 22 std::string* beacon_quic_error_out);
23 23
24 } // namespace domain_reliability 24 } // namespace domain_reliability
25 25
26 #endif // COMPONENTS_DOMAIN_RELIABILITY_QUIC_ERROR_MAPPING_H_ 26 #endif // COMPONENTS_DOMAIN_RELIABILITY_QUIC_ERROR_MAPPING_H_
OLDNEW
« no previous file with comments | « components/cronet/url_request_context_config.cc ('k') | components/domain_reliability/quic_error_mapping.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698