| 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 26 matching lines...) Expand all Loading... |
| 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::Frontend::Database*); | 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 |