| 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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 #include "bindings/core/v8/WorkerOrWorkletScriptController.h" | 31 #include "bindings/core/v8/WorkerOrWorkletScriptController.h" |
| 32 #include "core/dom/Document.h" | 32 #include "core/dom/Document.h" |
| 33 #include "core/dom/ExecutionContext.h" | 33 #include "core/dom/ExecutionContext.h" |
| 34 #include "core/frame/ContentSettingsClient.h" | 34 #include "core/frame/ContentSettingsClient.h" |
| 35 #include "core/workers/WorkerContentSettingsClient.h" | 35 #include "core/workers/WorkerContentSettingsClient.h" |
| 36 #include "core/workers/WorkerGlobalScope.h" | 36 #include "core/workers/WorkerGlobalScope.h" |
| 37 #include "platform/weborigin/SecurityOrigin.h" | 37 #include "platform/weborigin/SecurityOrigin.h" |
| 38 #include "public/platform/WebSecurityOrigin.h" | 38 #include "public/platform/WebSecurityOrigin.h" |
| 39 #include "public/web/WebKit.h" | 39 #include "public/web/WebKit.h" |
| 40 #include "web/WebLocalFrameImpl.h" | |
| 41 | 40 |
| 42 namespace blink { | 41 namespace blink { |
| 43 | 42 |
| 44 IndexedDBClient* IndexedDBClientImpl::Create(LocalFrame& frame) { | 43 IndexedDBClient* IndexedDBClientImpl::Create(LocalFrame& frame) { |
| 45 return new IndexedDBClientImpl(frame); | 44 return new IndexedDBClientImpl(frame); |
| 46 } | 45 } |
| 47 | 46 |
| 48 IndexedDBClient* IndexedDBClientImpl::Create(WorkerClients& worker_clients) { | 47 IndexedDBClient* IndexedDBClientImpl::Create(WorkerClients& worker_clients) { |
| 49 return new IndexedDBClientImpl(worker_clients); | 48 return new IndexedDBClientImpl(worker_clients); |
| 50 } | 49 } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 69 return frame->GetContentSettingsClient()->AllowIndexedDB( | 68 return frame->GetContentSettingsClient()->AllowIndexedDB( |
| 70 name, context->GetSecurityOrigin()); | 69 name, context->GetSecurityOrigin()); |
| 71 } | 70 } |
| 72 | 71 |
| 73 WorkerGlobalScope& worker_global_scope = *ToWorkerGlobalScope(context); | 72 WorkerGlobalScope& worker_global_scope = *ToWorkerGlobalScope(context); |
| 74 return WorkerContentSettingsClient::From(worker_global_scope) | 73 return WorkerContentSettingsClient::From(worker_global_scope) |
| 75 ->AllowIndexedDB(name); | 74 ->AllowIndexedDB(name); |
| 76 } | 75 } |
| 77 | 76 |
| 78 } // namespace blink | 77 } // namespace blink |
| OLD | NEW |