From 75cb38cbf89a271c4d26baef84b0447690c12171 Mon Sep 17 00:00:00 2001 From: rousskov <> Date: Tue, 26 Feb 2008 07:15:48 +0000 Subject: [PATCH] Protos.h said to remove HttpRequestMethod.h #include when no method_t is used by prototypes. Removed the header and adjusted other source files that relied on that header being in protos.h. --- src/AccessLogEntry.h | 3 ++- src/MemObject.h | 3 ++- src/cache_cf.cc | 3 ++- src/protos.h | 10 ++++------ 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/AccessLogEntry.h b/src/AccessLogEntry.h index 1fec6fce6a..f211d6de36 100644 --- a/src/AccessLogEntry.h +++ b/src/AccessLogEntry.h @@ -1,6 +1,6 @@ /* - * $Id: AccessLogEntry.h,v 1.8 2008/01/20 08:54:28 amosjeffries Exp $ + * $Id: AccessLogEntry.h,v 1.9 2008/02/26 00:15:48 rousskov Exp $ * * * SQUID Web Proxy Cache http://www.squid-cache.org/ @@ -36,6 +36,7 @@ #define SQUID_HTTPACCESSLOGENTRY_H #include "HttpVersion.h" +#include "HttpRequestMethod.h" #include "HierarchyLogEntry.h" #include "IPAddress.h" diff --git a/src/MemObject.h b/src/MemObject.h index 765d96b6bd..63cf0f5e8a 100644 --- a/src/MemObject.h +++ b/src/MemObject.h @@ -1,6 +1,6 @@ /* - * $Id: MemObject.h,v 1.16 2008/01/20 08:54:28 amosjeffries Exp $ + * $Id: MemObject.h,v 1.17 2008/02/26 00:15:48 rousskov Exp $ * * * SQUID Web Proxy Cache http://www.squid-cache.org/ @@ -39,6 +39,7 @@ #include "stmem.h" #include "CommRead.h" #include "RemovalPolicy.h" +#include "HttpRequestMethod.h" typedef void STMCB (void *data, StoreIOBuffer wroteBuffer); diff --git a/src/cache_cf.cc b/src/cache_cf.cc index 959e2d5f17..12aff3d64c 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -1,6 +1,6 @@ /* - * $Id: cache_cf.cc,v 1.542 2008/02/17 09:24:50 serassio Exp $ + * $Id: cache_cf.cc,v 1.543 2008/02/26 00:15:48 rousskov Exp $ * * DEBUG: section 3 Configuration File Parsing * AUTHOR: Harvest Derived @@ -36,6 +36,7 @@ #include "squid.h" #include "authenticate.h" #include "ProtoPort.h" +#include "HttpRequestMethod.h" #include "AuthConfig.h" #include "AuthScheme.h" #include "CacheManager.h" diff --git a/src/protos.h b/src/protos.h index 0e1e76ed3d..49a9b32f87 100644 --- a/src/protos.h +++ b/src/protos.h @@ -1,6 +1,6 @@ /* - * $Id: protos.h,v 1.555 2008/02/07 02:51:18 adrian Exp $ + * $Id: protos.h,v 1.556 2008/02/26 00:15:48 rousskov Exp $ * * * SQUID Web Proxy Cache http://www.squid-cache.org/ @@ -38,15 +38,13 @@ * yet. */ #include "Packer.h" -/* for routines that have not moved out their proper homes yet. - * grep for method_t in this file - if none found remove this include. - */ -#include "HttpRequestMethod.h" /* for routines still in this file that take CacheManager parameters */ #include "IPAddress.h" -/* for routines in here that need it as a parameter. */ + class CacheManager; +class HttpRequestMethod; + #if FORW_VIA_DB SQUIDCEXTERN void fvdbCountVia(const char *key); -- 2.47.2