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

Side by Side Diff: Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp

Issue 1262943002: Move ServiceWorker public headers to public/{web,platform}/modules/serviceworker (1/3) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased 2 Created 5 years, 4 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 #include "modules/serviceworkers/ServiceWorkerClients.h" 51 #include "modules/serviceworkers/ServiceWorkerClients.h"
52 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h" 52 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h"
53 #include "modules/serviceworkers/ServiceWorkerRegistration.h" 53 #include "modules/serviceworkers/ServiceWorkerRegistration.h"
54 #include "modules/serviceworkers/ServiceWorkerScriptCachedMetadataHandler.h" 54 #include "modules/serviceworkers/ServiceWorkerScriptCachedMetadataHandler.h"
55 #include "modules/serviceworkers/ServiceWorkerThread.h" 55 #include "modules/serviceworkers/ServiceWorkerThread.h"
56 #include "modules/serviceworkers/WaitUntilObserver.h" 56 #include "modules/serviceworkers/WaitUntilObserver.h"
57 #include "platform/network/ResourceRequest.h" 57 #include "platform/network/ResourceRequest.h"
58 #include "platform/weborigin/DatabaseIdentifier.h" 58 #include "platform/weborigin/DatabaseIdentifier.h"
59 #include "platform/weborigin/KURL.h" 59 #include "platform/weborigin/KURL.h"
60 #include "public/platform/Platform.h" 60 #include "public/platform/Platform.h"
61 #include "public/platform/WebServiceWorkerSkipWaitingCallbacks.h"
62 #include "public/platform/WebURL.h" 61 #include "public/platform/WebURL.h"
62 #include "public/platform/modules/serviceworker/WebServiceWorkerSkipWaitingCallb acks.h"
63 #include "wtf/CurrentTime.h" 63 #include "wtf/CurrentTime.h"
64 64
65 namespace blink { 65 namespace blink {
66 66
67 class ServiceWorkerGlobalScope::SkipWaitingCallback final : public WebServiceWor kerSkipWaitingCallbacks { 67 class ServiceWorkerGlobalScope::SkipWaitingCallback final : public WebServiceWor kerSkipWaitingCallbacks {
68 WTF_MAKE_NONCOPYABLE(SkipWaitingCallback); 68 WTF_MAKE_NONCOPYABLE(SkipWaitingCallback);
69 public: 69 public:
70 explicit SkipWaitingCallback(ScriptPromiseResolver* resolver) 70 explicit SkipWaitingCallback(ScriptPromiseResolver* resolver)
71 : m_resolver(resolver) { } 71 : m_resolver(resolver) { }
72 ~SkipWaitingCallback() { } 72 ~SkipWaitingCallback() { }
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 } 236 }
237 237
238 void ServiceWorkerGlobalScope::scriptLoaded(size_t scriptSize, size_t cachedMeta dataSize) 238 void ServiceWorkerGlobalScope::scriptLoaded(size_t scriptSize, size_t cachedMeta dataSize)
239 { 239 {
240 ++m_scriptCount; 240 ++m_scriptCount;
241 m_scriptTotalSize += scriptSize; 241 m_scriptTotalSize += scriptSize;
242 m_scriptCachedMetadataTotalSize += cachedMetadataSize; 242 m_scriptCachedMetadataTotalSize += cachedMetadataSize;
243 } 243 }
244 244
245 } // namespace blink 245 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerError.h ('k') | Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698