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

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

Issue 635233004: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/modules (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
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 29 matching lines...) Expand all
40 40
41 class Database; 41 class Database;
42 class DocumentLoader; 42 class DocumentLoader;
43 class LocalFrame; 43 class LocalFrame;
44 class InspectorDatabaseResource; 44 class InspectorDatabaseResource;
45 class InspectorFrontend; 45 class InspectorFrontend;
46 class InstrumentingAgents; 46 class InstrumentingAgents;
47 47
48 typedef String ErrorString; 48 typedef String ErrorString;
49 49
50 class InspectorDatabaseAgent FINAL : public InspectorBaseAgent<InspectorDatabase Agent>, public InspectorBackendDispatcher::DatabaseCommandHandler { 50 class InspectorDatabaseAgent final : public InspectorBaseAgent<InspectorDatabase Agent>, public InspectorBackendDispatcher::DatabaseCommandHandler {
51 public: 51 public:
52 static PassOwnPtrWillBeRawPtr<InspectorDatabaseAgent> create() 52 static PassOwnPtrWillBeRawPtr<InspectorDatabaseAgent> create()
53 { 53 {
54 return adoptPtrWillBeNoop(new InspectorDatabaseAgent()); 54 return adoptPtrWillBeNoop(new InspectorDatabaseAgent());
55 } 55 }
56 virtual ~InspectorDatabaseAgent(); 56 virtual ~InspectorDatabaseAgent();
57 virtual void trace(Visitor*) OVERRIDE; 57 virtual void trace(Visitor*) override;
58 58
59 virtual void setFrontend(InspectorFrontend*) OVERRIDE; 59 virtual void setFrontend(InspectorFrontend*) override;
60 virtual void clearFrontend() OVERRIDE; 60 virtual void clearFrontend() override;
61 virtual void restore() OVERRIDE; 61 virtual void restore() override;
62 62
63 virtual void didCommitLoadForMainFrame() OVERRIDE; 63 virtual void didCommitLoadForMainFrame() override;
64 64
65 // Called from the front-end. 65 // Called from the front-end.
66 virtual void enable(ErrorString*) OVERRIDE; 66 virtual void enable(ErrorString*) override;
67 virtual void disable(ErrorString*) OVERRIDE; 67 virtual void disable(ErrorString*) override;
68 virtual void getDatabaseTableNames(ErrorString*, const String& databaseId, R efPtr<TypeBuilder::Array<String> >& names) OVERRIDE; 68 virtual void getDatabaseTableNames(ErrorString*, const String& databaseId, R efPtr<TypeBuilder::Array<String> >& names) override;
69 virtual void executeSQL(ErrorString*, const String& databaseId, const String & query, PassRefPtrWillBeRawPtr<ExecuteSQLCallback>) OVERRIDE; 69 virtual void executeSQL(ErrorString*, const String& databaseId, const String & query, PassRefPtrWillBeRawPtr<ExecuteSQLCallback>) override;
70 70
71 void didOpenDatabase(Database*, const String& domain, const String& name, co nst String& version); 71 void didOpenDatabase(Database*, const String& domain, const String& name, co nst String& version);
72 private: 72 private:
73 explicit InspectorDatabaseAgent(); 73 explicit InspectorDatabaseAgent();
74 74
75 Database* databaseForId(const String& databaseId); 75 Database* databaseForId(const String& databaseId);
76 InspectorDatabaseResource* findByFileName(const String& fileName); 76 InspectorDatabaseResource* findByFileName(const String& fileName);
77 77
78 InspectorFrontend::Database* m_frontend; 78 InspectorFrontend::Database* m_frontend;
79 typedef PersistentHeapHashMapWillBeHeapHashMap<String, Member<InspectorDatab aseResource> > DatabaseResourcesHeapMap; 79 typedef PersistentHeapHashMapWillBeHeapHashMap<String, Member<InspectorDatab aseResource> > DatabaseResourcesHeapMap;
80 DatabaseResourcesHeapMap m_resources; 80 DatabaseResourcesHeapMap m_resources;
81 bool m_enabled; 81 bool m_enabled;
82 }; 82 };
83 83
84 } // namespace blink 84 } // namespace blink
85 85
86 #endif // !defined(InspectorDatabaseAgent_h) 86 #endif // !defined(InspectorDatabaseAgent_h)
OLDNEW
« no previous file with comments | « Source/modules/webdatabase/DatabaseTracker.cpp ('k') | Source/modules/webdatabase/InspectorDatabaseAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698