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

Side by Side Diff: third_party/WebKit/Source/web/WebSharedWorkerImpl.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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // then call the supplied WebCommonWorkerClient. 67 // then call the supplied WebCommonWorkerClient.
68 class WebSharedWorkerImpl final : public WorkerReportingProxy, 68 class WebSharedWorkerImpl final : public WorkerReportingProxy,
69 public WebFrameClient, 69 public WebFrameClient,
70 public WebSharedWorker, 70 public WebSharedWorker,
71 public WebDevToolsAgentClient, 71 public WebDevToolsAgentClient,
72 private WorkerLoaderProxyProvider { 72 private WorkerLoaderProxyProvider {
73 public: 73 public:
74 explicit WebSharedWorkerImpl(WebSharedWorkerClient*); 74 explicit WebSharedWorkerImpl(WebSharedWorkerClient*);
75 75
76 // WorkerReportingProxy methods: 76 // WorkerReportingProxy methods:
77 void countFeature(UseCounter::Feature) override;
78 void countDeprecation(UseCounter::Feature) override;
77 void reportException(const WTF::String&, 79 void reportException(const WTF::String&,
78 std::unique_ptr<SourceLocation>, 80 std::unique_ptr<SourceLocation>,
79 int exceptionId) override; 81 int exceptionId) override;
80 void reportConsoleMessage(MessageSource, 82 void reportConsoleMessage(MessageSource,
81 MessageLevel, 83 MessageLevel,
82 const String& message, 84 const String& message,
83 SourceLocation*) override; 85 SourceLocation*) override;
84 void postMessageToPageInspector(const WTF::String&) override; 86 void postMessageToPageInspector(const WTF::String&) override;
85 ParentFrameTaskRunners* getParentFrameTaskRunners() override; 87 ParentFrameTaskRunners* getParentFrameTaskRunners() override;
86 void didEvaluateWorkerScript(bool success) override {} 88 void didEvaluateWorkerScript(bool success) override {}
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 RefPtr<WorkerLoaderProxy> m_loaderProxy; 184 RefPtr<WorkerLoaderProxy> m_loaderProxy;
183 185
184 WebURL m_url; 186 WebURL m_url;
185 WebString m_name; 187 WebString m_name;
186 WebAddressSpace m_creationAddressSpace; 188 WebAddressSpace m_creationAddressSpace;
187 }; 189 };
188 190
189 } // namespace blink 191 } // namespace blink
190 192
191 #endif // WebSharedWorkerImpl_h 193 #endif // WebSharedWorkerImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698