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

Side by Side Diff: net/spdy/spdy_session.cc

Issue 2014193002: Remove Net.SpdyPriorityCount histogram. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « no previous file | tools/metrics/histograms/histograms.xml » ('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 #include "net/spdy/spdy_session.h" 5 #include "net/spdy/spdy_session.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <utility> 10 #include <utility>
(...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 return ERR_CONNECTION_CLOSED; 943 return ERR_CONNECTION_CLOSED;
944 } 944 }
945 945
946 std::unique_ptr<SpdyStream> new_stream( 946 std::unique_ptr<SpdyStream> new_stream(
947 new SpdyStream(request.type(), GetWeakPtr(), request.url(), 947 new SpdyStream(request.type(), GetWeakPtr(), request.url(),
948 request.priority(), stream_initial_send_window_size_, 948 request.priority(), stream_initial_send_window_size_,
949 stream_max_recv_window_size_, request.net_log())); 949 stream_max_recv_window_size_, request.net_log()));
950 *stream = new_stream->GetWeakPtr(); 950 *stream = new_stream->GetWeakPtr();
951 InsertCreatedStream(std::move(new_stream)); 951 InsertCreatedStream(std::move(new_stream));
952 952
953 UMA_HISTOGRAM_CUSTOM_COUNTS(
954 "Net.SpdyPriorityCount",
955 static_cast<int>(request.priority()), 0, 10, 11);
956
957 return OK; 953 return OK;
958 } 954 }
959 955
960 void SpdySession::CancelStreamRequest( 956 void SpdySession::CancelStreamRequest(
961 const base::WeakPtr<SpdyStreamRequest>& request) { 957 const base::WeakPtr<SpdyStreamRequest>& request) {
962 DCHECK(request); 958 DCHECK(request);
963 RequestPriority priority = request->priority(); 959 RequestPriority priority = request->priority();
964 CHECK_GE(priority, MINIMUM_PRIORITY); 960 CHECK_GE(priority, MINIMUM_PRIORITY);
965 CHECK_LE(priority, MAXIMUM_PRIORITY); 961 CHECK_LE(priority, MAXIMUM_PRIORITY);
966 962
(...skipping 2373 matching lines...) Expand 10 before | Expand all | Expand 10 after
3340 if (!queue->empty()) { 3336 if (!queue->empty()) {
3341 SpdyStreamId stream_id = queue->front(); 3337 SpdyStreamId stream_id = queue->front();
3342 queue->pop_front(); 3338 queue->pop_front();
3343 return stream_id; 3339 return stream_id;
3344 } 3340 }
3345 } 3341 }
3346 return 0; 3342 return 0;
3347 } 3343 }
3348 3344
3349 } // namespace net 3345 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698