Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Unified Diff: webkit/api/public/WebSecurityOrigin.h

Issue 211013: Introduce WebKit::WebSecurityOrigin as a wrapper around... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/api/public/WebFrameClient.h ('k') | webkit/api/src/WebSecurityOrigin.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « webkit/api/public/WebFrameClient.h ('k') | webkit/api/src/WebSecurityOrigin.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698