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

Unified Diff: base/task_scheduler/post_task.h

Issue 2469323002: Document TaskRunners/TaskTraits/FROM_HERE as implicitly included from post_task.h (Closed)
Patch Set: Created 4 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task_scheduler/post_task.h
diff --git a/base/task_scheduler/post_task.h b/base/task_scheduler/post_task.h
index 70aebd51c402ac15ee132d75fc8d886d2dfe1f49..59bf8f5aaea4822e9fa106f259f88c9811e6ce9f 100644
--- a/base/task_scheduler/post_task.h
+++ b/base/task_scheduler/post_task.h
@@ -7,8 +7,12 @@
#include "base/base_export.h"
#include "base/callback_forward.h"
-#include "base/location.h"
#include "base/memory/ref_counted.h"
+
+// To avoid redundant includes: users may omit including the following headers
robliao 2016/11/02 17:06:25 https://google.github.io/styleguide/cppguide.html#
gab 2016/11/02 18:18:33 Done.
+// if they are using their provided data types solely in direct interactions
+// with the post_task.h API.
+#include "base/location.h"
#include "base/sequenced_task_runner.h"
#include "base/single_thread_task_runner.h"
#include "base/task_runner.h"
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698