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

Side by Side Diff: net/spdy/spdy_test_util_spdy3.h

Issue 13878015: Avoid C++11 narrowing errors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@speech-dispatcher-version-fix
Patch Set: Try to make MSVC happy Created 7 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 unified diff | Download patch
« no previous file with comments | « base/strings/string_number_conversions_unittest.cc ('k') | net/spdy/spdy_test_util_spdy3.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 NET_SPDY_SPDY_TEST_UTIL_SPDY3_H_ 5 #ifndef NET_SPDY_SPDY_TEST_UTIL_SPDY3_H_
6 #define NET_SPDY_SPDY_TEST_UTIL_SPDY3_H_ 6 #define NET_SPDY_SPDY_TEST_UTIL_SPDY3_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/strings/string_piece.h" 10 #include "base/strings/string_piece.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // Construct a SPDY control frame. |spdy_version| must be 102 // Construct a SPDY control frame. |spdy_version| must be
103 // kSpdyVersion3 or kSpdyVersion4. 103 // kSpdyVersion3 or kSpdyVersion4.
104 // 104 //
105 // TODO(akalin): Move this to a common area once 105 // TODO(akalin): Move this to a common area once
106 // ConstructSpdyFrameWithVersion() is also moved. 106 // ConstructSpdyFrameWithVersion() is also moved.
107 SpdyFrame* ConstructSpdyControlFrameWithVersion( 107 SpdyFrame* ConstructSpdyControlFrameWithVersion(
108 int spdy_version, 108 int spdy_version,
109 const char* const extra_headers[], 109 const char* const extra_headers[],
110 int extra_header_count, 110 int extra_header_count,
111 bool compressed, 111 bool compressed,
112 int stream_id, 112 SpdyStreamId stream_id,
113 RequestPriority request_priority, 113 RequestPriority request_priority,
114 SpdyFrameType type, 114 SpdyFrameType type,
115 SpdyControlFlags flags, 115 SpdyControlFlags flags,
116 const char* const* kHeaders, 116 const char* const* kHeaders,
117 int kHeadersSize, 117 int kHeadersSize,
118 SpdyStreamId associated_stream_id); 118 SpdyStreamId associated_stream_id);
119 119
120 // Construct a generic SPDY control frame. 120 // Construct a generic SPDY control frame.
121 SpdyFrame* ConstructSpdyControlFrame(const char* const extra_headers[], 121 SpdyFrame* ConstructSpdyControlFrame(const char* const extra_headers[],
122 int extra_header_count, 122 int extra_header_count,
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 SpdySessionPool* const pool_; 422 SpdySessionPool* const pool_;
423 423
424 DISALLOW_COPY_AND_ASSIGN(SpdySessionPoolPeer); 424 DISALLOW_COPY_AND_ASSIGN(SpdySessionPoolPeer);
425 }; 425 };
426 426
427 } // namespace test_spdy3 427 } // namespace test_spdy3
428 428
429 } // namespace net 429 } // namespace net
430 430
431 #endif // NET_SPDY_SPDY_TEST_UTIL_SPDY3_H_ 431 #endif // NET_SPDY_SPDY_TEST_UTIL_SPDY3_H_
OLDNEW
« no previous file with comments | « base/strings/string_number_conversions_unittest.cc ('k') | net/spdy/spdy_test_util_spdy3.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698