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

Side by Side Diff: third_party/WebKit/Source/modules/indexeddb/IDBFactory.h

Issue 2642943002: Allow closing IndexedDB database before deleting (Closed)
Patch Set: Fixed compilation errors in tests Created 3 years, 11 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 IDBOpenDBRequest* open(ScriptState*, const String& name, ExceptionState&); 51 IDBOpenDBRequest* open(ScriptState*, const String& name, ExceptionState&);
52 IDBOpenDBRequest* open(ScriptState*, 52 IDBOpenDBRequest* open(ScriptState*,
53 const String& name, 53 const String& name,
54 unsigned long long version, 54 unsigned long long version,
55 ExceptionState&); 55 ExceptionState&);
56 IDBOpenDBRequest* deleteDatabase(ScriptState*, 56 IDBOpenDBRequest* deleteDatabase(ScriptState*,
57 const String& name, 57 const String& name,
58 ExceptionState&); 58 ExceptionState&);
59 59
60 IDBOpenDBRequest* closeConnectionsAndDeleteDatabase(ScriptState*,
cmumford 2017/01/19 20:47:16 I don't know much about DevTools, but do you need
eostroukhov 2017/01/20 18:43:18 Devtools are calling on C++ side (e.g. https://cs.
61 const String& name,
62 ExceptionState&);
63
60 short cmp(ScriptState*, 64 short cmp(ScriptState*,
61 const ScriptValue& first, 65 const ScriptValue& first,
62 const ScriptValue& second, 66 const ScriptValue& second,
63 ExceptionState&); 67 ExceptionState&);
64 68
65 private: 69 private:
66 IDBFactory(); 70 IDBFactory();
67 71
68 IDBOpenDBRequest* openInternal(ScriptState*, 72 IDBOpenDBRequest* openInternal(ScriptState*,
69 const String& name, 73 const String& name,
70 int64_t version, 74 int64_t version,
71 ExceptionState&); 75 ExceptionState&);
76
77 IDBOpenDBRequest* deleteDatabaseInternal(ScriptState*,
78 const String& name,
79 ExceptionState&,
80 bool);
72 }; 81 };
73 82
74 } // namespace blink 83 } // namespace blink
75 84
76 #endif // IDBFactory_h 85 #endif // IDBFactory_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698