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 25 matching lines...) Expand all Loading... |
36 #include "wtf/RefCounted.h" | 36 #include "wtf/RefCounted.h" |
37 #include "wtf/RefPtr.h" | 37 #include "wtf/RefPtr.h" |
38 #include "wtf/text/WTFString.h" | 38 #include "wtf/text/WTFString.h" |
39 | 39 |
40 namespace WebCore { | 40 namespace WebCore { |
41 class Database; | 41 class Database; |
42 class InspectorFrontend; | 42 class InspectorFrontend; |
43 | 43 |
44 class InspectorDatabaseResource : public RefCounted<InspectorDatabaseResource> { | 44 class InspectorDatabaseResource : public RefCounted<InspectorDatabaseResource> { |
45 public: | 45 public: |
46 static PassRefPtr<InspectorDatabaseResource> create(PassRefPtr<Database> dat
abase, const String& domain, const String& name, const String& version); | 46 static PassRefPtr<InspectorDatabaseResource> create(PassRefPtr<Database>, co
nst String& domain, const String& name, const String& version); |
47 | 47 |
48 void bind(InspectorFrontend::Database*); | 48 void bind(InspectorFrontend::Database*); |
49 Database* database() { return m_database.get(); } | 49 Database* database() { return m_database.get(); } |
50 void setDatabase(PassRefPtr<Database> database) { m_database = database; } | 50 void setDatabase(PassRefPtr<Database> database) { m_database = database; } |
51 String id() const { return m_id; } | 51 String id() const { return m_id; } |
52 | 52 |
53 private: | 53 private: |
54 InspectorDatabaseResource(PassRefPtr<Database>, const String& domain, const
String& name, const String& version); | 54 InspectorDatabaseResource(PassRefPtr<Database>, const String& domain, const
String& name, const String& version); |
55 | 55 |
56 RefPtr<Database> m_database; | 56 RefPtr<Database> m_database; |
57 String m_id; | 57 String m_id; |
58 String m_domain; | 58 String m_domain; |
59 String m_name; | 59 String m_name; |
60 String m_version; | 60 String m_version; |
61 }; | 61 }; |
62 | 62 |
63 } // namespace WebCore | 63 } // namespace WebCore |
64 | 64 |
65 #endif // InspectorDatabaseResource_h | 65 #endif // InspectorDatabaseResource_h |
OLD | NEW |