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

Side by Side Diff: third_party/WebKit/Source/core/workers/WorkerGlobalScope.h

Issue 2857583003: Worker: Avoid sending IPC messages for features already counted (Closed)
Patch Set: wip Created 3 years, 7 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) 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 const KURL& script_url, 77 const KURL& script_url,
78 const Vector<char>* meta_data) { 78 const Vector<char>* meta_data) {
79 return nullptr; 79 return nullptr;
80 } 80 }
81 81
82 KURL CompleteURL(const String&) const; 82 KURL CompleteURL(const String&) const;
83 83
84 // WorkerOrWorkletGlobalScope 84 // WorkerOrWorkletGlobalScope
85 bool IsClosing() const final { return closing_; } 85 bool IsClosing() const final { return closing_; }
86 virtual void Dispose(); 86 virtual void Dispose();
87 void CountFeature(UseCounter::Feature) final; 87 void ReportFeature(UseCounter::Feature) final;
88 void CountDeprecation(UseCounter::Feature) final; 88 void ReportDeprecation(UseCounter::Feature) final;
89 WorkerThread* GetThread() const final { return thread_; } 89 WorkerThread* GetThread() const final { return thread_; }
90 90
91 void ExceptionUnhandled(int exception_id); 91 void ExceptionUnhandled(int exception_id);
92 92
93 void RegisterEventListener(V8AbstractEventListener*); 93 void RegisterEventListener(V8AbstractEventListener*);
94 void DeregisterEventListener(V8AbstractEventListener*); 94 void DeregisterEventListener(V8AbstractEventListener*);
95 95
96 // WorkerGlobalScope 96 // WorkerGlobalScope
97 WorkerGlobalScope* self() { return this; } 97 WorkerGlobalScope* self() { return this; }
98 WorkerLocation* location() const; 98 WorkerLocation* location() const;
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 218
219 DEFINE_TYPE_CASTS(WorkerGlobalScope, 219 DEFINE_TYPE_CASTS(WorkerGlobalScope,
220 ExecutionContext, 220 ExecutionContext,
221 context, 221 context,
222 context->IsWorkerGlobalScope(), 222 context->IsWorkerGlobalScope(),
223 context.IsWorkerGlobalScope()); 223 context.IsWorkerGlobalScope());
224 224
225 } // namespace blink 225 } // namespace blink
226 226
227 #endif // WorkerGlobalScope_h 227 #endif // WorkerGlobalScope_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698