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

Side by Side Diff: Source/modules/quota/DurableStorageController.h

Issue 1154573005: Expose Durable Storage API to script (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: uploaded the test results Created 5 years, 6 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
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef DurableStorageController_h
6 #define DurableStorageController_h
7
8 #include "core/frame/LocalFrameLifecycleObserver.h"
9 #include "modules/ModulesExport.h"
10 #include "platform/Supplementable.h"
11
12 namespace blink {
13
14 class WebDurableStorageDispatcher;
15
16 class MODULES_EXPORT DurableStorageController final
17 : public NoBaseWillBeGarbageCollectedFinalized<DurableStorageController>
18 , public WillBeHeapSupplement<LocalFrame>
19 , public LocalFrameLifecycleObserver {
20 WTF_MAKE_NONCOPYABLE(DurableStorageController);
21 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DurableStorageController);
dgrogan 2015/06/19 22:34:07 This was all cargo culted.
22 public:
23 virtual ~DurableStorageController();
24
25 static void provideTo(LocalFrame&, WebDurableStorageDispatcher*);
26 static DurableStorageController* from(LocalFrame&);
27 static const char* supplementName();
28
29 WebDurableStorageDispatcher* client() const;
30
31 DECLARE_VIRTUAL_TRACE();
32
33 private:
34 DurableStorageController(LocalFrame&, WebDurableStorageDispatcher*);
35
36 // Inherited from LocalFrameLifecycleObserver.
37 virtual void willDetachFrameHost() override;
38
39 WebDurableStorageDispatcher* m_client;
40 };
41
42 } // namespace blink
43
44 #endif // DurableStorageController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698