| Index: chrome/browser/worker_process_host.h
|
| ===================================================================
|
| --- chrome/browser/worker_process_host.h (revision 0)
|
| +++ chrome/browser/worker_process_host.h (revision 0)
|
| @@ -0,0 +1,36 @@
|
| +// Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_WORKER_PROCESS_HOST_H_
|
| +#define CHROME_BROWSER_WORKER_PROCESS_HOST_H_
|
| +
|
| +#include <set>
|
| +
|
| +#include "base/basictypes.h"
|
| +#include "base/scoped_ptr.h"
|
| +#include "chrome/common/child_process_host.h"
|
| +#include "chrome/common/ipc_channel.h"
|
| +#include "googleurl/src/gurl.h"
|
| +
|
| +class WorkerProcessHost : public ChildProcessHost {
|
| + public:
|
| + WorkerProcessHost(MessageLoop* main_message_loop);
|
| + ~WorkerProcessHost();
|
| +
|
| + bool Init();
|
| +
|
| + void CreateWorker(const GURL& url, int route_id);
|
| +
|
| + bool HasRouteId(int id);
|
| +
|
| + // IPC::Channel::Listener implementation:
|
| + virtual void OnMessageReceived(const IPC::Message& msg);
|
| +
|
| + private:
|
| + std::set<int> route_ids_;
|
| +
|
| + DISALLOW_EVIL_CONSTRUCTORS(WorkerProcessHost);
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_WORKER_PROCESS_HOST_H_
|
|
|