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

Side by Side Diff: net/websockets/websocket_handshake_handler.cc

Issue 16652007: Use a direct include of strings headers in net/test/, net/third_party/, net/tools/, net/udp/, net/u… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
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/websockets/websocket_handshake_handler.h" 5 #include "net/websockets/websocket_handshake_handler.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/md5.h" 10 #include "base/md5.h"
11 #include "base/sha1.h" 11 #include "base/sha1.h"
12 #include "base/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
13 #include "base/string_util.h" 13 #include "base/strings/string_util.h"
14 #include "base/stringprintf.h" 14 #include "base/strings/stringprintf.h"
15 #include "base/strings/string_piece.h" 15 #include "base/strings/string_piece.h"
16 #include "base/strings/string_tokenizer.h" 16 #include "base/strings/string_tokenizer.h"
17 #include "googleurl/src/gurl.h" 17 #include "googleurl/src/gurl.h"
18 #include "net/http/http_response_headers.h" 18 #include "net/http/http_response_headers.h"
19 #include "net/http/http_util.h" 19 #include "net/http/http_util.h"
20 20
21 namespace { 21 namespace {
22 22
23 const size_t kRequestKey3Size = 8U; 23 const size_t kRequestKey3Size = 8U;
24 const size_t kResponseKeySize = 16U; 24 const size_t kResponseKeySize = 16U;
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 return status_line_ + headers_ + header_separator_ + key_; 564 return status_line_ + headers_ + header_separator_ + key_;
565 } 565 }
566 566
567 size_t WebSocketHandshakeResponseHandler::GetResponseKeySize() const { 567 size_t WebSocketHandshakeResponseHandler::GetResponseKeySize() const {
568 if (protocol_version_ >= kMinVersionOfHybiNewHandshake) 568 if (protocol_version_ >= kMinVersionOfHybiNewHandshake)
569 return 0; 569 return 0;
570 return kResponseKeySize; 570 return kResponseKeySize;
571 } 571 }
572 572
573 } // namespace net 573 } // namespace net
OLDNEW
« no previous file with comments | « net/websockets/websocket_frame_unittest.cc ('k') | net/websockets/websocket_handshake_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698