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

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

Issue 546263002: [ServiceWorker] Introduce isControlledByServiceWorker() in FrameLoaderClient and WebFrameClient (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: incorporated tkent's comment Created 6 years, 3 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
« no previous file with comments | « Source/core/loader/FrameLoaderClient.h ('k') | Source/web/FrameLoaderClientImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 virtual void dispatchWillStartUsingPeerConnectionHandler(WebRTCPeerConnectio nHandler*) OVERRIDE; 151 virtual void dispatchWillStartUsingPeerConnectionHandler(WebRTCPeerConnectio nHandler*) OVERRIDE;
152 152
153 virtual void didRequestAutocomplete(HTMLFormElement*) OVERRIDE; 153 virtual void didRequestAutocomplete(HTMLFormElement*) OVERRIDE;
154 154
155 virtual bool allowWebGL(bool enabledPerSettings) OVERRIDE; 155 virtual bool allowWebGL(bool enabledPerSettings) OVERRIDE;
156 virtual void didLoseWebGLContext(int arbRobustnessContextLostReason) OVERRID E; 156 virtual void didLoseWebGLContext(int arbRobustnessContextLostReason) OVERRID E;
157 157
158 virtual void dispatchWillInsertBody() OVERRIDE; 158 virtual void dispatchWillInsertBody() OVERRIDE;
159 159
160 virtual PassOwnPtr<WebServiceWorkerProvider> createServiceWorkerProvider() O VERRIDE; 160 virtual PassOwnPtr<WebServiceWorkerProvider> createServiceWorkerProvider() O VERRIDE;
161 virtual bool isControlledByServiceWorker() OVERRIDE;
161 virtual SharedWorkerRepositoryClient* sharedWorkerRepositoryClient() OVERRID E; 162 virtual SharedWorkerRepositoryClient* sharedWorkerRepositoryClient() OVERRID E;
162 163
163 virtual PassOwnPtr<WebApplicationCacheHost> createApplicationCacheHost(WebAp plicationCacheHostClient*) OVERRIDE; 164 virtual PassOwnPtr<WebApplicationCacheHost> createApplicationCacheHost(WebAp plicationCacheHostClient*) OVERRIDE;
164 165
165 virtual void didStopAllLoaders() OVERRIDE; 166 virtual void didStopAllLoaders() OVERRIDE;
166 167
167 virtual void dispatchDidChangeManifest() OVERRIDE; 168 virtual void dispatchDidChangeManifest() OVERRIDE;
168 169
169 private: 170 private:
170 virtual bool isFrameLoaderClientImpl() const OVERRIDE { return true; } 171 virtual bool isFrameLoaderClientImpl() const OVERRIDE { return true; }
171 172
172 PassOwnPtr<WebPluginLoadObserver> pluginLoadObserver(DocumentLoader*); 173 PassOwnPtr<WebPluginLoadObserver> pluginLoadObserver(DocumentLoader*);
173 174
174 // The WebFrame that owns this object and manages its lifetime. Therefore, 175 // The WebFrame that owns this object and manages its lifetime. Therefore,
175 // the web frame object is guaranteed to exist. 176 // the web frame object is guaranteed to exist.
176 WebLocalFrameImpl* m_webFrame; 177 WebLocalFrameImpl* m_webFrame;
177 }; 178 };
178 179
179 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, FrameLoaderClient, client, client->isFr ameLoaderClientImpl(), client.isFrameLoaderClientImpl()); 180 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, FrameLoaderClient, client, client->isFr ameLoaderClientImpl(), client.isFrameLoaderClientImpl());
180 181
181 } // namespace blink 182 } // namespace blink
182 183
183 #endif 184 #endif
OLDNEW
« no previous file with comments | « Source/core/loader/FrameLoaderClient.h ('k') | Source/web/FrameLoaderClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698