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

Unified Diff: chrome/browser/gpu_process_host.h

Issue 6538111: Move the rest of the core files in chrome\browser to content\browser.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/gpu_blacklist_unittest.cc ('k') | chrome/browser/gpu_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gpu_process_host.h
===================================================================
--- chrome/browser/gpu_process_host.h (revision 75653)
+++ chrome/browser/gpu_process_host.h (working copy)
@@ -6,49 +6,7 @@
#define CHROME_BROWSER_GPU_PROCESS_HOST_H_
#pragma once
-#include "base/threading/non_thread_safe.h"
-#include "chrome/browser/browser_child_process_host.h"
+// TODO(jam): remove this file when all files have been converted.
+#include "content/browser/gpu_process_host.h"
-namespace IPC {
-class Message;
-}
-
-class GpuProcessHost : public BrowserChildProcessHost,
- public base::NonThreadSafe {
- public:
-
- // Create a GpuProcessHost with the given ID. The object can be found using
- // FromID with the same id.
- static GpuProcessHost* Create(int host_id);
-
- // Get the GPU process host for the GPU process with the given ID. Returns
- // null if the process no longer exists.
- static GpuProcessHost* FromID(int host_id);
-
- virtual bool Send(IPC::Message* msg);
-
- // IPC::Channel::Listener implementation.
- virtual bool OnMessageReceived(const IPC::Message& message);
-
- private:
- explicit GpuProcessHost(int host_id);
- virtual ~GpuProcessHost();
- bool Init();
-
- // Post an IPC message to the UI shim's message handler on the UI thread.
- void RouteOnUIThread(const IPC::Message& message);
-
- virtual bool CanShutdown();
- virtual void OnChildDied();
- virtual void OnProcessCrashed(int exit_code);
-
- bool CanLaunchGpuProcess() const;
- bool LaunchGpuProcess();
-
- // The serial number of the GpuProcessHost / GpuProcessHostUIShim pair.
- int host_id_;
-
- DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
-};
-
#endif // CHROME_BROWSER_GPU_PROCESS_HOST_H_
« no previous file with comments | « chrome/browser/gpu_blacklist_unittest.cc ('k') | chrome/browser/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698