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

Side by Side Diff: Source/modules/indexeddb/IDBVersionChangeEvent.h

Issue 135653002: Update modules classes to use OVERRIDE / FINAL when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove change to web/ Created 6 years, 11 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 18 matching lines...) Expand all
29 #include "core/events/Event.h" 29 #include "core/events/Event.h"
30 #include "modules/indexeddb/IDBAny.h" 30 #include "modules/indexeddb/IDBAny.h"
31 #include "modules/indexeddb/IDBRequest.h" 31 #include "modules/indexeddb/IDBRequest.h"
32 #include "public/platform/WebIDBTypes.h" 32 #include "public/platform/WebIDBTypes.h"
33 #include "wtf/PassRefPtr.h" 33 #include "wtf/PassRefPtr.h"
34 #include "wtf/RefPtr.h" 34 #include "wtf/RefPtr.h"
35 #include "wtf/text/WTFString.h" 35 #include "wtf/text/WTFString.h"
36 36
37 namespace WebCore { 37 namespace WebCore {
38 38
39 class IDBVersionChangeEvent : public Event { 39 class IDBVersionChangeEvent FINAL : public Event {
40 public: 40 public:
41 static PassRefPtr<IDBVersionChangeEvent> create(PassRefPtr<IDBAny> oldVersio n = IDBAny::createNull(), PassRefPtr<IDBAny> newVersion = IDBAny::createNull(), const AtomicString& eventType = AtomicString(), blink::WebIDBDataLoss = blink::W ebIDBDataLossNone, const String& dataLossMessage = String()); 41 static PassRefPtr<IDBVersionChangeEvent> create(PassRefPtr<IDBAny> oldVersio n = IDBAny::createNull(), PassRefPtr<IDBAny> newVersion = IDBAny::createNull(), const AtomicString& eventType = AtomicString(), blink::WebIDBDataLoss = blink::W ebIDBDataLossNone, const String& dataLossMessage = String());
42 virtual ~IDBVersionChangeEvent(); 42 virtual ~IDBVersionChangeEvent();
43 43
44 ScriptValue oldVersion(ExecutionContext*) const; 44 ScriptValue oldVersion(ExecutionContext*) const;
45 ScriptValue newVersion(ExecutionContext*) const; 45 ScriptValue newVersion(ExecutionContext*) const;
46 const AtomicString& dataLoss() const; 46 const AtomicString& dataLoss() const;
47 const String& dataLossMessage() const { return m_dataLossMessage; } 47 const String& dataLossMessage() const { return m_dataLossMessage; }
48 48
49 virtual const AtomicString& interfaceName() const; 49 virtual const AtomicString& interfaceName() const OVERRIDE;
50 50
51 private: 51 private:
52 IDBVersionChangeEvent(PassRefPtr<IDBAny> oldVersion, PassRefPtr<IDBAny> newV ersion, const AtomicString& eventType, blink::WebIDBDataLoss, const String& data Loss); 52 IDBVersionChangeEvent(PassRefPtr<IDBAny> oldVersion, PassRefPtr<IDBAny> newV ersion, const AtomicString& eventType, blink::WebIDBDataLoss, const String& data Loss);
53 53
54 RefPtr<IDBAny> m_oldVersion; 54 RefPtr<IDBAny> m_oldVersion;
55 RefPtr<IDBAny> m_newVersion; 55 RefPtr<IDBAny> m_newVersion;
56 bool m_dataLoss; 56 bool m_dataLoss;
57 String m_dataLossMessage; 57 String m_dataLossMessage;
58 }; 58 };
59 59
60 } // namespace WebCore 60 } // namespace WebCore
61 61
62 #endif // IDBVersionChangeEvent_h 62 #endif // IDBVersionChangeEvent_h
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBTransactionTest.cpp ('k') | Source/modules/indexeddb/PageGroupIndexedDatabase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698