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

Side by Side Diff: content/browser/service_worker/embedded_worker_registry.h

Issue 2134623002: service worker: Add crash keys for OnMessageReceived crash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: blimp Created 4 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SERVICE_WORKER_EMBEDDED_WORKER_REGISTRY_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_REGISTRY_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_REGISTRY_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_REGISTRY_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 // Returns true if |embedded_worker_id| is managed by this registry. 105 // Returns true if |embedded_worker_id| is managed by this registry.
106 bool CanHandle(int embedded_worker_id) const; 106 bool CanHandle(int embedded_worker_id) const;
107 107
108 MessagePortMessageFilter* MessagePortMessageFilterForProcess(int process_id); 108 MessagePortMessageFilter* MessagePortMessageFilterForProcess(int process_id);
109 109
110 private: 110 private:
111 friend class base::RefCounted<EmbeddedWorkerRegistry>; 111 friend class base::RefCounted<EmbeddedWorkerRegistry>;
112 friend class EmbeddedWorkerInstance; 112 friend class EmbeddedWorkerInstance;
113 friend class EmbeddedWorkerInstanceTest; 113 friend class EmbeddedWorkerInstanceTest;
114 // TODO(falken): For temporary debugging. Remove when https://crbug.com/625040
115 // is fixed.
116 friend class ServiceWorkerDispatcherHost;
114 FRIEND_TEST_ALL_PREFIXES(EmbeddedWorkerInstanceTest, 117 FRIEND_TEST_ALL_PREFIXES(EmbeddedWorkerInstanceTest,
115 RemoveWorkerInSharedProcess); 118 RemoveWorkerInSharedProcess);
116 119
117 typedef std::map<int, EmbeddedWorkerInstance*> WorkerInstanceMap; 120 typedef std::map<int, EmbeddedWorkerInstance*> WorkerInstanceMap;
118 typedef std::map<int, IPC::Sender*> ProcessToSenderMap; 121 typedef std::map<int, IPC::Sender*> ProcessToSenderMap;
119 typedef std::map<int, MessagePortMessageFilter*> 122 typedef std::map<int, MessagePortMessageFilter*>
120 ProcessToMessagePortMessageFilterMap; 123 ProcessToMessagePortMessageFilterMap;
121 124
122 EmbeddedWorkerRegistry( 125 EmbeddedWorkerRegistry(
123 const base::WeakPtr<ServiceWorkerContextCore>& context, 126 const base::WeakPtr<ServiceWorkerContextCore>& context,
(...skipping 22 matching lines...) Expand all
146 149
147 int next_embedded_worker_id_; 150 int next_embedded_worker_id_;
148 const int initial_embedded_worker_id_; 151 const int initial_embedded_worker_id_;
149 152
150 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerRegistry); 153 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerRegistry);
151 }; 154 };
152 155
153 } // namespace content 156 } // namespace content
154 157
155 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_REGISTRY_H_ 158 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_REGISTRY_H_
OLDNEW
« no previous file with comments | « chrome/common/crash_keys.cc ('k') | content/browser/service_worker/service_worker_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698