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

Side by Side Diff: Source/core/workers/SharedWorker.cpp

Issue 14070021: Rename 'UseCounter::observe' to 'UseCounter::count'. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaseline. Created 7 years, 8 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/svg/SVGTRefElement.cpp ('k') | Source/core/workers/Worker.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 * Copyright (C) 2010 Apple Inc. All rights reserved. 3 * Copyright (C) 2010 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 namespace WebCore { 48 namespace WebCore {
49 49
50 inline SharedWorker::SharedWorker(ScriptExecutionContext* context) 50 inline SharedWorker::SharedWorker(ScriptExecutionContext* context)
51 : AbstractWorker(context) 51 : AbstractWorker(context)
52 { 52 {
53 } 53 }
54 54
55 PassRefPtr<SharedWorker> SharedWorker::create(ScriptExecutionContext* context, c onst String& url, const String& name, ExceptionCode& ec) 55 PassRefPtr<SharedWorker> SharedWorker::create(ScriptExecutionContext* context, c onst String& url, const String& name, ExceptionCode& ec)
56 { 56 {
57 ASSERT(isMainThread()); 57 ASSERT(isMainThread());
58 UseCounter::observe(static_cast<Document*>(context)->domWindow(), UseCounter ::SharedWorkerStart); 58 UseCounter::count(static_cast<Document*>(context)->domWindow(), UseCounter:: SharedWorkerStart);
59 59
60 RefPtr<SharedWorker> worker = adoptRef(new SharedWorker(context)); 60 RefPtr<SharedWorker> worker = adoptRef(new SharedWorker(context));
61 61
62 RefPtr<MessageChannel> channel = MessageChannel::create(context); 62 RefPtr<MessageChannel> channel = MessageChannel::create(context);
63 worker->m_port = channel->port1(); 63 worker->m_port = channel->port1();
64 OwnPtr<MessagePortChannel> remotePort = channel->port2()->disentangle(); 64 OwnPtr<MessagePortChannel> remotePort = channel->port2()->disentangle();
65 ASSERT(remotePort); 65 ASSERT(remotePort);
66 66
67 worker->suspendIfNeeded(); 67 worker->suspendIfNeeded();
68 68
(...skipping 19 matching lines...) Expand all
88 } 88 }
89 89
90 const AtomicString& SharedWorker::interfaceName() const 90 const AtomicString& SharedWorker::interfaceName() const
91 { 91 {
92 return eventNames().interfaceForSharedWorker; 92 return eventNames().interfaceForSharedWorker;
93 } 93 }
94 94
95 } // namespace WebCore 95 } // namespace WebCore
96 96
97 #endif // ENABLE(SHARED_WORKERS) 97 #endif // ENABLE(SHARED_WORKERS)
OLDNEW
« no previous file with comments | « Source/core/svg/SVGTRefElement.cpp ('k') | Source/core/workers/Worker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698