| 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 13 matching lines...) Expand all Loading... |
| 24 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 24 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 25 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 25 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 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/inspector/protocol/Database.h" |
| 34 #include "platform/heap/Handle.h" | 35 #include "platform/heap/Handle.h" |
| 35 #include "platform/inspector_protocol/TypeBuilder.h" | |
| 36 #include "wtf/Forward.h" | 36 #include "wtf/Forward.h" |
| 37 #include "wtf/text/WTFString.h" | 37 #include "wtf/text/WTFString.h" |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 class Database; | 40 class Database; |
| 41 | 41 |
| 42 class InspectorDatabaseResource : public GarbageCollectedFinalized<InspectorData
baseResource> { | 42 class InspectorDatabaseResource : public GarbageCollectedFinalized<InspectorData
baseResource> { |
| 43 public: | 43 public: |
| 44 static InspectorDatabaseResource* create(Database*, const String& domain, co
nst String& name, const String& version); | 44 static InspectorDatabaseResource* create(Database*, const String& domain, co
nst String& name, const String& version); |
| 45 DECLARE_TRACE(); | 45 DECLARE_TRACE(); |
| 46 | 46 |
| 47 void bind(protocol::Database::Frontend*); | 47 void bind(protocol::Database::Frontend*); |
| 48 Database* database() { return m_database.get(); } | 48 Database* database() { return m_database.get(); } |
| 49 void setDatabase(Database* database) { m_database = database; } | 49 void setDatabase(Database* database) { m_database = database; } |
| 50 String id() const { return m_id; } | 50 String id() const { return m_id; } |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 InspectorDatabaseResource(Database*, const String& domain, const String& nam
e, const String& version); | 53 InspectorDatabaseResource(Database*, const String& domain, const String& nam
e, const String& version); |
| 54 | 54 |
| 55 Member<Database> m_database; | 55 Member<Database> m_database; |
| 56 String m_id; | 56 String m_id; |
| 57 String m_domain; | 57 String m_domain; |
| 58 String m_name; | 58 String m_name; |
| 59 String m_version; | 59 String m_version; |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace blink | 62 } // namespace blink |
| 63 | 63 |
| 64 #endif // InspectorDatabaseResource_h | 64 #endif // InspectorDatabaseResource_h |
| OLD | NEW |