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

Side by Side Diff: third_party/WebKit/public/platform/Platform.h

Issue 1779413002: Remove Blink's DatabaseIdentifier implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unneeded include Created 4 years, 9 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 // Deletes a database file and returns the error code 199 // Deletes a database file and returns the error code
200 virtual int databaseDeleteFile(const WebString& vfsFileName, bool syncDir) { return 0; } 200 virtual int databaseDeleteFile(const WebString& vfsFileName, bool syncDir) { return 0; }
201 201
202 // Returns the attributes of the given database file 202 // Returns the attributes of the given database file
203 virtual long databaseGetFileAttributes(const WebString& vfsFileName) { retur n 0; } 203 virtual long databaseGetFileAttributes(const WebString& vfsFileName) { retur n 0; }
204 204
205 // Returns the size of the given database file 205 // Returns the size of the given database file
206 virtual long long databaseGetFileSize(const WebString& vfsFileName) { return 0; } 206 virtual long long databaseGetFileSize(const WebString& vfsFileName) { return 0; }
207 207
208 // Returns the space available for the given origin 208 // Returns the space available for the given origin
209 virtual long long databaseGetSpaceAvailableForOrigin(const WebString& origin Identifier) { return 0; } 209 virtual long long databaseGetSpaceAvailableForOrigin(const WebSecurityOrigin & origin) { return 0; }
210 210
211 // Set the size of the given database file 211 // Set the size of the given database file
212 virtual bool databaseSetFileSize(const WebString& vfsFileName, long long siz e) { return false; } 212 virtual bool databaseSetFileSize(const WebString& vfsFileName, long long siz e) { return false; }
213 213
214 // Return a filename-friendly identifier for an origin.
215 virtual WebString databaseCreateOriginIdentifier(const WebSecurityOrigin& or igin) { return WebString(); }
214 216
215 // DOM Storage -------------------------------------------------- 217 // DOM Storage --------------------------------------------------
216 218
217 // Return a LocalStorage namespace 219 // Return a LocalStorage namespace
218 virtual WebStorageNamespace* createLocalStorageNamespace() { return nullptr; } 220 virtual WebStorageNamespace* createLocalStorageNamespace() { return nullptr; }
219 221
220 222
221 // FileSystem ---------------------------------------------------------- 223 // FileSystem ----------------------------------------------------------
222 224
223 // Must return non-null. 225 // Must return non-null.
224 virtual WebFileSystem* fileSystem() { return nullptr; } 226 virtual WebFileSystem* fileSystem() { return nullptr; }
225 227
228 // Return a filename-friendly identifier for an origin.
229 virtual WebString fileSystemCreateOriginIdentifier(const WebSecurityOrigin& origin) { return WebString(); }
226 230
227 // IDN conversion ------------------------------------------------------ 231 // IDN conversion ------------------------------------------------------
228 232
229 virtual WebString convertIDNToUnicode(const WebString& host, const WebString & languages) { return host; } 233 virtual WebString convertIDNToUnicode(const WebString& host, const WebString & languages) { return host; }
230 234
231 235
232 // IndexedDB ---------------------------------------------------------- 236 // IndexedDB ----------------------------------------------------------
233 237
234 // Must return non-null. 238 // Must return non-null.
235 virtual WebIDBFactory* idbFactory() { return nullptr; } 239 virtual WebIDBFactory* idbFactory() { return nullptr; }
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 protected: 618 protected:
615 Platform(); 619 Platform();
616 virtual ~Platform() { } 620 virtual ~Platform() { }
617 621
618 WebThread* m_mainThread; 622 WebThread* m_mainThread;
619 }; 623 };
620 624
621 } // namespace blink 625 } // namespace blink
622 626
623 #endif 627 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebDatabase.cpp ('k') | third_party/WebKit/public/platform/WebDatabaseObserver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698