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

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

Issue 270303004: Revert of Add blink-side plumbing for ServiceWorker -> Document postMessage (1/3) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 #include "core/loader/HistoryItem.h" 50 #include "core/loader/HistoryItem.h"
51 #include "core/page/Chrome.h" 51 #include "core/page/Chrome.h"
52 #include "core/page/EventHandler.h" 52 #include "core/page/EventHandler.h"
53 #include "core/page/Page.h" 53 #include "core/page/Page.h"
54 #include "core/page/WindowFeatures.h" 54 #include "core/page/WindowFeatures.h"
55 #include "core/rendering/HitTestResult.h" 55 #include "core/rendering/HitTestResult.h"
56 #include "modules/device_orientation/DeviceMotionController.h" 56 #include "modules/device_orientation/DeviceMotionController.h"
57 #include "modules/device_orientation/DeviceOrientationController.h" 57 #include "modules/device_orientation/DeviceOrientationController.h"
58 #include "modules/gamepad/NavigatorGamepad.h" 58 #include "modules/gamepad/NavigatorGamepad.h"
59 #include "modules/screen_orientation/ScreenOrientationController.h" 59 #include "modules/screen_orientation/ScreenOrientationController.h"
60 #include "modules/serviceworkers/NavigatorServiceWorker.h"
61 #include "platform/MIMETypeRegistry.h" 60 #include "platform/MIMETypeRegistry.h"
62 #include "platform/UserGestureIndicator.h" 61 #include "platform/UserGestureIndicator.h"
63 #include "platform/exported/WrappedResourceRequest.h" 62 #include "platform/exported/WrappedResourceRequest.h"
64 #include "platform/exported/WrappedResourceResponse.h" 63 #include "platform/exported/WrappedResourceResponse.h"
65 #include "platform/network/HTTPParsers.h" 64 #include "platform/network/HTTPParsers.h"
66 #include "platform/network/SocketStreamHandleInternal.h" 65 #include "platform/network/SocketStreamHandleInternal.h"
67 #include "platform/plugins/PluginData.h" 66 #include "platform/plugins/PluginData.h"
68 #include "public/platform/Platform.h" 67 #include "public/platform/Platform.h"
69 #include "public/platform/WebApplicationCacheHost.h" 68 #include "public/platform/WebApplicationCacheHost.h"
70 #include "public/platform/WebMimeRegistry.h" 69 #include "public/platform/WebMimeRegistry.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 if (document) { 120 if (document) {
122 WheelController::from(*document); 121 WheelController::from(*document);
123 if (RuntimeEnabledFeatures::deviceMotionEnabled()) 122 if (RuntimeEnabledFeatures::deviceMotionEnabled())
124 DeviceMotionController::from(*document); 123 DeviceMotionController::from(*document);
125 if (RuntimeEnabledFeatures::deviceOrientationEnabled()) 124 if (RuntimeEnabledFeatures::deviceOrientationEnabled())
126 DeviceOrientationController::from(*document); 125 DeviceOrientationController::from(*document);
127 if (RuntimeEnabledFeatures::screenOrientationEnabled()) 126 if (RuntimeEnabledFeatures::screenOrientationEnabled())
128 ScreenOrientationController::from(*document); 127 ScreenOrientationController::from(*document);
129 if (RuntimeEnabledFeatures::gamepadEnabled()) 128 if (RuntimeEnabledFeatures::gamepadEnabled())
130 NavigatorGamepad::from(*document); 129 NavigatorGamepad::from(*document);
131 if (RuntimeEnabledFeatures::serviceWorkerEnabled())
132 NavigatorServiceWorker::from(*document);
133 } 130 }
134 } 131 }
135 } 132 }
136 133
137 void FrameLoaderClientImpl::documentElementAvailable() 134 void FrameLoaderClientImpl::documentElementAvailable()
138 { 135 {
139 if (m_webFrame->client()) 136 if (m_webFrame->client())
140 m_webFrame->client()->didCreateDocumentElement(m_webFrame); 137 m_webFrame->client()->didCreateDocumentElement(m_webFrame);
141 } 138 }
142 139
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 return adoptPtr(m_webFrame->client()->createApplicationCacheHost(m_webFrame, client)); 800 return adoptPtr(m_webFrame->client()->createApplicationCacheHost(m_webFrame, client));
804 } 801 }
805 802
806 void FrameLoaderClientImpl::didStopAllLoaders() 803 void FrameLoaderClientImpl::didStopAllLoaders()
807 { 804 {
808 if (m_webFrame->client()) 805 if (m_webFrame->client())
809 m_webFrame->client()->didAbortLoading(m_webFrame); 806 m_webFrame->client()->didAbortLoading(m_webFrame);
810 } 807 }
811 808
812 } // namespace blink 809 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerContainer.cpp ('k') | public/platform/WebServiceWorkerProviderClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698