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

Side by Side Diff: Source/core/workers/DedicatedWorkerGlobalScope.h

Issue 342103003: Support UseCounter in dedicated workers. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Support countDeprecation Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/frame/UseCounter.cpp ('k') | Source/core/workers/DedicatedWorkerGlobalScope.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 30 matching lines...) Expand all
41 class DedicatedWorkerThread; 41 class DedicatedWorkerThread;
42 class WorkerThreadStartupData; 42 class WorkerThreadStartupData;
43 43
44 class DedicatedWorkerGlobalScope FINAL : public WorkerGlobalScope { 44 class DedicatedWorkerGlobalScope FINAL : public WorkerGlobalScope {
45 public: 45 public:
46 typedef WorkerGlobalScope Base; 46 typedef WorkerGlobalScope Base;
47 static PassRefPtrWillBeRawPtr<DedicatedWorkerGlobalScope> create(DedicatedWo rkerThread*, PassOwnPtrWillBeRawPtr<WorkerThreadStartupData>, double timeOrigin) ; 47 static PassRefPtrWillBeRawPtr<DedicatedWorkerGlobalScope> create(DedicatedWo rkerThread*, PassOwnPtrWillBeRawPtr<WorkerThreadStartupData>, double timeOrigin) ;
48 virtual ~DedicatedWorkerGlobalScope(); 48 virtual ~DedicatedWorkerGlobalScope();
49 49
50 virtual bool isDedicatedWorkerGlobalScope() const OVERRIDE { return true; } 50 virtual bool isDedicatedWorkerGlobalScope() const OVERRIDE { return true; }
51 virtual void countFeature(UseCounter::Feature) const OVERRIDE;
52 virtual void countDeprecation(UseCounter::Feature) const OVERRIDE;
51 53
52 // Overridden to allow us to check our pending activity after executing impo rted script. 54 // Overridden to allow us to check our pending activity after executing impo rted script.
53 virtual void importScripts(const Vector<String>& urls, ExceptionState&) OVER RIDE; 55 virtual void importScripts(const Vector<String>& urls, ExceptionState&) OVER RIDE;
54 56
55 // EventTarget 57 // EventTarget
56 virtual const AtomicString& interfaceName() const OVERRIDE; 58 virtual const AtomicString& interfaceName() const OVERRIDE;
57 59
58 void postMessage(PassRefPtr<SerializedScriptValue>, const MessagePortArray*, ExceptionState&); 60 void postMessage(PassRefPtr<SerializedScriptValue>, const MessagePortArray*, ExceptionState&);
59 61
60 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); 62 DEFINE_ATTRIBUTE_EVENT_LISTENER(message);
61 63
62 DedicatedWorkerThread* thread(); 64 DedicatedWorkerThread* thread() const;
63 65
64 virtual void trace(Visitor*) OVERRIDE; 66 virtual void trace(Visitor*) OVERRIDE;
65 67
66 private: 68 private:
67 DedicatedWorkerGlobalScope(const KURL&, const String& userAgent, DedicatedWo rkerThread*, double timeOrigin, PassOwnPtrWillBeRawPtr<WorkerClients>); 69 DedicatedWorkerGlobalScope(const KURL&, const String& userAgent, DedicatedWo rkerThread*, double timeOrigin, PassOwnPtrWillBeRawPtr<WorkerClients>);
68 }; 70 };
69 71
70 } // namespace WebCore 72 } // namespace WebCore
71 73
72 #endif // DedicatedWorkerGlobalScope_h 74 #endif // DedicatedWorkerGlobalScope_h
OLDNEW
« no previous file with comments | « Source/core/frame/UseCounter.cpp ('k') | Source/core/workers/DedicatedWorkerGlobalScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698