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

Side by Side Diff: Source/bindings/v8/WorkerScriptDebugServer.h

Issue 207103003: Add *explicit* keyword to avoid implicit type conversion (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated Created 6 years, 9 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
« no previous file with comments | « no previous file | Source/core/css/RemoteFontFaceSource.h » ('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) 2011 Google Inc. All rights reserved. 2 * Copyright (c) 2011 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 27 matching lines...) Expand all
38 } 38 }
39 39
40 namespace WebCore { 40 namespace WebCore {
41 41
42 class WorkerGlobalScope; 42 class WorkerGlobalScope;
43 class WorkerThread; 43 class WorkerThread;
44 44
45 class WorkerScriptDebugServer FINAL : public ScriptDebugServer { 45 class WorkerScriptDebugServer FINAL : public ScriptDebugServer {
46 WTF_MAKE_NONCOPYABLE(WorkerScriptDebugServer); 46 WTF_MAKE_NONCOPYABLE(WorkerScriptDebugServer);
47 public: 47 public:
48 WorkerScriptDebugServer(WorkerGlobalScope*); 48 explicit WorkerScriptDebugServer(WorkerGlobalScope*);
49 virtual ~WorkerScriptDebugServer() { } 49 virtual ~WorkerScriptDebugServer() { }
50 50
51 void addListener(ScriptDebugListener*); 51 void addListener(ScriptDebugListener*);
52 void removeListener(ScriptDebugListener*); 52 void removeListener(ScriptDebugListener*);
53 53
54 void interruptAndRunTask(PassOwnPtr<Task>); 54 void interruptAndRunTask(PassOwnPtr<Task>);
55 55
56 private: 56 private:
57 virtual ScriptDebugListener* getDebugListenerForContext(v8::Handle<v8::Conte xt>) OVERRIDE; 57 virtual ScriptDebugListener* getDebugListenerForContext(v8::Handle<v8::Conte xt>) OVERRIDE;
58 virtual void runMessageLoopOnPause(v8::Handle<v8::Context>) OVERRIDE; 58 virtual void runMessageLoopOnPause(v8::Handle<v8::Context>) OVERRIDE;
59 virtual void quitMessageLoopOnPause() OVERRIDE; 59 virtual void quitMessageLoopOnPause() OVERRIDE;
60 60
61 typedef HashMap<WorkerGlobalScope*, ScriptDebugListener*> ListenersMap; 61 typedef HashMap<WorkerGlobalScope*, ScriptDebugListener*> ListenersMap;
62 ScriptDebugListener* m_listener; 62 ScriptDebugListener* m_listener;
63 WorkerGlobalScope* m_workerGlobalScope; 63 WorkerGlobalScope* m_workerGlobalScope;
64 }; 64 };
65 65
66 } // namespace WebCore 66 } // namespace WebCore
67 67
68 #endif // WorkerScriptDebugServer_h 68 #endif // WorkerScriptDebugServer_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/css/RemoteFontFaceSource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698