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

Side by Side Diff: Source/core/storage/StorageEvent.h

Issue 192473003: Move CSSRuleList to the garbage collected heap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix teardown of StyleEngine 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 | Annotate | Revision Log
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 17 matching lines...) Expand all
28 28
29 #include "core/events/Event.h" 29 #include "core/events/Event.h"
30 #include "heap/Handle.h" 30 #include "heap/Handle.h"
31 #include "wtf/text/WTFString.h" 31 #include "wtf/text/WTFString.h"
32 32
33 namespace WebCore { 33 namespace WebCore {
34 34
35 class Storage; 35 class Storage;
36 36
37 struct StorageEventInit : public EventInit { 37 struct StorageEventInit : public EventInit {
38 // FIXME: oilpan: Replace this with STACK_ALLOCATED. 38 STACK_ALLOCATED();
39 DISALLOW_ALLOCATION();
40 public: 39 public:
41 StorageEventInit(); 40 StorageEventInit();
42 41
43 String key; 42 String key;
44 String oldValue; 43 String oldValue;
45 String newValue; 44 String newValue;
46 String url; 45 String url;
47 RefPtrWillBeRawPtr<Storage> storageArea; 46 RefPtrWillBeRawPtr<Storage> storageArea;
haraken 2014/03/12 11:08:21 This should be RefPtrWillBeMember. We'll need to
Erik Corry 2014/03/12 11:48:57 Done.
48 }; 47 };
49 48
50 class StorageEvent FINAL : public Event { 49 class StorageEvent FINAL : public Event {
51 public: 50 public:
52 static PassRefPtr<StorageEvent> create(); 51 static PassRefPtr<StorageEvent> create();
53 static PassRefPtr<StorageEvent> create(const AtomicString& type, const Strin g& key, const String& oldValue, const String& newValue, const String& url, Stora ge* storageArea); 52 static PassRefPtr<StorageEvent> create(const AtomicString& type, const Strin g& key, const String& oldValue, const String& newValue, const String& url, Stora ge* storageArea);
54 static PassRefPtr<StorageEvent> create(const AtomicString&, const StorageEve ntInit&); 53 static PassRefPtr<StorageEvent> create(const AtomicString&, const StorageEve ntInit&);
55 virtual ~StorageEvent(); 54 virtual ~StorageEvent();
56 55
57 const String& key() const { return m_key; } 56 const String& key() const { return m_key; }
(...skipping 20 matching lines...) Expand all
78 String m_key; 77 String m_key;
79 String m_oldValue; 78 String m_oldValue;
80 String m_newValue; 79 String m_newValue;
81 String m_url; 80 String m_url;
82 RefPtrWillBePersistent<Storage> m_storageArea; 81 RefPtrWillBePersistent<Storage> m_storageArea;
83 }; 82 };
84 83
85 } // namespace WebCore 84 } // namespace WebCore
86 85
87 #endif // StorageEvent_h 86 #endif // StorageEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698