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

Unified Diff: third_party/WebKit/Source/core/workers/WorkerLoaderProxy.h

Issue 2387983002: Worker: Reflow comments in worker components (Closed)
Patch Set: manually tweak Created 4 years, 2 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
Index: third_party/WebKit/Source/core/workers/WorkerLoaderProxy.h
diff --git a/third_party/WebKit/Source/core/workers/WorkerLoaderProxy.h b/third_party/WebKit/Source/core/workers/WorkerLoaderProxy.h
index aa7a498237d533a917597fb21e110fe198dcd217..e31d7bc5d45883dfb8a91c8ade1c51097aa9e539 100644
--- a/third_party/WebKit/Source/core/workers/WorkerLoaderProxy.h
+++ b/third_party/WebKit/Source/core/workers/WorkerLoaderProxy.h
@@ -44,23 +44,25 @@ namespace blink {
// workers. WorkerLoaderProxy provides 2-way communications to the Document
// context and back to the worker.
//
-// Note that in multi-process browsers, the Worker object context and the Document
-// context can be distinct.
+// Note that in multi-process browsers, the Worker object context and the
+// Document context can be distinct.
-// The abstract interface providing the methods for actually posting tasks; separated
-// from the thread-safe & ref-counted WorkerLoaderProxy object which keeps a protected
-// reference to the provider object. This to support non-overlapping lifetimes, the
-// provider may be destructed before all references to the WorkerLoaderProxy object
-// have been dropped.
+// The abstract interface providing the methods for actually posting tasks;
+// separated from the thread-safe & ref-counted WorkerLoaderProxy object which
+// keeps a protected reference to the provider object. This to support
+// non-overlapping lifetimes, the provider may be destructed before all
+// references to the WorkerLoaderProxy object have been dropped.
//
// A provider implementation must detach itself when finalizing by calling
-// WorkerLoaderProxy::detachProvider(). This stops the WorkerLoaderProxy from accessing
-// the now-dead object, but it will remain alive while ref-ptrs are still kept to it.
+// WorkerLoaderProxy::detachProvider(). This stops the WorkerLoaderProxy from
+// accessing the now-dead object, but it will remain alive while ref-ptrs are
+// still kept to it.
class CORE_EXPORT WorkerLoaderProxyProvider {
public:
virtual ~WorkerLoaderProxyProvider() {}
- // Posts a task to the thread which runs the loading code (normally, the main thread).
+ // Posts a task to the thread which runs the loading code (normally, the main
+ // thread).
virtual void postTaskToLoader(const WebTraceLocation&,
std::unique_ptr<ExecutionContextTask>) = 0;
@@ -85,9 +87,9 @@ class CORE_EXPORT WorkerLoaderProxy final
void postTaskToWorkerGlobalScope(const WebTraceLocation&,
std::unique_ptr<ExecutionContextTask>);
- // Notification from the provider that it can no longer be
- // accessed. An implementation of WorkerLoaderProxyProvider is
- // required to call detachProvider() when finalizing.
+ // Notification from the provider that it can no longer be accessed. An
+ // implementation of WorkerLoaderProxyProvider is required to call
+ // detachProvider() when finalizing.
void detachProvider(WorkerLoaderProxyProvider*);
private:

Powered by Google App Engine
This is Rietveld 408576698