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

Side by Side Diff: Source/web/IDBFactoryBackendProxy.cpp

Issue 61773005: Rename WebKit namespace to blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « Source/web/IDBFactoryBackendProxy.h ('k') | Source/web/InbandTextTrackPrivateImpl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 "weborigin/SecurityOrigin.h"
53 53
54 54
55 using namespace WebCore; 55 using namespace WebCore;
56 56
57 namespace WebKit { 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 }
63 63
64 IDBFactoryBackendProxy::IDBFactoryBackendProxy() 64 IDBFactoryBackendProxy::IDBFactoryBackendProxy()
65 { 65 {
66 m_webIDBFactory = WebKit::Platform::current()->idbFactory(); 66 m_webIDBFactory = blink::Platform::current()->idbFactory();
67 } 67 }
68 68
69 IDBFactoryBackendProxy::~IDBFactoryBackendProxy() 69 IDBFactoryBackendProxy::~IDBFactoryBackendProxy()
70 { 70 {
71 } 71 }
72 72
73 bool IDBFactoryBackendProxy::allowIndexedDB(ExecutionContext* context, const Str ing& name, const WebSecurityOrigin& origin, PassRefPtr<IDBCallbacks> callbacks) 73 bool IDBFactoryBackendProxy::allowIndexedDB(ExecutionContext* context, const Str ing& name, const WebSecurityOrigin& origin, PassRefPtr<IDBCallbacks> callbacks)
74 { 74 {
75 bool allowed; 75 bool allowed;
76 ASSERT_WITH_SECURITY_IMPLICATION(context->isDocument() || context->isWorkerG lobalScope()); 76 ASSERT_WITH_SECURITY_IMPLICATION(context->isDocument() || context->isWorkerG lobalScope());
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 void IDBFactoryBackendProxy::deleteDatabase(const String& name, PassRefPtr<IDBCa llbacks> prpCallbacks, const String& databaseIdentifier, ExecutionContext* conte xt) 115 void IDBFactoryBackendProxy::deleteDatabase(const String& name, PassRefPtr<IDBCa llbacks> prpCallbacks, const String& databaseIdentifier, ExecutionContext* conte xt)
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 WebIDBCallbacksImpl(callbacks), da tabaseIdentifier); 122 m_webIDBFactory->deleteDatabase(name, new WebIDBCallbacksImpl(callbacks), da tabaseIdentifier);
123 } 123 }
124 124
125 } // namespace WebKit 125 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/IDBFactoryBackendProxy.h ('k') | Source/web/InbandTextTrackPrivateImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698