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

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

Issue 2535093003: Worker: Connect UseCounter to workers and worklets (Closed)
Patch Set: remove 'const' qualifiers Created 4 years 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 bool hasFetchEventHandler() override; 113 bool hasFetchEventHandler() override;
114 void onNavigationPreloadResponse( 114 void onNavigationPreloadResponse(
115 int fetchEventID, 115 int fetchEventID,
116 std::unique_ptr<WebServiceWorkerResponse>, 116 std::unique_ptr<WebServiceWorkerResponse>,
117 std::unique_ptr<WebDataConsumerHandle>) override; 117 std::unique_ptr<WebDataConsumerHandle>) override;
118 void onNavigationPreloadError( 118 void onNavigationPreloadError(
119 int fetchEventID, 119 int fetchEventID,
120 std::unique_ptr<WebServiceWorkerError>) override; 120 std::unique_ptr<WebServiceWorkerError>) override;
121 121
122 // WorkerReportingProxy overrides: 122 // WorkerReportingProxy overrides:
123 void countFeature(UseCounter::Feature) override;
124 void countDeprecation(UseCounter::Feature) override;
123 void reportException(const String& errorMessage, 125 void reportException(const String& errorMessage,
124 std::unique_ptr<SourceLocation>, 126 std::unique_ptr<SourceLocation>,
125 int exceptionId) override; 127 int exceptionId) override;
126 void reportConsoleMessage(MessageSource, 128 void reportConsoleMessage(MessageSource,
127 MessageLevel, 129 MessageLevel,
128 const String& message, 130 const String& message,
129 SourceLocation*) override; 131 SourceLocation*) override;
130 void postMessageToPageInspector(const String&) override; 132 void postMessageToPageInspector(const String&) override;
131 ParentFrameTaskRunners* getParentFrameTaskRunners() override; 133 ParentFrameTaskRunners* getParentFrameTaskRunners() override;
132 void didCreateWorkerGlobalScope(WorkerOrWorkletGlobalScope*) override; 134 void didCreateWorkerGlobalScope(WorkerOrWorkletGlobalScope*) override;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 HeapHashMap<int, Member<FetchEvent>> m_pendingPreloadFetchEvents; 170 HeapHashMap<int, Member<FetchEvent>> m_pendingPreloadFetchEvents;
169 171
170 WebServiceWorkerContextClient* m_client; 172 WebServiceWorkerContextClient* m_client;
171 173
172 CrossThreadPersistent<ServiceWorkerGlobalScope> m_workerGlobalScope; 174 CrossThreadPersistent<ServiceWorkerGlobalScope> m_workerGlobalScope;
173 }; 175 };
174 176
175 } // namespace blink 177 } // namespace blink
176 178
177 #endif // ServiceWorkerGlobalScopeProxy_h 179 #endif // ServiceWorkerGlobalScopeProxy_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698