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

Side by Side Diff: third_party/WebKit/Source/modules/storage/StorageEvent.h

Issue 1864243004: Remove RawPtr from Source/modules Part 2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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) 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009 Apple 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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 20 matching lines...) Expand all
31 #include "wtf/text/WTFString.h" 31 #include "wtf/text/WTFString.h"
32 32
33 namespace blink { 33 namespace blink {
34 34
35 class Storage; 35 class Storage;
36 class StorageEventInit; 36 class StorageEventInit;
37 37
38 class StorageEvent final : public Event { 38 class StorageEvent final : public Event {
39 DEFINE_WRAPPERTYPEINFO(); 39 DEFINE_WRAPPERTYPEINFO();
40 public: 40 public:
41 static RawPtr<StorageEvent> create(); 41 static StorageEvent* create();
42 static RawPtr<StorageEvent> create(const AtomicString& type, const String& k ey, const String& oldValue, const String& newValue, const String& url, Storage* storageArea); 42 static StorageEvent* create(const AtomicString& type, const String& key, con st String& oldValue, const String& newValue, const String& url, Storage* storage Area);
43 static RawPtr<StorageEvent> create(const AtomicString&, const StorageEventIn it&); 43 static StorageEvent* create(const AtomicString&, const StorageEventInit&);
44 ~StorageEvent() override; 44 ~StorageEvent() override;
45 45
46 const String& key() const { return m_key; } 46 const String& key() const { return m_key; }
47 const String& oldValue() const { return m_oldValue; } 47 const String& oldValue() const { return m_oldValue; }
48 const String& newValue() const { return m_newValue; } 48 const String& newValue() const { return m_newValue; }
49 const String& url() const { return m_url; } 49 const String& url() const { return m_url; }
50 Storage* storageArea() const { return m_storageArea.get(); } 50 Storage* storageArea() const { return m_storageArea.get(); }
51 51
52 void initStorageEvent(const AtomicString& type, bool canBubble, bool cancela ble, const String& key, const String& oldValue, const String& newValue, const St ring& url, Storage* storageArea); 52 void initStorageEvent(const AtomicString& type, bool canBubble, bool cancela ble, const String& key, const String& oldValue, const String& newValue, const St ring& url, Storage* storageArea);
53 53
(...skipping 12 matching lines...) Expand all
66 String m_key; 66 String m_key;
67 String m_oldValue; 67 String m_oldValue;
68 String m_newValue; 68 String m_newValue;
69 String m_url; 69 String m_url;
70 Member<Storage> m_storageArea; 70 Member<Storage> m_storageArea;
71 }; 71 };
72 72
73 } // namespace blink 73 } // namespace blink
74 74
75 #endif // StorageEvent_h 75 #endif // StorageEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698