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

Side by Side Diff: Source/modules/indexeddb/IDBFactory.h

Issue 78053006: [oilpan] Move IDBDatabase, IDBDatabaseCallbacks, IDBDatabaseBackendInterface and other related clas… (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 class IDBFactory : public HeapAllocated<IDBFactory>, public ScriptWrappable { 47 class IDBFactory : public HeapAllocated<IDBFactory>, public ScriptWrappable {
48 DECLARE_GC_INFO 48 DECLARE_GC_INFO
49 public: 49 public:
50 static IDBFactory* create(IDBFactoryBackendInterface* factory) 50 static IDBFactory* create(IDBFactoryBackendInterface* factory)
51 { 51 {
52 return new IDBFactory(factory); 52 return new IDBFactory(factory);
53 } 53 }
54 ~IDBFactory(); 54 ~IDBFactory();
55 55
56 PassRefPtr<IDBRequest> getDatabaseNames(ScriptExecutionContext*, ExceptionCo de&); 56 IDBRequest* getDatabaseNames(ScriptExecutionContext*, ExceptionCode&);
57 57
58 PassRefPtr<IDBOpenDBRequest> open(ScriptExecutionContext*, const String& nam e, ExceptionCode&); 58 IDBOpenDBRequest* open(ScriptExecutionContext*, const String& name, Exceptio nCode&);
59 PassRefPtr<IDBOpenDBRequest> open(ScriptExecutionContext*, const String& nam e, unsigned long long version, ExceptionCode&); 59 IDBOpenDBRequest* open(ScriptExecutionContext*, const String& name, unsigned long long version, ExceptionCode&);
60 PassRefPtr<IDBOpenDBRequest> deleteDatabase(ScriptExecutionContext*, const S tring& name, ExceptionCode&); 60 IDBOpenDBRequest* deleteDatabase(ScriptExecutionContext*, const String& name , ExceptionCode&);
61 61
62 short cmp(ScriptExecutionContext*, const ScriptValue& first, const ScriptVal ue& second, ExceptionCode&); 62 short cmp(ScriptExecutionContext*, const ScriptValue& first, const ScriptVal ue& second, ExceptionCode&);
63 63
64 void trace(Visitor*); 64 void trace(Visitor*);
65 65
66 private: 66 private:
67 IDBFactory(IDBFactoryBackendInterface*); 67 IDBFactory(IDBFactoryBackendInterface*);
68 68
69 PassRefPtr<IDBOpenDBRequest> openInternal(ScriptExecutionContext*, const Str ing& name, int64_t version, ExceptionCode&); 69 IDBOpenDBRequest* openInternal(ScriptExecutionContext*, const String& name, int64_t version, ExceptionCode&);
70 70
71 Member<IDBFactoryBackendInterface> m_backend; 71 Member<IDBFactoryBackendInterface> m_backend;
72 }; 72 };
73 73
74 } // namespace WebCore 74 } // namespace WebCore
75 75
76 #endif // IDBFactory_h 76 #endif // IDBFactory_h
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBDatabaseCallbacksImpl.cpp ('k') | Source/modules/indexeddb/IDBFactory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698