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

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

Issue 225023020: IDBFactoryBackend -> IndexedDBClient, remove indexeddb/chromium (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rename some lingering 'factory' ferences to 'client' Created 6 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 20 matching lines...) Expand all
31 #include "bindings/v8/ScriptWrappable.h" 31 #include "bindings/v8/ScriptWrappable.h"
32 #include "modules/indexeddb/IDBOpenDBRequest.h" 32 #include "modules/indexeddb/IDBOpenDBRequest.h"
33 #include "wtf/PassRefPtr.h" 33 #include "wtf/PassRefPtr.h"
34 #include "wtf/RefCounted.h" 34 #include "wtf/RefCounted.h"
35 #include "wtf/RefPtr.h" 35 #include "wtf/RefPtr.h"
36 #include "wtf/text/WTFString.h" 36 #include "wtf/text/WTFString.h"
37 37
38 namespace WebCore { 38 namespace WebCore {
39 39
40 class ExceptionState; 40 class ExceptionState;
41 class IDBFactoryBackendInterface; 41 class IndexedDBClient;
42 class IDBKey; 42 class IDBKey;
43 class IDBKeyRange; 43 class IDBKeyRange;
44 class ExecutionContext; 44 class ExecutionContext;
45 45
46 class IDBFactory : public ScriptWrappable, public RefCounted<IDBFactory> { 46 class IDBFactory : public ScriptWrappable, public RefCounted<IDBFactory> {
47 public: 47 public:
48 static PassRefPtr<IDBFactory> create(IDBFactoryBackendInterface* factory) 48 static PassRefPtr<IDBFactory> create(IndexedDBClient* client)
49 { 49 {
50 return adoptRef(new IDBFactory(factory)); 50 return adoptRef(new IDBFactory(client));
51 } 51 }
52 ~IDBFactory(); 52 ~IDBFactory();
53 53
54 PassRefPtr<IDBRequest> getDatabaseNames(ExecutionContext*, ExceptionState&); 54 PassRefPtr<IDBRequest> getDatabaseNames(ExecutionContext*, ExceptionState&);
55 55
56 PassRefPtr<IDBOpenDBRequest> open(ExecutionContext*, const String& name, Exc eptionState&); 56 PassRefPtr<IDBOpenDBRequest> open(ExecutionContext*, const String& name, Exc eptionState&);
57 PassRefPtr<IDBOpenDBRequest> open(ExecutionContext*, const String& name, uns igned long long version, ExceptionState&); 57 PassRefPtr<IDBOpenDBRequest> open(ExecutionContext*, const String& name, uns igned long long version, ExceptionState&);
58 PassRefPtr<IDBOpenDBRequest> deleteDatabase(ExecutionContext*, const String& name, ExceptionState&); 58 PassRefPtr<IDBOpenDBRequest> deleteDatabase(ExecutionContext*, const String& name, ExceptionState&);
59 59
60 short cmp(ExecutionContext*, const ScriptValue& first, const ScriptValue& se cond, ExceptionState&); 60 short cmp(ExecutionContext*, const ScriptValue& first, const ScriptValue& se cond, ExceptionState&);
61 61
62 private: 62 private:
63 explicit IDBFactory(IDBFactoryBackendInterface*); 63 explicit IDBFactory(IndexedDBClient*);
64 64
65 PassRefPtr<IDBOpenDBRequest> openInternal(ExecutionContext*, const String& n ame, int64_t version, ExceptionState&); 65 PassRefPtr<IDBOpenDBRequest> openInternal(ExecutionContext*, const String& n ame, int64_t version, ExceptionState&);
66 66
67 RefPtr<IDBFactoryBackendInterface> m_permissionClient; 67 RefPtr<IndexedDBClient> m_permissionClient;
68 }; 68 };
69 69
70 } // namespace WebCore 70 } // namespace WebCore
71 71
72 #endif // IDBFactory_h 72 #endif // IDBFactory_h
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/DOMWindowIndexedDatabase.cpp ('k') | Source/modules/indexeddb/IDBFactory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698