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

Unified Diff: content/browser/gpu/gpu_process_host.h

Issue 2915513002: Replace deprecated base::NonThreadSafe in content/browser/gpu in favor of SequenceChecker. (Closed)
Patch Set: Created 3 years, 7 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 | « no previous file | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_process_host.h
diff --git a/content/browser/gpu/gpu_process_host.h b/content/browser/gpu/gpu_process_host.h
index 7572b2c9a4efa73e1316a0da25e576ea71c2a9a1..8cef249fd6a12813c9b8e0fec51bdccaf47cbe36 100644
--- a/content/browser/gpu/gpu_process_host.h
+++ b/content/browser/gpu/gpu_process_host.h
@@ -17,7 +17,7 @@
#include "base/containers/hash_tables.h"
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/sequence_checker.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "content/common/content_export.h"
@@ -57,8 +57,7 @@ class BrowserChildProcessHostImpl;
class GpuProcessHost : public BrowserChildProcessHostDelegate,
public IPC::Sender,
- public ui::mojom::GpuHost,
- public base::NonThreadSafe {
+ public ui::mojom::GpuHost {
public:
enum GpuProcessKind {
GPU_PROCESS_KIND_UNSANDBOXED,
@@ -292,6 +291,8 @@ class GpuProcessHost : public BrowserChildProcessHostDelegate,
mojo::Binding<ui::mojom::GpuHost> gpu_host_binding_;
gpu::GpuProcessHostActivityFlags activity_flags_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
base::WeakPtrFactory<GpuProcessHost> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
« no previous file with comments | « no previous file | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698