| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> | 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> |
| 4 * Copyright (C) 2009 Google Inc. All rights reserved. | 4 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef InspectorDatabaseResource_h | 31 #ifndef InspectorDatabaseResource_h |
| 32 #define InspectorDatabaseResource_h | 32 #define InspectorDatabaseResource_h |
| 33 | 33 |
| 34 #include "core/InspectorFrontend.h" | 34 #include "core/InspectorFrontend.h" |
| 35 #include "platform/heap/Handle.h" | 35 #include "platform/heap/Handle.h" |
| 36 #include "wtf/PassRefPtr.h" | 36 #include "wtf/Forward.h" |
| 37 #include "wtf/RefCounted.h" | 37 #include "wtf/RefCounted.h" |
| 38 #include "wtf/RefPtr.h" | |
| 39 #include "wtf/text/WTFString.h" | 38 #include "wtf/text/WTFString.h" |
| 40 | 39 |
| 41 namespace WebCore { | 40 namespace WebCore { |
| 42 class Database; | 41 class Database; |
| 43 class InspectorFrontend; | 42 class InspectorFrontend; |
| 44 | 43 |
| 45 class InspectorDatabaseResource : public RefCountedWillBeGarbageCollectedFinaliz
ed<InspectorDatabaseResource> { | 44 class InspectorDatabaseResource : public RefCountedWillBeGarbageCollectedFinaliz
ed<InspectorDatabaseResource> { |
| 46 public: | 45 public: |
| 47 static PassRefPtrWillBeRawPtr<InspectorDatabaseResource> create(PassRefPtrWi
llBeRawPtr<Database>, const String& domain, const String& name, const String& ve
rsion); | 46 static PassRefPtrWillBeRawPtr<InspectorDatabaseResource> create(PassRefPtrWi
llBeRawPtr<Database>, const String& domain, const String& name, const String& ve
rsion); |
| 48 void trace(Visitor*); | 47 void trace(Visitor*); |
| 49 | 48 |
| 50 void bind(InspectorFrontend::Database*); | 49 void bind(InspectorFrontend::Database*); |
| 51 Database* database() { return m_database.get(); } | 50 Database* database() { return m_database.get(); } |
| 52 void setDatabase(PassRefPtrWillBeRawPtr<Database> database) { m_database = d
atabase; } | 51 void setDatabase(PassRefPtrWillBeRawPtr<Database> database) { m_database = d
atabase; } |
| 53 String id() const { return m_id; } | 52 String id() const { return m_id; } |
| 54 | 53 |
| 55 private: | 54 private: |
| 56 InspectorDatabaseResource(PassRefPtrWillBeRawPtr<Database>, const String& do
main, const String& name, const String& version); | 55 InspectorDatabaseResource(PassRefPtrWillBeRawPtr<Database>, const String& do
main, const String& name, const String& version); |
| 57 | 56 |
| 58 RefPtrWillBeMember<Database> m_database; | 57 RefPtrWillBeMember<Database> m_database; |
| 59 String m_id; | 58 String m_id; |
| 60 String m_domain; | 59 String m_domain; |
| 61 String m_name; | 60 String m_name; |
| 62 String m_version; | 61 String m_version; |
| 63 }; | 62 }; |
| 64 | 63 |
| 65 } // namespace WebCore | 64 } // namespace WebCore |
| 66 | 65 |
| 67 #endif // InspectorDatabaseResource_h | 66 #endif // InspectorDatabaseResource_h |
| OLD | NEW |