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

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

Issue 2964743002: Revert "Indexed DB: Remove nonstandard IDBFactory.webkitGetDatabaseNames()" (Closed)
Patch Set: Undeprecate Created 3 years, 5 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 29 matching lines...) Expand all
40 40
41 class IDBFactory final : public GarbageCollected<IDBFactory>, 41 class IDBFactory final : public GarbageCollected<IDBFactory>,
42 public ScriptWrappable { 42 public ScriptWrappable {
43 DEFINE_WRAPPERTYPEINFO(); 43 DEFINE_WRAPPERTYPEINFO();
44 44
45 public: 45 public:
46 static IDBFactory* Create() { return new IDBFactory(); } 46 static IDBFactory* Create() { return new IDBFactory(); }
47 DEFINE_INLINE_VIRTUAL_TRACE() {} 47 DEFINE_INLINE_VIRTUAL_TRACE() {}
48 48
49 // Implement the IDBFactory IDL 49 // Implement the IDBFactory IDL
50 IDBRequest* getDatabaseNames(ScriptState*, ExceptionState&);
51
50 IDBOpenDBRequest* open(ScriptState*, const String& name, ExceptionState&); 52 IDBOpenDBRequest* open(ScriptState*, const String& name, ExceptionState&);
51 IDBOpenDBRequest* open(ScriptState*, 53 IDBOpenDBRequest* open(ScriptState*,
52 const String& name, 54 const String& name,
53 unsigned long long version, 55 unsigned long long version,
54 ExceptionState&); 56 ExceptionState&);
55 IDBOpenDBRequest* deleteDatabase(ScriptState*, 57 IDBOpenDBRequest* deleteDatabase(ScriptState*,
56 const String& name, 58 const String& name,
57 ExceptionState&); 59 ExceptionState&);
58 short cmp(ScriptState*, 60 short cmp(ScriptState*,
59 const ScriptValue& first, 61 const ScriptValue& first,
60 const ScriptValue& second, 62 const ScriptValue& second,
61 ExceptionState&); 63 ExceptionState&);
62 64
63 // These are not exposed to the web applications and only used by DevTools. 65 // This is not exposed to the web applications and only used by DevTools.
64 IDBRequest* GetDatabaseNames(ScriptState*, ExceptionState&);
65 IDBOpenDBRequest* CloseConnectionsAndDeleteDatabase(ScriptState*, 66 IDBOpenDBRequest* CloseConnectionsAndDeleteDatabase(ScriptState*,
66 const String& name, 67 const String& name,
67 ExceptionState&); 68 ExceptionState&);
68 69
69 private: 70 private:
70 IDBFactory(); 71 IDBFactory();
71 72
72 IDBOpenDBRequest* OpenInternal(ScriptState*, 73 IDBOpenDBRequest* OpenInternal(ScriptState*,
73 const String& name, 74 const String& name,
74 int64_t version, 75 int64_t version,
75 ExceptionState&); 76 ExceptionState&);
76 77
77 IDBOpenDBRequest* DeleteDatabaseInternal(ScriptState*, 78 IDBOpenDBRequest* DeleteDatabaseInternal(ScriptState*,
78 const String& name, 79 const String& name,
79 ExceptionState&, 80 ExceptionState&,
80 bool); 81 bool);
81 int64_t next_tracing_id_ = 0; 82 int64_t next_tracing_id_ = 0;
82 }; 83 };
83 84
84 } // namespace blink 85 } // namespace blink
85 86
86 #endif // IDBFactory_h 87 #endif // IDBFactory_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698