| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |