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

Side by Side Diff: content/browser/shared_worker/shared_worker_host.h

Issue 2249173003: Removes the references to shared workers from the all documents in being deleted frames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated nhiroki's comment Created 4 years, 3 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_HOST_H_ 5 #ifndef CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_HOST_H_
6 #define CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_HOST_H_ 6 #define CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_HOST_H_
7 7
8 #include <list> 8 #include <list>
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 // Handles the shutdown of the filter. If the worker has no other client, 51 // Handles the shutdown of the filter. If the worker has no other client,
52 // sends TerminateWorkerContext message to shut it down. 52 // sends TerminateWorkerContext message to shut it down.
53 void FilterShutdown(SharedWorkerMessageFilter* filter); 53 void FilterShutdown(SharedWorkerMessageFilter* filter);
54 54
55 // Shuts down any shared workers that are no longer referenced by active 55 // Shuts down any shared workers that are no longer referenced by active
56 // documents. 56 // documents.
57 void DocumentDetached(SharedWorkerMessageFilter* filter, 57 void DocumentDetached(SharedWorkerMessageFilter* filter,
58 unsigned long long document_id); 58 unsigned long long document_id);
59 59
60 // Removes the references to shared workers from the all documents in the
61 // renderer frame. And shuts down any shared workers that are no longer
62 // referenced by active documents.
63 void RenderFrameDetached(int render_process_id, int render_frame_id);
64
60 void WorkerContextClosed(); 65 void WorkerContextClosed();
61 void WorkerReadyForInspection(); 66 void WorkerReadyForInspection();
62 void WorkerScriptLoaded(); 67 void WorkerScriptLoaded();
63 void WorkerScriptLoadFailed(); 68 void WorkerScriptLoadFailed();
64 void WorkerConnected(int message_port_id); 69 void WorkerConnected(int message_port_id);
65 void WorkerContextDestroyed(); 70 void WorkerContextDestroyed();
66 void AllowFileSystem(const GURL& url, 71 void AllowFileSystem(const GURL& url,
67 std::unique_ptr<IPC::Message> reply_msg); 72 std::unique_ptr<IPC::Message> reply_msg);
68 void AllowIndexedDB(const GURL& url, 73 void AllowIndexedDB(const GURL& url,
69 const base::string16& name, 74 const base::string16& name,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 bool closed_; 134 bool closed_;
130 const base::TimeTicks creation_time_; 135 const base::TimeTicks creation_time_;
131 136
132 base::WeakPtrFactory<SharedWorkerHost> weak_factory_; 137 base::WeakPtrFactory<SharedWorkerHost> weak_factory_;
133 138
134 DISALLOW_COPY_AND_ASSIGN(SharedWorkerHost); 139 DISALLOW_COPY_AND_ASSIGN(SharedWorkerHost);
135 }; 140 };
136 } // namespace content 141 } // namespace content
137 142
138 #endif // CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_HOST_H_ 143 #endif // CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/browser/shared_worker/shared_worker_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698