OLD | NEW |
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 #include "WebSecurityOrigin.h" | 42 #include "WebSecurityOrigin.h" |
43 #include "WebViewImpl.h" | 43 #include "WebViewImpl.h" |
44 #include "WebWorkerClientImpl.h" | 44 #include "WebWorkerClientImpl.h" |
45 #include "WorkerPermissionClient.h" | 45 #include "WorkerPermissionClient.h" |
46 #include "bindings/v8/WorkerScriptController.h" | 46 #include "bindings/v8/WorkerScriptController.h" |
47 #include "core/dom/DOMError.h" | 47 #include "core/dom/DOMError.h" |
48 #include "core/dom/ExceptionCode.h" | 48 #include "core/dom/ExceptionCode.h" |
49 #include "core/dom/ExecutionContext.h" | 49 #include "core/dom/ExecutionContext.h" |
50 #include "core/workers/WorkerGlobalScope.h" | 50 #include "core/workers/WorkerGlobalScope.h" |
51 #include "modules/indexeddb/IDBDatabaseCallbacks.h" | 51 #include "modules/indexeddb/IDBDatabaseCallbacks.h" |
52 #include "weborigin/SecurityOrigin.h" | 52 #include "platform/weborigin/SecurityOrigin.h" |
53 | 53 |
54 | 54 |
55 using namespace WebCore; | 55 using namespace WebCore; |
56 | 56 |
57 namespace blink { | 57 namespace blink { |
58 | 58 |
59 PassRefPtr<IDBFactoryBackendInterface> IDBFactoryBackendProxy::create() | 59 PassRefPtr<IDBFactoryBackendInterface> IDBFactoryBackendProxy::create() |
60 { | 60 { |
61 return adoptRef(new IDBFactoryBackendProxy()); | 61 return adoptRef(new IDBFactoryBackendProxy()); |
62 } | 62 } |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 { | 116 { |
117 RefPtr<IDBCallbacks> callbacks(prpCallbacks); | 117 RefPtr<IDBCallbacks> callbacks(prpCallbacks); |
118 WebSecurityOrigin origin(context->securityOrigin()); | 118 WebSecurityOrigin origin(context->securityOrigin()); |
119 if (!allowIndexedDB(context, name, origin, callbacks)) | 119 if (!allowIndexedDB(context, name, origin, callbacks)) |
120 return; | 120 return; |
121 | 121 |
122 m_webIDBFactory->deleteDatabase(name, new WebIDBCallbacks(callbacks), databa
seIdentifier); | 122 m_webIDBFactory->deleteDatabase(name, new WebIDBCallbacks(callbacks), databa
seIdentifier); |
123 } | 123 } |
124 | 124 |
125 } // namespace blink | 125 } // namespace blink |
OLD | NEW |