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

Side by Side Diff: Source/WebCore/Modules/indexeddb/IDBFactory.cpp

Issue 13814002: First part of work to move V8 binding integrity off of vtables. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 #include "WorkerLoaderProxy.h" 51 #include "WorkerLoaderProxy.h"
52 #include "WorkerThread.h" 52 #include "WorkerThread.h"
53 53
54 namespace WebCore { 54 namespace WebCore {
55 55
56 IDBFactory::IDBFactory(IDBFactoryBackendInterface* factory) 56 IDBFactory::IDBFactory(IDBFactoryBackendInterface* factory)
57 : m_backend(factory) 57 : m_backend(factory)
58 { 58 {
59 // We pass a reference to this object before it can be adopted. 59 // We pass a reference to this object before it can be adopted.
60 relaxAdoptionRequirement(); 60 relaxAdoptionRequirement();
61 ScriptWrappable::init(this);
61 } 62 }
62 63
63 IDBFactory::~IDBFactory() 64 IDBFactory::~IDBFactory()
64 { 65 {
65 } 66 }
66 67
67 namespace { 68 namespace {
68 static bool isContextValid(ScriptExecutionContext* context) 69 static bool isContextValid(ScriptExecutionContext* context)
69 { 70 {
70 ASSERT(context->isDocument() || context->isWorkerContext()); 71 ASSERT(context->isDocument() || context->isWorkerContext());
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 175
175 if (!first->isValid() || !second->isValid()) { 176 if (!first->isValid() || !second->isValid()) {
176 ec = IDBDatabaseException::DataError; 177 ec = IDBDatabaseException::DataError;
177 return 0; 178 return 0;
178 } 179 }
179 180
180 return static_cast<short>(first->compare(second.get())); 181 return static_cast<short>(first->compare(second.get()));
181 } 182 }
182 183
183 } // namespace WebCore 184 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/Modules/indexeddb/IDBDatabase.cpp ('k') | Source/WebCore/Modules/indexeddb/IDBIndex.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698