Add IWebCache::disabled
authoraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 5 Nov 2007 18:57:30 +0000 (18:57 +0000)
committeraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 5 Nov 2007 18:57:30 +0000 (18:57 +0000)
         This matches the Mac WebCache class.

         Reviewed by Sam.

         * Interfaces/IWebCache.idl:
         * WebCache.cpp:
         (WebCache::disabled):
         * WebCache.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27445 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/win/ChangeLog
WebKit/win/Interfaces/IWebCache.idl
WebKit/win/WebCache.cpp
WebKit/win/WebCache.h

index 13c78fd83bd889bb0527f1adff0646b6497dac5d..42a10713f16ccfc2f8438a82c29240ac00bec67f 100644 (file)
@@ -1,3 +1,16 @@
+2007-11-04  Adam Roben  <aroben@apple.com>
+
+        Add IWebCache::disabled
+
+        This matches the Mac WebCache class.
+
+        Reviewed by Sam.
+
+        * Interfaces/IWebCache.idl:
+        * WebCache.cpp:
+        (WebCache::disabled):
+        * WebCache.h:
+
 2007-11-04  Adam Roben  <aroben@apple.com>
 
         Add IWebInspector and a way to get one from a WebView
index 0fc4e1ddba58a83955ea3c1ab344eb118b3536c7..453271156220960fcca4e334bdf9867eef19c8d0 100644 (file)
@@ -63,4 +63,5 @@ interface IWebCache : IUnknown
     HRESULT statistics([in, out] int* count, [in] IPropertyBag** s);
     HRESULT empty();
     HRESULT setDisabled([in] BOOL disabled);
+    HRESULT disabled([out, retval] BOOL*);
 }
index 96e4634d049ffb6fb75fa78f8f9cb84c781cebc6..f974e2302d49dc9a29c0a4439ac902ae4abfa52a 100644 (file)
@@ -151,3 +151,12 @@ HRESULT STDMETHODCALLTYPE WebCache::setDisabled(
     WebCore::cache()->setDisabled(!!disabled);
     return S_OK;
 }
+
+HRESULT STDMETHODCALLTYPE WebCache::disabled(
+    /* [out][retval] */ BOOL* disabled)
+{
+    if (!disabled)
+        return E_POINTER;
+    *disabled = WebCore::cache()->disabled();
+    return S_OK;
+}
index 57508aaaee0a79e07ae33513deec25ce8d113728..d8be7e681729ddba3df49e412504832b689d60ad 100644 (file)
@@ -52,6 +52,9 @@ public:
     virtual HRESULT STDMETHODCALLTYPE setDisabled( 
         /* [in] */ BOOL disabled);
 
+    virtual HRESULT STDMETHODCALLTYPE disabled(
+        /* [out][retval] */ BOOL*);
+
 protected:
     ULONG m_refCount;
 };