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

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

Issue 2349713003: IPC::MessageFilter::OnFilterAdded: IPC::Sender -> IPC::Channel (Closed)
Patch Set: . 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 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_SERVICE_WORKER_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 class CONTENT_EXPORT ServiceWorkerDispatcherHost : public BrowserMessageFilter { 44 class CONTENT_EXPORT ServiceWorkerDispatcherHost : public BrowserMessageFilter {
45 public: 45 public:
46 ServiceWorkerDispatcherHost( 46 ServiceWorkerDispatcherHost(
47 int render_process_id, 47 int render_process_id,
48 MessagePortMessageFilter* message_port_message_filter, 48 MessagePortMessageFilter* message_port_message_filter,
49 ResourceContext* resource_context); 49 ResourceContext* resource_context);
50 50
51 void Init(ServiceWorkerContextWrapper* context_wrapper); 51 void Init(ServiceWorkerContextWrapper* context_wrapper);
52 52
53 // BrowserMessageFilter implementation 53 // BrowserMessageFilter implementation
54 void OnFilterAdded(IPC::Sender* sender) override; 54 void OnFilterAdded(IPC::Channel* channel) override;
55 void OnFilterRemoved() override; 55 void OnFilterRemoved() override;
56 void OnDestruct() const override; 56 void OnDestruct() const override;
57 bool OnMessageReceived(const IPC::Message& message) override; 57 bool OnMessageReceived(const IPC::Message& message) override;
58 58
59 // IPC::Sender implementation 59 // IPC::Sender implementation
60 60
61 // Send() queues the message until the underlying sender is ready. This 61 // Send() queues the message until the underlying sender is ready. This
62 // class assumes that Send() can only fail after that when the renderer 62 // class assumes that Send() can only fail after that when the renderer
63 // process has terminated, at which point the whole instance will eventually 63 // process has terminated, at which point the whole instance will eventually
64 // be destroyed. 64 // be destroyed.
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 242
243 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL. 243 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL.
244 std::vector<std::unique_ptr<IPC::Message>> pending_messages_; 244 std::vector<std::unique_ptr<IPC::Message>> pending_messages_;
245 245
246 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); 246 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost);
247 }; 247 };
248 248
249 } // namespace content 249 } // namespace content
250 250
251 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ 251 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/memory/memory_message_filter.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