| Index: webkit/api/public/WebSecurityOrigin.h
|
| ===================================================================
|
| --- webkit/api/public/WebSecurityOrigin.h (revision 26416)
|
| +++ webkit/api/public/WebSecurityOrigin.h (working copy)
|
| @@ -28,46 +28,44 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef WebForm_h
|
| -#define WebForm_h
|
| +#ifndef WebSecurityOrigin_h
|
| +#define WebSecurityOrigin_h
|
|
|
| #include "WebCommon.h"
|
|
|
| #if WEBKIT_IMPLEMENTATION
|
| -namespace WebCore { class HTMLFormElement; }
|
| +namespace WebCore { class SecurityOrigin; }
|
| namespace WTF { template <typename T> class PassRefPtr; }
|
| #endif
|
|
|
| namespace WebKit {
|
| - class WebFormPrivate;
|
| + class WebSecurityOriginPrivate;
|
| + class WebString;
|
|
|
| - // A container for passing around a reference to a form element. Provides
|
| - // some information about the form.
|
| - class WebForm {
|
| + class WebSecurityOrigin {
|
| public:
|
| - ~WebForm() { reset(); }
|
| + ~WebSecurityOrigin() { reset(); }
|
|
|
| - WebForm() : m_private(0) { }
|
| - WebForm(const WebForm& f) : m_private(0) { assign(f); }
|
| - WebForm& operator=(const WebForm& f) { assign(f); return *this; }
|
| + WebSecurityOrigin() : m_private(0) { }
|
| + WebSecurityOrigin(const WebSecurityOrigin& s) : m_private(0) { assign(s); }
|
| + WebSecurityOrigin& operator=(const WebSecurityOrigin& s) { assign(s); return *this; }
|
|
|
| WEBKIT_API void reset();
|
| - WEBKIT_API void assign(const WebForm&);
|
| + WEBKIT_API void assign(const WebSecurityOrigin&);
|
|
|
| bool isNull() const { return m_private == 0; }
|
|
|
| - // Returns true if the form does not have "autocomplete=off" specified.
|
| - WEBKIT_API bool isAutoCompleteEnabled() const;
|
| + WEBKIT_API WebString toString() const;
|
|
|
| #if WEBKIT_IMPLEMENTATION
|
| - WebForm(const WTF::PassRefPtr<WebCore::HTMLFormElement>&);
|
| - WebForm& operator=(const WTF::PassRefPtr<WebCore::HTMLFormElement>&);
|
| - operator WTF::PassRefPtr<WebCore::HTMLFormElement>() const;
|
| + WebSecurityOrigin(const WTF::PassRefPtr<WebCore::SecurityOrigin>&);
|
| + WebSecurityOrigin& operator=(const WTF::PassRefPtr<WebCore::SecurityOrigin>&);
|
| + operator WTF::PassRefPtr<WebCore::SecurityOrigin>() const;
|
| #endif
|
|
|
| private:
|
| - void assign(WebFormPrivate*);
|
| - WebFormPrivate* m_private;
|
| + void assign(WebSecurityOriginPrivate*);
|
| + WebSecurityOriginPrivate* m_private;
|
| };
|
|
|
| } // namespace WebKit
|
|
|