| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 #include "web/DatabaseClientImpl.h" | 32 #include "web/DatabaseClientImpl.h" |
| 33 | 33 |
| 34 #include "core/dom/Document.h" | 34 #include "core/dom/Document.h" |
| 35 #include "core/dom/ExecutionContext.h" | 35 #include "core/dom/ExecutionContext.h" |
| 36 #include "core/workers/WorkerGlobalScope.h" | 36 #include "core/workers/WorkerGlobalScope.h" |
| 37 #include "public/web/WebPermissionClient.h" | 37 #include "public/web/WebPermissionClient.h" |
| 38 #include "web/WebLocalFrameImpl.h" | 38 #include "web/WebLocalFrameImpl.h" |
| 39 #include "web/WorkerPermissionClient.h" | 39 #include "web/WorkerPermissionClient.h" |
| 40 | 40 |
| 41 using namespace blink; | |
| 42 | |
| 43 namespace blink { | 41 namespace blink { |
| 44 | 42 |
| 45 PassOwnPtrWillBeRawPtr<DatabaseClientImpl> DatabaseClientImpl::create() | 43 PassOwnPtrWillBeRawPtr<DatabaseClientImpl> DatabaseClientImpl::create() |
| 46 { | 44 { |
| 47 return adoptPtrWillBeNoop(new DatabaseClientImpl()); | 45 return adoptPtrWillBeNoop(new DatabaseClientImpl()); |
| 48 } | 46 } |
| 49 | 47 |
| 50 DatabaseClientImpl::~DatabaseClientImpl() | 48 DatabaseClientImpl::~DatabaseClientImpl() |
| 51 { | 49 { |
| 52 } | 50 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 67 return WorkerPermissionClient::from(workerGlobalScope)->allowDatabase(na
me, displayName, estimatedSize); | 65 return WorkerPermissionClient::from(workerGlobalScope)->allowDatabase(na
me, displayName, estimatedSize); |
| 68 } | 66 } |
| 69 return true; | 67 return true; |
| 70 } | 68 } |
| 71 | 69 |
| 72 DatabaseClientImpl::DatabaseClientImpl() | 70 DatabaseClientImpl::DatabaseClientImpl() |
| 73 { | 71 { |
| 74 } | 72 } |
| 75 | 73 |
| 76 } // namespace blink | 74 } // namespace blink |
| OLD | NEW |