]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Moved HttpHeaderFieldStat to own header file.
authorFrancesco Chemolli <kinkie@squid-cache.org>
Tue, 4 Sep 2012 11:58:36 +0000 (13:58 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Tue, 4 Sep 2012 11:58:36 +0000 (13:58 +0200)
src/HttpHdrCc.cc
src/HttpHdrSc.cc
src/HttpHeaderFieldStat.h [new file with mode: 0644]
src/Makefile.am
src/structs.h

index f9d71a702c5b28002ba4f5729dba43827d4a29c9..eb48996da9973a318e9258c97258bc6e34f1efd7 100644 (file)
@@ -33,6 +33,7 @@
 #include "squid.h"
 #include "base/StringArea.h"
 #include "HttpHeader.h"
+#include "HttpHeaderFieldStat.h"
 #include "HttpHeaderStat.h"
 #include "HttpHeaderTools.h"
 #include "HttpHdrCc.h"
index ca32ef9801236e1455022757a4d3a8e5d2d4ba79..40b64b0613269ff26d8abd842796d6fbb403a243 100644 (file)
@@ -37,6 +37,7 @@
 #include "squid.h"
 #include "HttpHdrSc.h"
 #include "HttpHeader.h"
+#include "HttpHeaderFieldStat.h"
 #include "HttpHeaderStat.h"
 #include "HttpHeaderTools.h"
 #include "Store.h"
diff --git a/src/HttpHeaderFieldStat.h b/src/HttpHeaderFieldStat.h
new file mode 100644 (file)
index 0000000..2753f23
--- /dev/null
@@ -0,0 +1,51 @@
+#ifndef SQUID_HTTPHEADERFIELDSTAT_H_
+#define SQUID_HTTPHEADERFIELDSTAT_H_
+/*
+ * DEBUG: section 
+ * AUTHOR: 
+ *
+ * SQUID Web Proxy Cache          http://www.squid-cache.org/
+ * ----------------------------------------------------------
+ *
+ *  Squid is the result of efforts by numerous individuals from
+ *  the Internet community; see the CONTRIBUTORS file for full
+ *  details.   Many organizations have provided support for Squid's
+ *  development; see the SPONSORS file for full details.  Squid is
+ *  Copyrighted (C) 2001 by the Regents of the University of
+ *  California; see the COPYRIGHT file for full details.  Squid
+ *  incorporates software developed and/or copyrighted by other
+ *  sources; see the CREDITS file for full details.
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
+ *
+ */
+
+/// per field statistics
+class HttpHeaderFieldStat
+{
+public:
+    HttpHeaderFieldStat() : aliveCount(0), seenCount(0), parsCount(0), errCount(0), repCount(0) {}
+
+    int aliveCount;     /* created but not destroyed (count) */
+    int seenCount;      /* #fields we've seen */
+    int parsCount;      /* #parsing attempts */
+    int errCount;       /* #pasring errors */
+    int repCount;       /* #repetitons */
+};
+
+
+
+
+#endif /* SQUID_HTTPHEADERFIELDSTAT_H_ */
index 35e7aa126db82e27d218fa83c69090ede460ee92..c9493a38a1e5c3daf30435bfec55d8f721707e22 100644 (file)
@@ -364,6 +364,7 @@ squid_SOURCES = \
        HttpStatusCode.h \
        HttpStatusLine.cc \
        HttpStatusLine.h \
+       HttpHeaderFieldStat.h \
        HttpHdrCc.h \
        HttpHdrCc.cc \
        HttpHdrCc.cci \
@@ -1108,6 +1109,7 @@ tests_testHttpReply_SOURCES=\
        ETag.cc \
        HttpBody.h \
        HttpBody.cc \
+       HttpHeaderFieldStat.h \
        HttpHdrCc.h \
        HttpHdrCc.cc \
        HttpHdrCc.cci \
@@ -1214,6 +1216,7 @@ tests_testACLMaxUserIP_SOURCES= \
        HttpHeaderTools.cc \
        HttpHdrContRange.cc \
        HttpHdrRange.cc \
+       HttpHeaderFieldStat.h \
        HttpHdrCc.h \
        HttpHdrCc.cc \
        HttpHdrCc.cci \
@@ -1428,6 +1431,7 @@ tests_testCacheManager_SOURCES = \
        HttpHeader.cc \
        HttpHeaderTools.h \
        HttpHeaderTools.cc \
+       HttpHeaderFieldStat.h \
        HttpHdrCc.h \
        HttpHdrCc.cc \
        HttpHdrCc.cci \
@@ -1599,6 +1603,7 @@ tests_testDiskIO_SOURCES = \
        filemap.cc \
        HttpBody.h \
        HttpBody.cc \
+       HttpHeaderFieldStat.h \
        HttpHdrCc.h \
        HttpHdrCc.cc \
        HttpHdrCc.cci \
@@ -1817,6 +1822,7 @@ tests_testEvent_SOURCES = \
        HttpHeader.cc \
        HttpHeaderTools.h \
        HttpHeaderTools.cc \
+       HttpHeaderFieldStat.h \
        HttpHdrCc.h \
        HttpHdrCc.cc \
        HttpHdrCc.cci \
@@ -2051,6 +2057,7 @@ tests_testEventLoop_SOURCES = \
        HttpHeader.cc \
        HttpHeaderTools.h \
        HttpHeaderTools.cc \
+       HttpHeaderFieldStat.h \
        HttpHdrCc.h \
        HttpHdrCc.cc \
        HttpHdrCc.cci \
@@ -2278,6 +2285,7 @@ tests_test_http_range_SOURCES = \
        http.cc \
        HttpBody.h \
        HttpBody.cc \
+       HttpHeaderFieldStat.h \
        HttpHdrCc.h \
        HttpHdrCc.cc \
        HttpHdrCc.cci \
@@ -2562,6 +2570,7 @@ tests_testHttpRequest_SOURCES = \
        HttpHeader.cc \
        HttpHeaderTools.h \
        HttpHeaderTools.cc \
+       HttpHeaderFieldStat.h \
        HttpHdrCc.h \
        HttpHdrCc.cc \
        HttpHdrCc.cci \
@@ -2728,6 +2737,7 @@ tests_testStore_SOURCES= \
        EventLoop.cc \
        FileMap.h \
        filemap.cc \
+       HttpHeaderFieldStat.h \
        HttpHdrCc.h \
        HttpHdrCc.cc \
        HttpHdrCc.cci \
@@ -3020,6 +3030,7 @@ tests_testUfs_SOURCES = \
        MemBuf.cc \
        HttpHdrContRange.cc \
        Packer.cc \
+       HttpHeaderFieldStat.h \
        HttpHdrCc.h \
        HttpHdrCc.cc \
        HttpHdrCc.cci \
@@ -3109,6 +3120,7 @@ tests_testRock_SOURCES = \
        fd.cc \
        FileMap.h \
        filemap.cc \
+       HttpHeaderFieldStat.h \
        HttpBody.h \
        HttpBody.cc \
        HttpHdrCc.cc \
@@ -3329,6 +3341,7 @@ tests_testCoss_SOURCES = \
        MemBuf.cc \
        HttpHdrContRange.cc \
        Packer.cc \
+       HttpHeaderFieldStat.h \
        HttpHdrCc.h \
        HttpHdrCc.cc \
        HttpHdrCc.cci \
@@ -3483,6 +3496,7 @@ tests_testNull_SOURCES = \
        MemBuf.cc \
        HttpHdrContRange.cc \
        Packer.cc \
+       HttpHeaderFieldStat.h \
        HttpHdrCc.h \
        HttpHdrCc.cc \
        HttpHdrCc.cci \
@@ -3609,6 +3623,7 @@ tests_testURL_SOURCES = \
        http.cc \
        HttpBody.h \
        HttpBody.cc \
+       HttpHeaderFieldStat.h \
        HttpHdrCc.h \
        HttpHdrCc.cc \
        HttpHdrCc.cci \
index 0518bb68d794481c462ab7506b6b8d6fe5622aac..fda5cd2749ab977ac8c5cbb206eacc8883ab2340 100644 (file)
@@ -182,21 +182,6 @@ struct _fde_disk {
     off_t offset;
 };
 
-/* per field statistics */
-
-class HttpHeaderFieldStat
-{
-
-public:
-    HttpHeaderFieldStat() : aliveCount(0), seenCount(0), parsCount(0), errCount(0), repCount(0) {}
-
-    int aliveCount;            /* created but not destroyed (count) */
-    int seenCount;             /* #fields we've seen */
-    int parsCount;             /* #parsing attempts */
-    int errCount;              /* #pasring errors */
-    int repCount;              /* #repetitons */
-};
-
 /* compiled version of HttpHeaderFieldAttrs plus stats */
 #include "SquidString.h"