OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 55 |
56 virtual void setFrontend(InspectorFrontend*) override; | 56 virtual void setFrontend(InspectorFrontend*) override; |
57 virtual void clearFrontend() override; | 57 virtual void clearFrontend() override; |
58 virtual void restore() override; | 58 virtual void restore() override; |
59 | 59 |
60 virtual void didCommitLoadForMainFrame() override; | 60 virtual void didCommitLoadForMainFrame() override; |
61 | 61 |
62 // Called from the front-end. | 62 // Called from the front-end. |
63 virtual void enable(ErrorString*) override; | 63 virtual void enable(ErrorString*) override; |
64 virtual void disable(ErrorString*) override; | 64 virtual void disable(ErrorString*) override; |
65 virtual void getDatabaseTableNames(ErrorString*, const String& databaseId, R
efPtr<TypeBuilder::Array<String> >& names) override; | 65 virtual void getDatabaseTableNames(ErrorString*, const String& databaseId, R
efPtr<TypeBuilder::Array<String>>& names) override; |
66 virtual void executeSQL(ErrorString*, const String& databaseId, const String
& query, PassRefPtrWillBeRawPtr<ExecuteSQLCallback>) override; | 66 virtual void executeSQL(ErrorString*, const String& databaseId, const String
& query, PassRefPtrWillBeRawPtr<ExecuteSQLCallback>) override; |
67 | 67 |
68 void didOpenDatabase(Database*, const String& domain, const String& name, co
nst String& version); | 68 void didOpenDatabase(Database*, const String& domain, const String& name, co
nst String& version); |
69 private: | 69 private: |
70 explicit InspectorDatabaseAgent(); | 70 explicit InspectorDatabaseAgent(); |
71 | 71 |
72 Database* databaseForId(const String& databaseId); | 72 Database* databaseForId(const String& databaseId); |
73 InspectorDatabaseResource* findByFileName(const String& fileName); | 73 InspectorDatabaseResource* findByFileName(const String& fileName); |
74 | 74 |
75 InspectorFrontend::Database* m_frontend; | 75 InspectorFrontend::Database* m_frontend; |
76 typedef PersistentHeapHashMapWillBeHeapHashMap<String, Member<InspectorDatab
aseResource> > DatabaseResourcesHeapMap; | 76 typedef PersistentHeapHashMapWillBeHeapHashMap<String, Member<InspectorDatab
aseResource>> DatabaseResourcesHeapMap; |
77 DatabaseResourcesHeapMap m_resources; | 77 DatabaseResourcesHeapMap m_resources; |
78 bool m_enabled; | 78 bool m_enabled; |
79 }; | 79 }; |
80 | 80 |
81 } // namespace blink | 81 } // namespace blink |
82 | 82 |
83 #endif // !defined(InspectorDatabaseAgent_h) | 83 #endif // !defined(InspectorDatabaseAgent_h) |
OLD | NEW |