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

Side by Side Diff: Source/web/WebLocalFrameImpl.cpp

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
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 #include "core/paint/ScopeRecorder.h" 151 #include "core/paint/ScopeRecorder.h"
152 #include "core/paint/TransformRecorder.h" 152 #include "core/paint/TransformRecorder.h"
153 #include "core/timing/DOMWindowPerformance.h" 153 #include "core/timing/DOMWindowPerformance.h"
154 #include "core/timing/Performance.h" 154 #include "core/timing/Performance.h"
155 #include "modules/app_banner/AppBannerController.h" 155 #include "modules/app_banner/AppBannerController.h"
156 #include "modules/geolocation/GeolocationController.h" 156 #include "modules/geolocation/GeolocationController.h"
157 #include "modules/notifications/NotificationPermissionClient.h" 157 #include "modules/notifications/NotificationPermissionClient.h"
158 #include "modules/permissions/PermissionController.h" 158 #include "modules/permissions/PermissionController.h"
159 #include "modules/presentation/PresentationController.h" 159 #include "modules/presentation/PresentationController.h"
160 #include "modules/push_messaging/PushController.h" 160 #include "modules/push_messaging/PushController.h"
161 #include "modules/quota/DurableStorageController.h"
161 #include "modules/screen_orientation/ScreenOrientationController.h" 162 #include "modules/screen_orientation/ScreenOrientationController.h"
162 #include "modules/vr/VRController.h" 163 #include "modules/vr/VRController.h"
163 #include "platform/ScriptForbiddenScope.h" 164 #include "platform/ScriptForbiddenScope.h"
164 #include "platform/TraceEvent.h" 165 #include "platform/TraceEvent.h"
165 #include "platform/UserGestureIndicator.h" 166 #include "platform/UserGestureIndicator.h"
166 #include "platform/clipboard/ClipboardUtilities.h" 167 #include "platform/clipboard/ClipboardUtilities.h"
167 #include "platform/fonts/FontCache.h" 168 #include "platform/fonts/FontCache.h"
168 #include "platform/graphics/GraphicsContext.h" 169 #include "platform/graphics/GraphicsContext.h"
169 #include "platform/graphics/GraphicsLayerClient.h" 170 #include "platform/graphics/GraphicsLayerClient.h"
170 #include "platform/graphics/paint/ClipRecorder.h" 171 #include "platform/graphics/paint/ClipRecorder.h"
(...skipping 1513 matching lines...) Expand 10 before | Expand all | Expand 10 after
1684 if (m_client) 1685 if (m_client)
1685 providePushControllerTo(*m_frame, m_client->pushClient()); 1686 providePushControllerTo(*m_frame, m_client->pushClient());
1686 1687
1687 provideNotificationPermissionClientTo(*m_frame, NotificationPermissionCl ientImpl::create()); 1688 provideNotificationPermissionClientTo(*m_frame, NotificationPermissionCl ientImpl::create());
1688 provideUserMediaTo(*m_frame, &m_userMediaClientImpl); 1689 provideUserMediaTo(*m_frame, &m_userMediaClientImpl);
1689 provideGeolocationTo(*m_frame, m_geolocationClientProxy.get()); 1690 provideGeolocationTo(*m_frame, m_geolocationClientProxy.get());
1690 m_geolocationClientProxy->setController(GeolocationController::from(m_fr ame.get())); 1691 m_geolocationClientProxy->setController(GeolocationController::from(m_fr ame.get()));
1691 provideMIDITo(*m_frame, MIDIClientProxy::create(m_client ? m_client->web MIDIClient() : nullptr)); 1692 provideMIDITo(*m_frame, MIDIClientProxy::create(m_client ? m_client->web MIDIClient() : nullptr));
1692 provideLocalFileSystemTo(*m_frame, LocalFileSystemClient::create()); 1693 provideLocalFileSystemTo(*m_frame, LocalFileSystemClient::create());
1693 1694
1695 DurableStorageController::provideTo(*m_frame, m_client ? m_client->durab leStorageDispatcher() : nullptr);
1696
1694 if (RuntimeEnabledFeatures::screenOrientationEnabled()) 1697 if (RuntimeEnabledFeatures::screenOrientationEnabled())
1695 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client ->webScreenOrientationClient() : nullptr); 1698 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client ->webScreenOrientationClient() : nullptr);
1696 if (RuntimeEnabledFeatures::presentationEnabled()) 1699 if (RuntimeEnabledFeatures::presentationEnabled())
1697 PresentationController::provideTo(*m_frame, m_client ? m_client->pre sentationClient() : nullptr); 1700 PresentationController::provideTo(*m_frame, m_client ? m_client->pre sentationClient() : nullptr);
1698 if (RuntimeEnabledFeatures::permissionsEnabled()) 1701 if (RuntimeEnabledFeatures::permissionsEnabled())
1699 PermissionController::provideTo(*m_frame, m_client ? m_client->permi ssionClient() : nullptr); 1702 PermissionController::provideTo(*m_frame, m_client ? m_client->permi ssionClient() : nullptr);
1700 if (RuntimeEnabledFeatures::webVREnabled()) 1703 if (RuntimeEnabledFeatures::webVREnabled())
1701 VRController::provideTo(*m_frame, m_client ? m_client->webVRClient() : nullptr); 1704 VRController::provideTo(*m_frame, m_client ? m_client->webVRClient() : nullptr);
1702 } 1705 }
1703 } 1706 }
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
2164 { 2167 {
2165 m_frameWidget = frameWidget; 2168 m_frameWidget = frameWidget;
2166 } 2169 }
2167 2170
2168 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const 2171 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const
2169 { 2172 {
2170 return m_frameWidget; 2173 return m_frameWidget;
2171 } 2174 }
2172 2175
2173 } // namespace blink 2176 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698