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

Side by Side Diff: net/spdy/chromium/http2_priority_dependencies.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
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 NET_SPDY_HTTP2_PRIORITY_DEPENDENCIES_H_ 5 #ifndef NET_SPDY_HTTP2_PRIORITY_DEPENDENCIES_H_
6 #define NET_SPDY_HTTP2_PRIORITY_DEPENDENCIES_H_ 6 #define NET_SPDY_HTTP2_PRIORITY_DEPENDENCIES_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
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 // A helper class encapsulating the state and logic to set dependencies of 16 // A helper class encapsulating the state and logic to set dependencies of
17 // HTTP2 streams based on their SpdyPriority and the ordering 17 // HTTP2 streams based on their SpdyPriority and the ordering
18 // of creation and deletion of the streams. 18 // of creation and deletion of the streams.
19 class NET_EXPORT_PRIVATE Http2PriorityDependencies { 19 class NET_EXPORT_PRIVATE Http2PriorityDependencies {
20 public: 20 public:
21 Http2PriorityDependencies(); 21 Http2PriorityDependencies();
22 ~Http2PriorityDependencies(); 22 ~Http2PriorityDependencies();
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 // Finds the stream just below |id| in the total order. 82 // Finds the stream just below |id| in the total order.
83 // Returns false if there are no streams with a lower priority. 83 // Returns false if there are no streams with a lower priority.
84 // Otherwise, returns true and sets |*child|. 84 // Otherwise, returns true and sets |*child|.
85 bool ChildOfStream(SpdyStreamId id, IdList::iterator* child); 85 bool ChildOfStream(SpdyStreamId id, IdList::iterator* child);
86 }; 86 };
87 87
88 } // namespace net 88 } // namespace net
89 89
90 #endif // NET_SPDY_HTTP2_PRIORITY_DEPENDENCIES_H_ 90 #endif // NET_SPDY_HTTP2_PRIORITY_DEPENDENCIES_H_
OLDNEW
« no previous file with comments | « net/spdy/chromium/header_coalescer_test.cc ('k') | net/spdy/chromium/http2_priority_dependencies.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698