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

Side by Side Diff: Source/web/WebEmbeddedWorkerImpl.h

Issue 413993002: LeakDetector: Terminate all WebEmbeddedWorkerImpl before counting (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rename set Created 6 years, 5 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 | « no previous file | Source/web/WebEmbeddedWorkerImpl.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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 class WebEmbeddedWorkerImpl FINAL : 50 class WebEmbeddedWorkerImpl FINAL :
51 public WebEmbeddedWorker, 51 public WebEmbeddedWorker,
52 public WebFrameClient { 52 public WebFrameClient {
53 WTF_MAKE_NONCOPYABLE(WebEmbeddedWorkerImpl); 53 WTF_MAKE_NONCOPYABLE(WebEmbeddedWorkerImpl);
54 public: 54 public:
55 WebEmbeddedWorkerImpl( 55 WebEmbeddedWorkerImpl(
56 PassOwnPtr<WebServiceWorkerContextClient>, 56 PassOwnPtr<WebServiceWorkerContextClient>,
57 PassOwnPtr<WebWorkerPermissionClientProxy>); 57 PassOwnPtr<WebWorkerPermissionClientProxy>);
58 virtual ~WebEmbeddedWorkerImpl(); 58 virtual ~WebEmbeddedWorkerImpl();
59 59
60 static void terminateAll();
michaeln 2014/07/25 19:54:00 maybe add a comment about how upon return shutdown
61
60 // WebEmbeddedWorker overrides. 62 // WebEmbeddedWorker overrides.
61 virtual void startWorkerContext(const WebEmbeddedWorkerStartData&) OVERRIDE; 63 virtual void startWorkerContext(const WebEmbeddedWorkerStartData&) OVERRIDE;
62 virtual void resumeAfterDownload() OVERRIDE; 64 virtual void resumeAfterDownload() OVERRIDE;
63 virtual void terminateWorkerContext() OVERRIDE; 65 virtual void terminateWorkerContext() OVERRIDE;
64 virtual void resumeWorkerContext() OVERRIDE; 66 virtual void resumeWorkerContext() OVERRIDE;
65 virtual void attachDevTools() OVERRIDE; 67 virtual void attachDevTools() OVERRIDE;
66 virtual void reattachDevTools(const WebString& savedState) OVERRIDE; 68 virtual void reattachDevTools(const WebString& savedState) OVERRIDE;
67 virtual void detachDevTools() OVERRIDE; 69 virtual void detachDevTools() OVERRIDE;
68 virtual void dispatchDevToolsMessage(const WebString&) OVERRIDE; 70 virtual void dispatchDevToolsMessage(const WebString&) OVERRIDE;
69 71
70
71 private: 72 private:
72 class Loader; 73 class Loader;
73 class LoaderProxy; 74 class LoaderProxy;
74 75
75 void prepareShadowPageForLoader(); 76 void prepareShadowPageForLoader();
76 77
77 // WebFrameClient overrides. 78 // WebFrameClient overrides.
78 virtual void willSendRequest( 79 virtual void willSendRequest(
79 WebLocalFrame*, unsigned identifier, WebURLRequest&, 80 WebLocalFrame*, unsigned identifier, WebURLRequest&,
80 const WebURLResponse& redirectResponse) OVERRIDE; 81 const WebURLResponse& redirectResponse) OVERRIDE;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 enum { 115 enum {
115 DontPauseAfterDownload, 116 DontPauseAfterDownload,
116 DoPauseAfterDownload, 117 DoPauseAfterDownload,
117 IsPausedAfterDownload 118 IsPausedAfterDownload
118 } m_pauseAfterDownloadState; 119 } m_pauseAfterDownloadState;
119 }; 120 };
120 121
121 } // namespace blink 122 } // namespace blink
122 123
123 #endif // WebEmbeddedWorkerImpl_h 124 #endif // WebEmbeddedWorkerImpl_h
OLDNEW
« no previous file with comments | « no previous file | Source/web/WebEmbeddedWorkerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698