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

Side by Side Diff: Source/core/loader/FrameLoaderClient.h

Issue 1216093003: Service Worker: Migrate to version_uuid and surface ServiceWorker.id. (Blink 1/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 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/FrameFetchContext.cpp ('k') | Source/modules/serviceworkers/ServiceWorker.h » ('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) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2012 Google 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 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 208
209 // If an HTML document is being loaded, informs the embedder that the do cument will have its <body> attached soon. 209 // If an HTML document is being loaded, informs the embedder that the do cument will have its <body> attached soon.
210 virtual void dispatchWillInsertBody() { } 210 virtual void dispatchWillInsertBody() { }
211 211
212 virtual void dispatchDidChangeResourcePriority(unsigned long identifier, ResourceLoadPriority, int intraPriorityValue) { } 212 virtual void dispatchDidChangeResourcePriority(unsigned long identifier, ResourceLoadPriority, int intraPriorityValue) { }
213 213
214 virtual PassOwnPtr<WebServiceWorkerProvider> createServiceWorkerProvider () = 0; 214 virtual PassOwnPtr<WebServiceWorkerProvider> createServiceWorkerProvider () = 0;
215 215
216 virtual bool isControlledByServiceWorker(DocumentLoader&) = 0; 216 virtual bool isControlledByServiceWorker(DocumentLoader&) = 0;
217 217
218 virtual int64_t serviceWorkerID(DocumentLoader&) = 0; 218 virtual std::string serviceWorkerID(DocumentLoader&) = 0;
219 219
220 virtual SharedWorkerRepositoryClient* sharedWorkerRepositoryClient() { r eturn 0; } 220 virtual SharedWorkerRepositoryClient* sharedWorkerRepositoryClient() { r eturn 0; }
221 221
222 virtual PassOwnPtr<WebApplicationCacheHost> createApplicationCacheHost(W ebApplicationCacheHostClient*) = 0; 222 virtual PassOwnPtr<WebApplicationCacheHost> createApplicationCacheHost(W ebApplicationCacheHostClient*) = 0;
223 223
224 virtual void didStopAllLoaders() { } 224 virtual void didStopAllLoaders() { }
225 225
226 virtual void dispatchDidChangeManifest() { } 226 virtual void dispatchDidChangeManifest() { }
227 227
228 virtual void dispatchDidChangeDefaultPresentation() { } 228 virtual void dispatchDidChangeDefaultPresentation() { }
229 229
230 virtual unsigned backForwardLength() { return 0; } 230 virtual unsigned backForwardLength() { return 0; }
231 231
232 virtual bool isFrameLoaderClientImpl() const { return false; } 232 virtual bool isFrameLoaderClientImpl() const { return false; }
233 233
234 // Called when elements preventing the sudden termination of the frame 234 // Called when elements preventing the sudden termination of the frame
235 // become present or stop being present. |type| is the type of element 235 // become present or stop being present. |type| is the type of element
236 // (BeforeUnload handler, Unload handler). 236 // (BeforeUnload handler, Unload handler).
237 enum SuddenTerminationDisablerType { 237 enum SuddenTerminationDisablerType {
238 BeforeUnloadHandler, 238 BeforeUnloadHandler,
239 UnloadHandler, 239 UnloadHandler,
240 }; 240 };
241 virtual void suddenTerminationDisablerChanged(bool present, SuddenTermin ationDisablerType) { } 241 virtual void suddenTerminationDisablerChanged(bool present, SuddenTermin ationDisablerType) { }
242 242
243 }; 243 };
244 244
245 } // namespace blink 245 } // namespace blink
246 246
247 #endif // FrameLoaderClient_h 247 #endif // FrameLoaderClient_h
OLDNEW
« no previous file with comments | « Source/core/loader/FrameFetchContext.cpp ('k') | Source/modules/serviceworkers/ServiceWorker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698