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

Side by Side Diff: content/child/fileapi/webfilesystem_impl.h

Issue 2916303002: ThreadChecker instead of SequenceChecker in classes that use TLS. (Closed)
Patch Set: fix compile Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CONTENT_CHILD_FILEAPI_WEBFILESYSTEM_IMPL_H_ 5 #ifndef CONTENT_CHILD_FILEAPI_WEBFILESYSTEM_IMPL_H_
6 #define CONTENT_CHILD_FILEAPI_WEBFILESYSTEM_IMPL_H_ 6 #define CONTENT_CHILD_FILEAPI_WEBFILESYSTEM_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/sequence_checker.h" 13 #include "base/threading/thread_checker.h"
14 #include "content/public/child/worker_thread.h" 14 #include "content/public/child/worker_thread.h"
15 #include "third_party/WebKit/public/platform/WebFileSystem.h" 15 #include "third_party/WebKit/public/platform/WebFileSystem.h"
16 16
17 namespace base { 17 namespace base {
18 class SingleThreadTaskRunner; 18 class SingleThreadTaskRunner;
19 } 19 }
20 20
21 namespace blink { 21 namespace blink {
22 class WebURL; 22 class WebURL;
23 class WebFileWriterClient; 23 class WebFileWriterClient;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 WaitableCallbackResults* MaybeCreateWaitableResults( 100 WaitableCallbackResults* MaybeCreateWaitableResults(
101 const blink::WebFileSystemCallbacks& callbacks, int callbacks_id); 101 const blink::WebFileSystemCallbacks& callbacks, int callbacks_id);
102 102
103 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; 103 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
104 104
105 CallbacksMap callbacks_; 105 CallbacksMap callbacks_;
106 int next_callbacks_id_; 106 int next_callbacks_id_;
107 WaitableCallbackResultsMap waitable_results_; 107 WaitableCallbackResultsMap waitable_results_;
108 108
109 SEQUENCE_CHECKER(sequence_checker_); 109 // Thread-affine per use of TLS in impl.
110 THREAD_CHECKER(thread_checker_);
110 111
111 DISALLOW_COPY_AND_ASSIGN(WebFileSystemImpl); 112 DISALLOW_COPY_AND_ASSIGN(WebFileSystemImpl);
112 }; 113 };
113 114
114 } // namespace content 115 } // namespace content
115 116
116 #endif // CONTENT_CHILD_FILEAPI_WEBFILESYSTEM_IMPL_H_ 117 #endif // CONTENT_CHILD_FILEAPI_WEBFILESYSTEM_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/service/cloud_print/cloud_print_token_store.cc ('k') | content/child/fileapi/webfilesystem_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698