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

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: 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 // Deletes a database file and returns the error code 198 // Deletes a database file and returns the error code
199 virtual int databaseDeleteFile(const WebString& vfsFileName, bool syncDir) { return 0; } 199 virtual int databaseDeleteFile(const WebString& vfsFileName, bool syncDir) { return 0; }
200 200
201 // Returns the attributes of the given database file 201 // Returns the attributes of the given database file
202 virtual long databaseGetFileAttributes(const WebString& vfsFileName) { retur n 0; } 202 virtual long databaseGetFileAttributes(const WebString& vfsFileName) { retur n 0; }
203 203
204 // Returns the size of the given database file 204 // Returns the size of the given database file
205 virtual long long databaseGetFileSize(const WebString& vfsFileName) { return 0; } 205 virtual long long databaseGetFileSize(const WebString& vfsFileName) { return 0; }
206 206
207 // Returns the space available for the given origin 207 // Returns the space available for the given origin
208 virtual long long databaseGetSpaceAvailableForOrigin(const WebString& origin Identifier) { return 0; } 208 virtual long long databaseGetSpaceAvailableForOrigin(const WebSecurityOrigin & origin) { return 0; }
209 209
210 // Set the size of the given database file 210 // Set the size of the given database file
211 virtual bool databaseSetFileSize(const WebString& vfsFileName, long long siz e) { return false; } 211 virtual bool databaseSetFileSize(const WebString& vfsFileName, long long siz e) { return false; }
212 212
213 // Return a filename-friendly identifier for an origin.
214 virtual WebString databaseCreateOriginIdentifier(const WebSecurityOrigin& or igin) { return WebString(); }
michaeln 2016/03/12 00:33:38 the android webview test harness probably has anot
jsbell 2016/03/14 22:30:59 Not quite that simple, alas. I'm not done debuggin
jsbell 2016/03/16 16:40:08 And continuing the investigation (didn't have much
213 215
214 // DOM Storage -------------------------------------------------- 216 // DOM Storage --------------------------------------------------
215 217
216 // Return a LocalStorage namespace 218 // Return a LocalStorage namespace
217 virtual WebStorageNamespace* createLocalStorageNamespace() { return nullptr; } 219 virtual WebStorageNamespace* createLocalStorageNamespace() { return nullptr; }
218 220
219 221
220 // FileSystem ---------------------------------------------------------- 222 // FileSystem ----------------------------------------------------------
221 223
222 // Must return non-null. 224 // Must return non-null.
223 virtual WebFileSystem* fileSystem() { return nullptr; } 225 virtual WebFileSystem* fileSystem() { return nullptr; }
224 226
227 // Return a filename-friendly identifier for an origin.
228 virtual WebString fileSystemCreateOriginIdentifier(const WebSecurityOrigin& origin) { return WebString(); }
225 229
226 // IDN conversion ------------------------------------------------------ 230 // IDN conversion ------------------------------------------------------
227 231
228 virtual WebString convertIDNToUnicode(const WebString& host, const WebString & languages) { return host; } 232 virtual WebString convertIDNToUnicode(const WebString& host, const WebString & languages) { return host; }
229 233
230 234
231 // IndexedDB ---------------------------------------------------------- 235 // IndexedDB ----------------------------------------------------------
232 236
233 // Must return non-null. 237 // Must return non-null.
234 virtual WebIDBFactory* idbFactory() { return nullptr; } 238 virtual WebIDBFactory* idbFactory() { return nullptr; }
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 protected: 624 protected:
621 Platform(); 625 Platform();
622 virtual ~Platform() { } 626 virtual ~Platform() { }
623 627
624 WebThread* m_mainThread; 628 WebThread* m_mainThread;
625 }; 629 };
626 630
627 } // namespace blink 631 } // namespace blink
628 632
629 #endif 633 #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