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

Side by Side Diff: third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.h

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 19 matching lines...) Expand all
30 30
31 #ifndef ServiceWorkerGlobalScopeProxy_h 31 #ifndef ServiceWorkerGlobalScopeProxy_h
32 #define ServiceWorkerGlobalScopeProxy_h 32 #define ServiceWorkerGlobalScopeProxy_h
33 33
34 #include "core/workers/WorkerReportingProxy.h" 34 #include "core/workers/WorkerReportingProxy.h"
35 #include "platform/heap/Handle.h" 35 #include "platform/heap/Handle.h"
36 #include "platform/weborigin/KURL.h" 36 #include "platform/weborigin/KURL.h"
37 #include "public/platform/WebString.h" 37 #include "public/platform/WebString.h"
38 #include "public/web/modules/serviceworker/WebServiceWorkerContextProxy.h" 38 #include "public/web/modules/serviceworker/WebServiceWorkerContextProxy.h"
39 #include "wtf/Forward.h" 39 #include "wtf/Forward.h"
40 #include <memory> 40 #include "wtf/OwnPtr.h"
41 41
42 namespace blink { 42 namespace blink {
43 43
44 class ConsoleMessage; 44 class ConsoleMessage;
45 class Document; 45 class Document;
46 class ServiceWorkerGlobalScope; 46 class ServiceWorkerGlobalScope;
47 class WebEmbeddedWorkerImpl; 47 class WebEmbeddedWorkerImpl;
48 class WebServiceWorkerContextClient; 48 class WebServiceWorkerContextClient;
49 class WebServiceWorkerRequest; 49 class WebServiceWorkerRequest;
50 50
(...skipping 26 matching lines...) Expand all
77 void dispatchFetchEvent(int, const WebServiceWorkerRequest&) override; 77 void dispatchFetchEvent(int, const WebServiceWorkerRequest&) override;
78 void dispatchForeignFetchEvent(int, const WebServiceWorkerRequest&) override ; 78 void dispatchForeignFetchEvent(int, const WebServiceWorkerRequest&) override ;
79 void dispatchInstallEvent(int) override; 79 void dispatchInstallEvent(int) override;
80 void dispatchNotificationClickEvent(int, int64_t notificationID, const WebNo tificationData&, int actionIndex) override; 80 void dispatchNotificationClickEvent(int, int64_t notificationID, const WebNo tificationData&, int actionIndex) override;
81 void dispatchNotificationCloseEvent(int, int64_t notificationID, const WebNo tificationData&) override; 81 void dispatchNotificationCloseEvent(int, int64_t notificationID, const WebNo tificationData&) override;
82 void dispatchPushEvent(int, const WebString& data) override; 82 void dispatchPushEvent(int, const WebString& data) override;
83 void dispatchSyncEvent(int, const WebString& tag, LastChanceOption) override ; 83 void dispatchSyncEvent(int, const WebString& tag, LastChanceOption) override ;
84 bool hasFetchEventHandler() override; 84 bool hasFetchEventHandler() override;
85 85
86 // WorkerReportingProxy overrides: 86 // WorkerReportingProxy overrides:
87 void reportException(const String& errorMessage, std::unique_ptr<SourceLocat ion>) override; 87 void reportException(const String& errorMessage, PassOwnPtr<SourceLocation>) override;
88 void reportConsoleMessage(ConsoleMessage*) override; 88 void reportConsoleMessage(ConsoleMessage*) override;
89 void postMessageToPageInspector(const String&) override; 89 void postMessageToPageInspector(const String&) override;
90 void postWorkerConsoleAgentEnabled() override { } 90 void postWorkerConsoleAgentEnabled() override { }
91 void didEvaluateWorkerScript(bool success) override; 91 void didEvaluateWorkerScript(bool success) override;
92 void didInitializeWorkerContext() override; 92 void didInitializeWorkerContext() override;
93 void workerGlobalScopeStarted(WorkerGlobalScope*) override; 93 void workerGlobalScopeStarted(WorkerGlobalScope*) override;
94 void workerGlobalScopeClosed() override; 94 void workerGlobalScopeClosed() override;
95 void willDestroyWorkerGlobalScope() override; 95 void willDestroyWorkerGlobalScope() override;
96 void workerThreadTerminated() override; 96 void workerThreadTerminated() override;
97 97
(...skipping 19 matching lines...) Expand all
117 Member<Document> m_document; 117 Member<Document> m_document;
118 118
119 WebServiceWorkerContextClient* m_client; 119 WebServiceWorkerContextClient* m_client;
120 120
121 Member<ServiceWorkerGlobalScope> m_workerGlobalScope; 121 Member<ServiceWorkerGlobalScope> m_workerGlobalScope;
122 }; 122 };
123 123
124 } // namespace blink 124 } // namespace blink
125 125
126 #endif // ServiceWorkerGlobalScopeProxy_h 126 #endif // ServiceWorkerGlobalScopeProxy_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698