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

Side by Side Diff: net/spdy/core/write_scheduler.h

Issue 2832973003: Split net/spdy into core and chromium subdirectories. (Closed)
Patch Set: Fix some more build rules. 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 unified diff | Download patch
« no previous file with comments | « net/spdy/core/spdy_test_utils.cc ('k') | net/spdy/core/zero_copy_output_buffer.h » ('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) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 NET_SPDY_WRITE_SCHEDULER_H_ 5 #ifndef NET_SPDY_WRITE_SCHEDULER_H_
6 #define NET_SPDY_WRITE_SCHEDULER_H_ 6 #define NET_SPDY_WRITE_SCHEDULER_H_
7 7
8 #include <tuple> 8 #include <tuple>
9 #include <vector> 9 #include <vector>
10 10
11 #include "net/base/net_export.h" 11 #include "net/base/net_export.h"
12 #include "net/spdy/spdy_protocol.h" 12 #include "net/spdy/core/spdy_protocol.h"
13 13
14 namespace net { 14 namespace net {
15 15
16 // Abstract superclass for classes that decide which SPDY or HTTP/2 stream to 16 // Abstract superclass for classes that decide which SPDY or HTTP/2 stream to
17 // write next. Concrete subclasses implement various scheduling policies: 17 // write next. Concrete subclasses implement various scheduling policies:
18 // 18 //
19 // PriorityWriteScheduler: implements SPDY priority-based stream scheduling, 19 // PriorityWriteScheduler: implements SPDY priority-based stream scheduling,
20 // where (writable) higher-priority streams are always given precedence 20 // where (writable) higher-priority streams are always given precedence
21 // over lower-priority streams. 21 // over lower-priority streams.
22 // 22 //
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 // Returns true iff the scheduler has any ready streams. 142 // Returns true iff the scheduler has any ready streams.
143 virtual bool HasReadyStreams() const = 0; 143 virtual bool HasReadyStreams() const = 0;
144 144
145 // Returns the number of streams currently marked ready. 145 // Returns the number of streams currently marked ready.
146 virtual size_t NumReadyStreams() const = 0; 146 virtual size_t NumReadyStreams() const = 0;
147 }; 147 };
148 148
149 } // namespace net 149 } // namespace net
150 150
151 #endif // NET_SPDY_WRITE_SCHEDULER_H_ 151 #endif // NET_SPDY_WRITE_SCHEDULER_H_
OLDNEW
« no previous file with comments | « net/spdy/core/spdy_test_utils.cc ('k') | net/spdy/core/zero_copy_output_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698