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

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

Issue 384633002: Oilpan: add transition types to remaining Fetch and ServiceWorker objects (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Another rebase Created 6 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
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 class ServiceWorkerGlobalScope FINAL : public WorkerGlobalScope { 47 class ServiceWorkerGlobalScope FINAL : public WorkerGlobalScope {
48 public: 48 public:
49 static PassRefPtrWillBeRawPtr<ServiceWorkerGlobalScope> create(ServiceWorker Thread*, PassOwnPtrWillBeRawPtr<WorkerThreadStartupData>); 49 static PassRefPtrWillBeRawPtr<ServiceWorkerGlobalScope> create(ServiceWorker Thread*, PassOwnPtrWillBeRawPtr<WorkerThreadStartupData>);
50 50
51 virtual ~ServiceWorkerGlobalScope(); 51 virtual ~ServiceWorkerGlobalScope();
52 virtual bool isServiceWorkerGlobalScope() const OVERRIDE { return true; } 52 virtual bool isServiceWorkerGlobalScope() const OVERRIDE { return true; }
53 virtual void stopFetch() OVERRIDE; 53 virtual void stopFetch() OVERRIDE;
54 54
55 // ServiceWorkerGlobalScope.idl 55 // ServiceWorkerGlobalScope.idl
56 PassRefPtr<ServiceWorkerClients> clients(); 56 PassRefPtrWillBeRawPtr<ServiceWorkerClients> clients();
57 String scope(ExecutionContext*); 57 String scope(ExecutionContext*);
58 ScriptPromise fetch(ScriptState*, Request*); 58 ScriptPromise fetch(ScriptState*, Request*);
59 ScriptPromise fetch(ScriptState*, const String&); 59 ScriptPromise fetch(ScriptState*, const String&);
60 60
61 // EventTarget 61 // EventTarget
62 virtual const AtomicString& interfaceName() const OVERRIDE; 62 virtual const AtomicString& interfaceName() const OVERRIDE;
63 63
64 DEFINE_ATTRIBUTE_EVENT_LISTENER(install); 64 DEFINE_ATTRIBUTE_EVENT_LISTENER(install);
65 DEFINE_ATTRIBUTE_EVENT_LISTENER(activate); 65 DEFINE_ATTRIBUTE_EVENT_LISTENER(activate);
66 DEFINE_ATTRIBUTE_EVENT_LISTENER(fetch); 66 DEFINE_ATTRIBUTE_EVENT_LISTENER(fetch);
67 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); 67 DEFINE_ATTRIBUTE_EVENT_LISTENER(message);
68 DEFINE_ATTRIBUTE_EVENT_LISTENER(sync); 68 DEFINE_ATTRIBUTE_EVENT_LISTENER(sync);
69 69
70 virtual void trace(Visitor*) OVERRIDE; 70 virtual void trace(Visitor*) OVERRIDE;
71 71
72 private: 72 private:
73 ServiceWorkerGlobalScope(const KURL&, const String& userAgent, ServiceWorker Thread*, double timeOrigin, PassOwnPtrWillBeRawPtr<WorkerClients>); 73 ServiceWorkerGlobalScope(const KURL&, const String& userAgent, ServiceWorker Thread*, double timeOrigin, PassOwnPtrWillBeRawPtr<WorkerClients>);
74 virtual void logExceptionToConsole(const String& errorMessage, const String& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawPtr<ScriptCallS tack>) OVERRIDE; 74 virtual void logExceptionToConsole(const String& errorMessage, const String& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawPtr<ScriptCallS tack>) OVERRIDE;
75 75
76 RefPtr<ServiceWorkerClients> m_clients; 76 RefPtrWillBeMember<ServiceWorkerClients> m_clients;
77 OwnPtr<FetchManager> m_fetchManager; 77 OwnPtr<FetchManager> m_fetchManager;
78 }; 78 };
79 79
80 } // namespace WebCore 80 } // namespace WebCore
81 81
82 #endif // ServiceWorkerGlobalScope_h 82 #endif // ServiceWorkerGlobalScope_h
OLDNEW
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerClients.idl ('k') | Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698