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

Side by Side Diff: third_party/WebKit/public/platform/modules/indexeddb/WebIDBFactory.h

Issue 1755343002: IndexedDB: Pass origin to platform/IPC, rather than DatabaseIdentifier (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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 12 matching lines...) Expand all
23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 #ifndef WebIDBFactory_h 29 #ifndef WebIDBFactory_h
30 #define WebIDBFactory_h 30 #define WebIDBFactory_h
31 31
32 #include "public/platform/WebCommon.h" 32 #include "public/platform/WebCommon.h"
33 #include "public/platform/WebString.h"
34 #include "public/platform/WebVector.h"
35 #include "public/platform/modules/indexeddb/WebIDBCallbacks.h"
36 #include "public/platform/modules/indexeddb/WebIDBMetadata.h"
37 33
38 namespace blink { 34 namespace blink {
39 35
40 class WebIDBDatabase; 36 class WebIDBCallbacks;
41 class WebIDBDatabaseCallbacks; 37 class WebIDBDatabaseCallbacks;
38 class WebSecurityOrigin;
39 class WebString;
42 40
43 class WebIDBFactory { 41 class WebIDBFactory {
44 public: 42 public:
45 virtual ~WebIDBFactory() { } 43 virtual ~WebIDBFactory() { }
46 44
47 virtual void getDatabaseNames(WebIDBCallbacks* callbacks, const WebString& d atabaseIdentifier) { BLINK_ASSERT_NOT_REACHED(); } 45 virtual void getDatabaseNames(WebIDBCallbacks* callbacks, const WebSecurityO rigin&) { BLINK_ASSERT_NOT_REACHED(); }
48 virtual void open(const WebString& name, long long version, long long transa ctionId, WebIDBCallbacks* callbacks, WebIDBDatabaseCallbacks* databaseCallbacks, const WebString& databaseIdentifier) { BLINK_ASSERT_NOT_REACHED(); } 46 virtual void open(const WebString& name, long long version, long long transa ctionId, WebIDBCallbacks* callbacks, WebIDBDatabaseCallbacks* databaseCallbacks, const WebSecurityOrigin&) { BLINK_ASSERT_NOT_REACHED(); }
49 virtual void deleteDatabase(const WebString& name, WebIDBCallbacks* callback s, const WebString& databaseIdentifier) { BLINK_ASSERT_NOT_REACHED(); } 47 virtual void deleteDatabase(const WebString& name, WebIDBCallbacks* callback s, const WebSecurityOrigin&) { BLINK_ASSERT_NOT_REACHED(); }
50 }; 48 };
51 49
52 } // namespace blink 50 } // namespace blink
53 51
54 #endif // WebIDBFactory_h 52 #endif // WebIDBFactory_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698