Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(234)

Side by Side Diff: Source/modules/webdatabase/InspectorDatabaseAgent.h

Issue 198913003: DevTools: Clean up InspectorDatabaseAgent state on page reload (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/modules/webdatabase/InspectorDatabaseAgent.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 static PassOwnPtr<InspectorDatabaseAgent> create() 52 static PassOwnPtr<InspectorDatabaseAgent> create()
53 { 53 {
54 return adoptPtr(new InspectorDatabaseAgent()); 54 return adoptPtr(new InspectorDatabaseAgent());
55 } 55 }
56 virtual ~InspectorDatabaseAgent(); 56 virtual ~InspectorDatabaseAgent();
57 57
58 virtual void setFrontend(InspectorFrontend*) OVERRIDE; 58 virtual void setFrontend(InspectorFrontend*) OVERRIDE;
59 virtual void clearFrontend() OVERRIDE; 59 virtual void clearFrontend() OVERRIDE;
60 virtual void restore() OVERRIDE; 60 virtual void restore() OVERRIDE;
61 61
62 void didCommitLoad(LocalFrame*, DocumentLoader*); 62 virtual void didCommitLoadForMainFrame() OVERRIDE;
63 63
64 // Called from the front-end. 64 // Called from the front-end.
65 virtual void enable(ErrorString*) OVERRIDE; 65 virtual void enable(ErrorString*) OVERRIDE;
66 virtual void disable(ErrorString*) OVERRIDE; 66 virtual void disable(ErrorString*) OVERRIDE;
67 virtual void getDatabaseTableNames(ErrorString*, const String& databaseId, R efPtr<TypeBuilder::Array<String> >& names) OVERRIDE; 67 virtual void getDatabaseTableNames(ErrorString*, const String& databaseId, R efPtr<TypeBuilder::Array<String> >& names) OVERRIDE;
68 virtual void executeSQL(ErrorString*, const String& databaseId, const String & query, PassRefPtr<ExecuteSQLCallback>) OVERRIDE; 68 virtual void executeSQL(ErrorString*, const String& databaseId, const String & query, PassRefPtr<ExecuteSQLCallback>) OVERRIDE;
69 69
70 void didOpenDatabase(PassRefPtrWillBeRawPtr<Database>, const String& domain, const String& name, const String& version); 70 void didOpenDatabase(PassRefPtrWillBeRawPtr<Database>, const String& domain, const String& name, const String& version);
71 private: 71 private:
72 explicit InspectorDatabaseAgent(); 72 explicit InspectorDatabaseAgent();
73 73
74 Database* databaseForId(const String& databaseId); 74 Database* databaseForId(const String& databaseId);
75 InspectorDatabaseResource* findByFileName(const String& fileName); 75 InspectorDatabaseResource* findByFileName(const String& fileName);
76 76
77 InspectorFrontend::Database* m_frontend; 77 InspectorFrontend::Database* m_frontend;
78 typedef WillBePersistentHeapHashMap<String, RefPtrWillBeMember<InspectorData baseResource> > DatabaseResourcesHeapMap; 78 typedef WillBePersistentHeapHashMap<String, RefPtrWillBeMember<InspectorData baseResource> > DatabaseResourcesHeapMap;
79 DatabaseResourcesHeapMap m_resources; 79 DatabaseResourcesHeapMap m_resources;
80 bool m_enabled; 80 bool m_enabled;
81 }; 81 };
82 82
83 } // namespace WebCore 83 } // namespace WebCore
84 84
85 #endif // !defined(InspectorDatabaseAgent_h) 85 #endif // !defined(InspectorDatabaseAgent_h)
OLDNEW
« no previous file with comments | « no previous file | Source/modules/webdatabase/InspectorDatabaseAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698