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

Unified Diff: third_party/WebKit/Source/modules/webdatabase/DatabaseAuthorizer.h

Issue 2879893004: Add UseCounter for FTS3 virtual tables in WebSQL. (Closed)
Patch Set: Rebased Created 3 years, 7 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
Index: third_party/WebKit/Source/modules/webdatabase/DatabaseAuthorizer.h
diff --git a/third_party/WebKit/Source/modules/webdatabase/DatabaseAuthorizer.h b/third_party/WebKit/Source/modules/webdatabase/DatabaseAuthorizer.h
index 57dccd2aca3992e523e3de0d4eec6a17e221a3f7..a3b7e8bb513b2ba6aeeff0ebb46e0dbeee5d4fdd 100644
--- a/third_party/WebKit/Source/modules/webdatabase/DatabaseAuthorizer.h
+++ b/third_party/WebKit/Source/modules/webdatabase/DatabaseAuthorizer.h
@@ -37,6 +37,8 @@ namespace blink {
extern const int kSQLAuthAllow;
extern const int kSQLAuthDeny;
+class DatabaseContext;
+
class DatabaseAuthorizer
: public GarbageCollectedFinalized<DatabaseAuthorizer> {
public:
@@ -46,8 +48,9 @@ class DatabaseAuthorizer
kNoAccessMask = 1 << 2
};
- static DatabaseAuthorizer* Create(const String& database_info_table_name);
- DEFINE_INLINE_TRACE() {}
+ static DatabaseAuthorizer* Create(DatabaseContext*,
+ const String& database_info_table_name);
+ DECLARE_TRACE();
int CreateTable(const String& table_name);
int CreateTempTable(const String& table_name);
@@ -103,7 +106,8 @@ class DatabaseAuthorizer
bool HadDeletes() const { return had_deletes_; }
private:
- explicit DatabaseAuthorizer(const String& database_info_table_name);
+ explicit DatabaseAuthorizer(DatabaseContext*,
+ const String& database_info_table_name);
void AddWhitelistedFunctions();
int DenyBasedOnTableName(const String&) const;
int UpdateDeletesBasedOnTableName(const String&);
@@ -116,6 +120,8 @@ class DatabaseAuthorizer
bool had_deletes_ : 1;
const String database_info_table_name_;
+
+ Member<DatabaseContext> database_context_;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698