Changeset 28 in cheroxy for trunk/src/CRXProxy.cpp


Ignore:
Timestamp:
11/16/12 13:07:05 (11 years ago)
Author:
cheese
Message:

#1 add filter class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/CRXProxy.cpp

    r24 r28  
    77#include <string.h>
    88
     9CRXFilter CRXProxy::mFilter;
     10
    911CRXProxy::CRXProxy (void)
    10     : mClient (0),
     12    : mIsIntercepted (false),
     13      mClient (0),
    1114      mServer (0)
    1215{
     
    5962}
    6063
    61 int
    62 CRXProxy::GetStatus (void)
    63 {
    64     /*----------------------------------------------------------------*/
    65     /*----------------------------------------------------------------*/
    66 
    67     return mProxyStatus;
     64void
     65CRXProxy::SetRequestFilter (const E_CRX_FILTER_REQUEST  aType,
     66                            const bool                  aIsMatched,
     67                            const std::string           aValue)
     68{
     69    /*----------------------------------------------------------------*/
     70    mFilter.SetRequestFilter (aType, aIsMatched, aValue);
     71    /*----------------------------------------------------------------*/
     72}
     73
     74void
     75CRXProxy::RemoveRequestFilter (const E_CRX_FILTER_REQUEST aType)
     76{
     77    /*----------------------------------------------------------------*/
     78    mFilter.RemoveRequestFilter (aType);
     79    /*----------------------------------------------------------------*/
     80}
     81
     82bool
     83CRXProxy::CheckRequestFilter (const E_CRX_FILTER_REQUEST aType)
     84{
     85    /*----------------------------------------------------------------*/
     86    /*----------------------------------------------------------------*/
     87
     88    return mFilter.CheckRequestFilter (aType, this->mHttpRequest);
    6889}
    6990
Note: See TracChangeset for help on using the changeset viewer.