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
+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
HRESULT statistics([in, out] int* count, [in] IPropertyBag** s);
HRESULT empty();
HRESULT setDisabled([in] BOOL disabled);
+ HRESULT disabled([out, retval] BOOL*);
}
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;
+}
virtual HRESULT STDMETHODCALLTYPE setDisabled(
/* [in] */ BOOL disabled);
+ virtual HRESULT STDMETHODCALLTYPE disabled(
+ /* [out][retval] */ BOOL*);
+
protected:
ULONG m_refCount;
};