| 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 20 matching lines...) Expand all  Loading... | 
|  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/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 class InspectorFrontend; |  | 
|  42  |  41  | 
|  43 class InspectorDatabaseResource : public GarbageCollectedFinalized<InspectorData
    baseResource> { |  42 class InspectorDatabaseResource : public GarbageCollectedFinalized<InspectorData
    baseResource> { | 
|  44 public: |  43 public: | 
|  45     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); | 
|  46     void trace(Visitor*); |  45     void trace(Visitor*); | 
|  47  |  46  | 
|  48     void bind(InspectorFrontend::Database*); |  47     void bind(InspectorFrontend::Database*); | 
|  49     Database* database() { return m_database.get(); } |  48     Database* database() { return m_database.get(); } | 
|  50     void setDatabase(Database* database) { m_database = database; } |  49     void setDatabase(Database* database) { m_database = database; } | 
|  51     String id() const { return m_id; } |  50     String id() const { return m_id; } | 
|  52  |  51  | 
|  53 private: |  52 private: | 
|  54     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); | 
|  55  |  54  | 
|  56     Member<Database> m_database; |  55     Member<Database> m_database; | 
|  57     String m_id; |  56     String m_id; | 
|  58     String m_domain; |  57     String m_domain; | 
|  59     String m_name; |  58     String m_name; | 
|  60     String m_version; |  59     String m_version; | 
|  61 }; |  60 }; | 
|  62  |  61  | 
|  63 } // namespace blink |  62 } // namespace blink | 
|  64  |  63  | 
|  65 #endif // InspectorDatabaseResource_h |  64 #endif // InspectorDatabaseResource_h | 
| OLD | NEW |