From: Alex Rousskov Date: Thu, 8 May 2008 20:16:36 +0000 (-0600) Subject: Added Adaptation::Message that brings together the HttpMsg and the X-Git-Tag: SQUID_3_1_0_1~45^2~11^2~26^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=781c9e134750cd5fbf0a4c1112ea6be07311a49c;p=thirdparty%2Fsquid.git Added Adaptation::Message that brings together the HttpMsg and the corresponding body_pipe and handle HttpMsg locking. TODO: This class should not be needed. HttpMsg already has body_pipe. In the past, we could not use that pipe "as is" because some other code would steal it from the message. Once such cases are removed and something like HttpMsg::Pointer is added to handle locking, there will be no need for Adaptation::Message. TODO: ICAPInOut should be replaced with two Adaptation::Messages, one for the virgin message (that often has a body) and one for the cause, even though the ICAP cause does not need a body. --- diff --git a/src/adaptation/forward.h b/src/adaptation/forward.h index 3c7ecb1b90..b26fcc9e0b 100644 --- a/src/adaptation/forward.h +++ b/src/adaptation/forward.h @@ -21,6 +21,7 @@ class Initiator; class AccessCheck; class AccessRule; class ServiceGroup; +class Message; typedef RefCount ServicePointer;