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

Side by Side Diff: Source/core/workers/WorkerLoaderProxy.h

Issue 642013002: Unindent some class declarations in workers/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 unified diff | Download patch
« no previous file with comments | « Source/core/workers/WorkerGlobalScopeProxy.h ('k') | Source/core/workers/WorkerScriptLoader.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 19 matching lines...) Expand all
30 30
31 #ifndef WorkerLoaderProxy_h 31 #ifndef WorkerLoaderProxy_h
32 #define WorkerLoaderProxy_h 32 #define WorkerLoaderProxy_h
33 33
34 #include "core/dom/ExecutionContext.h" 34 #include "core/dom/ExecutionContext.h"
35 #include "wtf/Forward.h" 35 #include "wtf/Forward.h"
36 #include "wtf/PassOwnPtr.h" 36 #include "wtf/PassOwnPtr.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 // A proxy to talk to the loader context. Normally, the document on the main thread 40 // A proxy to talk to the loader context. Normally, the document on the main thr ead
41 // provides loading services for the subordinate workers. This interface pro vides 2-way 41 // provides loading services for the subordinate workers. This interface provide s 2-way
42 // communications to the Document context and back to the worker. 42 // communications to the Document context and back to the worker.
43 // Note that in multi-process browsers, the Worker object context and the Do cument 43 // Note that in multi-process browsers, the Worker object context and the Docume nt
44 // context can be distinct. 44 // context can be distinct.
45 class WorkerLoaderProxy { 45 class WorkerLoaderProxy {
46 public: 46 public:
47 virtual ~WorkerLoaderProxy() { } 47 virtual ~WorkerLoaderProxy() { }
48 48
49 // Posts a task to the thread which runs the loading code (normally, the main thread). 49 // Posts a task to the thread which runs the loading code (normally, the mai n thread).
50 virtual void postTaskToLoader(PassOwnPtr<ExecutionContextTask>) = 0; 50 virtual void postTaskToLoader(PassOwnPtr<ExecutionContextTask>) = 0;
51 51
52 // Posts callbacks from loading code to the WorkerGlobalScope. 52 // Posts callbacks from loading code to the WorkerGlobalScope.
53 // Returns true if the task was posted successfully. 53 // Returns true if the task was posted successfully.
54 virtual bool postTaskToWorkerGlobalScope(PassOwnPtr<ExecutionContextTask >) = 0; 54 virtual bool postTaskToWorkerGlobalScope(PassOwnPtr<ExecutionContextTask>) = 0;
55 }; 55 };
56 56
57 } // namespace blink 57 } // namespace blink
58 58
59 #endif // WorkerLoaderProxy_h 59 #endif // WorkerLoaderProxy_h
OLDNEW
« no previous file with comments | « Source/core/workers/WorkerGlobalScopeProxy.h ('k') | Source/core/workers/WorkerScriptLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698