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

Unified Diff: content/gpu/in_process_gpu_thread.h

Issue 987693005: Get rid of ChannelInit::SetSingleProcessIOTaskRunner() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Landing Created 5 years, 9 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 | « content/gpu/gpu_child_thread.cc ('k') | content/gpu/in_process_gpu_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/in_process_gpu_thread.h
diff --git a/content/gpu/in_process_gpu_thread.h b/content/gpu/in_process_gpu_thread.h
index e8e0140dc2809ff7ca23003176e3b2ccc632b1fc..67ba017c54dcf01444c282303c44d4882882e6f1 100644
--- a/content/gpu/in_process_gpu_thread.h
+++ b/content/gpu/in_process_gpu_thread.h
@@ -7,6 +7,8 @@
#include "base/threading/thread.h"
#include "content/common/content_export.h"
+#include "content/common/content_export.h"
+#include "content/common/in_process_child_thread_params.h"
namespace content {
@@ -16,7 +18,7 @@ class GpuProcess;
// with --in-process-gpu or --single-process.
class InProcessGpuThread : public base::Thread {
public:
- explicit InProcessGpuThread(const std::string& channel_id);
+ InProcessGpuThread(const InProcessChildThreadParams& params);
~InProcessGpuThread() override;
protected:
@@ -24,7 +26,8 @@ class InProcessGpuThread : public base::Thread {
void CleanUp() override;
private:
- std::string channel_id_;
+ InProcessChildThreadParams params_;
+
// Deleted in CleanUp() on the gpu thread, so don't use smart pointers.
GpuProcess* gpu_process_;
@@ -32,7 +35,7 @@ class InProcessGpuThread : public base::Thread {
};
CONTENT_EXPORT base::Thread* CreateInProcessGpuThread(
- const std::string& channel_id);
+ const InProcessChildThreadParams& params);
} // namespace content
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | content/gpu/in_process_gpu_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698