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

Side by Side Diff: Source/WebKit/chromium/src/IDBFactoryBackendProxy.h

Issue 13843016: Prepare to remove WebSecurityOrigin from IDB backend (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update to new #includes Created 7 years, 8 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 | Annotate | Revision Log
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 16 matching lines...) Expand all
27 */ 27 */
28 28
29 #ifndef IDBFactoryBackendProxy_h 29 #ifndef IDBFactoryBackendProxy_h
30 #define IDBFactoryBackendProxy_h 30 #define IDBFactoryBackendProxy_h
31 31
32 #include "IDBCallbacks.h" 32 #include "IDBCallbacks.h"
33 #include "IDBFactoryBackendInterfaceChromium.h" 33 #include "IDBFactoryBackendInterfaceChromium.h"
34 34
35 namespace WebCore { 35 namespace WebCore {
36 class ScriptExecutionContext; 36 class ScriptExecutionContext;
37 class SecurityOrigin;
jsbell 2013/04/24 21:25:21 This seems extraneous.
37 } 38 }
38 39
39 namespace WebKit { 40 namespace WebKit {
40 41
41 class WebIDBFactory; 42 class WebIDBFactory;
42 class WebSecurityOrigin; 43 class WebSecurityOrigin;
43 44
44 class IDBFactoryBackendProxy : public WebCore::IDBFactoryBackendInterface { 45 class IDBFactoryBackendProxy : public WebCore::IDBFactoryBackendInterface {
45 public: 46 public:
46 static PassRefPtr<WebCore::IDBFactoryBackendInterface> create(); 47 static PassRefPtr<WebCore::IDBFactoryBackendInterface> create();
47 virtual ~IDBFactoryBackendProxy(); 48 virtual ~IDBFactoryBackendProxy();
48 49
49 virtual void getDatabaseNames(PassRefPtr<WebCore::IDBCallbacks>, PassRefPtr< WebCore::SecurityOrigin>, WebCore::ScriptExecutionContext*, const String& dataDi r); 50 virtual void getDatabaseNames(PassRefPtr<WebCore::IDBCallbacks>, const Strin g& databaseIdentifier, WebCore::ScriptExecutionContext*, const String& dataDir);
50 virtual void open(const String& name, int64_t version, int64_t transactionId , PassRefPtr<WebCore::IDBCallbacks>, PassRefPtr<WebCore::IDBDatabaseCallbacks>, PassRefPtr<WebCore::SecurityOrigin>, WebCore::ScriptExecutionContext*, const Str ing& dataDir); 51 virtual void open(const String& name, int64_t version, int64_t transactionId , PassRefPtr<WebCore::IDBCallbacks>, PassRefPtr<WebCore::IDBDatabaseCallbacks>, const String& databaseIdentifier, WebCore::ScriptExecutionContext*, const String & dataDir);
51 virtual void deleteDatabase(const String& name, PassRefPtr<WebCore::IDBCallb acks>, PassRefPtr<WebCore::SecurityOrigin>, WebCore::ScriptExecutionContext*, co nst String& dataDir); 52 virtual void deleteDatabase(const String& name, PassRefPtr<WebCore::IDBCallb acks>, const String& databaseIdentifier, WebCore::ScriptExecutionContext*, const String& dataDir);
52 53
53 private: 54 private:
54 IDBFactoryBackendProxy(); 55 IDBFactoryBackendProxy();
55 bool allowIndexedDB(WebCore::ScriptExecutionContext*, const String& name, co nst WebSecurityOrigin&, PassRefPtr<WebCore::IDBCallbacks>); 56 bool allowIndexedDB(WebCore::ScriptExecutionContext*, const String& name, co nst WebSecurityOrigin&, PassRefPtr<WebCore::IDBCallbacks>);
56 57
57 // We don't own this pointer (unlike all the other proxy classes which do). 58 // We don't own this pointer (unlike all the other proxy classes which do).
58 WebIDBFactory* m_webIDBFactory; 59 WebIDBFactory* m_webIDBFactory;
59 }; 60 };
60 61
61 } // namespace WebKit 62 } // namespace WebKit
62 63
63 #endif // IDBFactoryBackendProxy_h 64 #endif // IDBFactoryBackendProxy_h
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/public/WebIDBFactory.h ('k') | Source/WebKit/chromium/src/IDBFactoryBackendProxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698