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

Side by Side Diff: chrome/browser/worker_host/worker_process_host.h

Issue 5978003: Make IPC::Channel::Listener:OnMessageReceived have a return value indicating ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 CHROME_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ 5 #ifndef CHROME_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_
6 #define CHROME_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ 6 #define CHROME_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 10
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 142
143 private: 143 private:
144 // Called when the process has been launched successfully. 144 // Called when the process has been launched successfully.
145 virtual void OnProcessLaunched(); 145 virtual void OnProcessLaunched();
146 146
147 // Creates and adds the message filters. 147 // Creates and adds the message filters.
148 void CreateMessageFilters(int render_process_id); 148 void CreateMessageFilters(int render_process_id);
149 149
150 // IPC::Channel::Listener implementation: 150 // IPC::Channel::Listener implementation:
151 // Called when a message arrives from the worker process. 151 // Called when a message arrives from the worker process.
152 virtual void OnMessageReceived(const IPC::Message& message); 152 virtual bool OnMessageReceived(const IPC::Message& message);
153 153
154 void OnWorkerContextClosed(int worker_route_id); 154 void OnWorkerContextClosed(int worker_route_id);
155 void OnAllowDatabase(int worker_route_id, 155 void OnAllowDatabase(int worker_route_id,
156 const GURL& url, 156 const GURL& url,
157 const string16& name, 157 const string16& name,
158 const string16& display_name, 158 const string16& display_name,
159 unsigned long estimated_size, 159 unsigned long estimated_size,
160 bool* result); 160 bool* result);
161 161
162 // Relays a message to the given endpoint. Takes care of parsing the message 162 // Relays a message to the given endpoint. Takes care of parsing the message
(...skipping 15 matching lines...) Expand all
178 178
179 // A reference to the filter associated with this worker process. We need to 179 // A reference to the filter associated with this worker process. We need to
180 // keep this around since we'll use it when forward messages to the worker 180 // keep this around since we'll use it when forward messages to the worker
181 // process. 181 // process.
182 scoped_refptr<WorkerMessageFilter> worker_message_filter_; 182 scoped_refptr<WorkerMessageFilter> worker_message_filter_;
183 183
184 DISALLOW_COPY_AND_ASSIGN(WorkerProcessHost); 184 DISALLOW_COPY_AND_ASSIGN(WorkerProcessHost);
185 }; 185 };
186 186
187 #endif // CHROME_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ 187 #endif // CHROME_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/utility_process_host.cc ('k') | chrome/browser/worker_host/worker_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698