Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / modules / webdatabase / DatabaseAuthorizer.h
index 5202c95..44ffbd4 100644 (file)
@@ -28,6 +28,7 @@
 #ifndef DatabaseAuthorizer_h
 #define DatabaseAuthorizer_h
 
+#include "platform/heap/Handle.h"
 #include "wtf/Forward.h"
 #include "wtf/HashSet.h"
 #include "wtf/ThreadSafeRefCounted.h"
 namespace WebCore {
 
 extern const int SQLAuthAllow;
-extern const int SQLAuthIgnore;
 extern const int SQLAuthDeny;
 
-class DatabaseAuthorizer : public ThreadSafeRefCounted<DatabaseAuthorizer> {
+class DatabaseAuthorizer : public ThreadSafeRefCountedWillBeGarbageCollectedFinalized<DatabaseAuthorizer> {
 public:
 
     enum Permissions {
@@ -49,7 +49,8 @@ public:
         NoAccessMask = 1 << 2
     };
 
-    static PassRefPtr<DatabaseAuthorizer> create(const String& databaseInfoTableName);
+    static PassRefPtrWillBeRawPtr<DatabaseAuthorizer> create(const String& databaseInfoTableName);
+    void trace(Visitor*) { }
 
     int createTable(const String& tableName);
     int createTempTable(const String& tableName);
@@ -93,7 +94,6 @@ public:
 
     void disable();
     void enable();
-    void setReadOnly();
     void setPermissions(int permissions);
 
     void reset();