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

Side by Side Diff: webrtc/rtc_base/httpbase.cc

Issue 3007253002: Remove typedefs.h from webrtc/ root (part 1)
Patch Set: backwards compatible FALLTHROUGH #define Created 3 years, 3 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 | « webrtc/rtc_base/checks.cc ('k') | webrtc/typedefs.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 /* 1 /*
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 case SR_BLOCK: 530 case SR_BLOCK:
531 if (process_requires_more_data) { 531 if (process_requires_more_data) {
532 // We're can't make progress until more data is available. 532 // We're can't make progress until more data is available.
533 return false; 533 return false;
534 } 534 }
535 // Attempt to process the data already in our buffer. 535 // Attempt to process the data already in our buffer.
536 break; 536 break;
537 case SR_EOS: 537 case SR_EOS:
538 // Clean close, with no error. 538 // Clean close, with no error.
539 read_error = 0; 539 read_error = 0;
540 FALLTHROUGH(); // Fall through to HandleStreamClose. 540 RTC_FALLTHROUGH(); // Fall through to HandleStreamClose.
541 case SR_ERROR: 541 case SR_ERROR:
542 *error = HandleStreamClose(read_error); 542 *error = HandleStreamClose(read_error);
543 return true; 543 return true;
544 } 544 }
545 } else if (process_requires_more_data) { 545 } else if (process_requires_more_data) {
546 // We have too much unprocessed data in our buffer. This should only 546 // We have too much unprocessed data in our buffer. This should only
547 // occur when a single HTTP header is longer than the buffer size (32K). 547 // occur when a single HTTP header is longer than the buffer size (32K).
548 // Anything longer than that is almost certainly an error. 548 // Anything longer than that is almost certainly an error.
549 *error = HE_OVERFLOW; 549 *error = HE_OVERFLOW;
550 return true; 550 return true;
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
877 } 877 }
878 } 878 }
879 879
880 void 880 void
881 HttpBase::OnComplete(HttpError err) { 881 HttpBase::OnComplete(HttpError err) {
882 LOG_F(LS_VERBOSE); 882 LOG_F(LS_VERBOSE);
883 do_complete(err); 883 do_complete(err);
884 } 884 }
885 885
886 } // namespace rtc 886 } // namespace rtc
OLDNEW
« no previous file with comments | « webrtc/rtc_base/checks.cc ('k') | webrtc/typedefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698