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

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

Issue 2900863002: IndexedDB: Restore access checks in inspector-only IDBFactory methods (Closed)
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/indexeddb/IDBFactory.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 ExceptionState&); 54 ExceptionState&);
55 IDBOpenDBRequest* deleteDatabase(ScriptState*, 55 IDBOpenDBRequest* deleteDatabase(ScriptState*,
56 const String& name, 56 const String& name,
57 ExceptionState&); 57 ExceptionState&);
58 short cmp(ScriptState*, 58 short cmp(ScriptState*,
59 const ScriptValue& first, 59 const ScriptValue& first,
60 const ScriptValue& second, 60 const ScriptValue& second,
61 ExceptionState&); 61 ExceptionState&);
62 62
63 // These are not exposed to the web applications and only used by DevTools. 63 // These are not exposed to the web applications and only used by DevTools.
64 IDBRequest* GetDatabaseNames(ScriptState*); 64 IDBRequest* GetDatabaseNames(ScriptState*, ExceptionState&);
65 IDBOpenDBRequest* CloseConnectionsAndDeleteDatabase(ScriptState*, 65 IDBOpenDBRequest* CloseConnectionsAndDeleteDatabase(ScriptState*,
66 const String& name); 66 const String& name,
67 ExceptionState&);
67 68
68 private: 69 private:
69 IDBFactory(); 70 IDBFactory();
70 71
71 IDBOpenDBRequest* OpenInternal(ScriptState*, 72 IDBOpenDBRequest* OpenInternal(ScriptState*,
72 const String& name, 73 const String& name,
73 int64_t version, 74 int64_t version,
74 ExceptionState&); 75 ExceptionState&);
75 76
76 IDBOpenDBRequest* DeleteDatabaseInternal(ScriptState*, 77 IDBOpenDBRequest* DeleteDatabaseInternal(ScriptState*,
77 const String& name, 78 const String& name,
79 ExceptionState&,
78 bool); 80 bool);
79 }; 81 };
80 82
81 } // namespace blink 83 } // namespace blink
82 84
83 #endif // IDBFactory_h 85 #endif // IDBFactory_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/indexeddb/IDBFactory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698