summaryrefslogtreecommitdiffstats
path: root/net/base
diff options
context:
space:
mode:
authormbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-12 06:52:14 +0000
committermbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-12 06:52:14 +0000
commitff57bb8cbd7217ddb3a4c47a25ed06687cc97e79 (patch)
tree5b08789df861082404d4eb60f453cbded43caa04 /net/base
parenta032ecce91e257c7f574e11e200a8894567dd947 (diff)
downloadchromium_src-ff57bb8cbd7217ddb3a4c47a25ed06687cc97e79.zip
chromium_src-ff57bb8cbd7217ddb3a4c47a25ed06687cc97e79.tar.gz
chromium_src-ff57bb8cbd7217ddb3a4c47a25ed06687cc97e79.tar.bz2
Enable FLIP POST with unittest.
Involved some refactoring of FlipStreamParser/FlipStream/FlipSession. I now want to merge FlipStream and FlipStreamParser. In this CL: * Update the FlipDelegate to remove unused methods and add the OnWriteCompleted() method. * Add a full state machine to the FlipStreamParser. This is the same state machine which is used by the HttpStreamParser, with only small changes. The FLIP side of this only needs the write-state right now, and as we merge the FlipStream and FlipStreamParser, I think we'll get the full state machine hashed out. * POST now works (minimally). I need more testing for large posts. But the unittests are updated (using the new delayed async mock socket work). BUG=none TEST=flip_network_transaction_unittest.cc Review URL: http://codereview.chromium.org/390016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31772 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base')
-rw-r--r--net/base/net_error_list.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/base/net_error_list.h b/net/base/net_error_list.h
index 00aad2d..12bb3a4 100644
--- a/net/base/net_error_list.h
+++ b/net/base/net_error_list.h
@@ -285,6 +285,9 @@ NET_ERROR(ENCODING_CONVERSION_FAILED, -333)
// The server sent an FTP directory listing in a format we do not understand.
NET_ERROR(UNRECOGNIZED_FTP_DIRECTORY_LISTING_FORMAT, -334)
+// Attempted use of an unknown FLIP stream id.
+NET_ERROR(INVALID_FLIP_STREAM, -335)
+
// The cache does not have the requested entry.
NET_ERROR(CACHE_MISS, -400)