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

Side by Side Diff: public/web/WebEmbeddedWorker.h

Issue 78233002: Implement initial part of WebEmbeddedWorker (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: addressed comments Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « public/platform/WebURLRequest.h ('k') | public/web/WebEmbeddedWorkerStartData.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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #ifndef WebEmbeddedWorker_h 31 #ifndef WebEmbeddedWorker_h
32 #define WebEmbeddedWorker_h 32 #define WebEmbeddedWorker_h
33 33
34 #include "public/platform/WebCommon.h" 34 #include "public/platform/WebCommon.h"
35 35
36 namespace blink { 36 namespace blink {
37 37
38 class WebServiceWorkerContextClient; 38 class WebServiceWorkerContextClient;
39 class WebWorkerPermissionClientProxy;
39 struct WebEmbeddedWorkerStartData; 40 struct WebEmbeddedWorkerStartData;
40 41
41 // An interface to start and terminate an embedded worker. 42 // An interface to start and terminate an embedded worker.
42 // All methods of this class must be called on the main thread. 43 // All methods of this class must be called on the main thread.
43 class WebEmbeddedWorker { 44 class WebEmbeddedWorker {
44 public: 45 public:
45 // Invoked on the main thread to instantiate a WebEmbeddedWorker. 46 // Invoked on the main thread to instantiate a WebEmbeddedWorker.
46 // The given WebWorkerContextClient and WebWorkerPermissionClientProxy are 47 // The given WebWorkerContextClient and WebWorkerPermissionClientProxy are
47 // going to be passed on to the worker thread and is held by a newly 48 // going to be passed on to the worker thread and is held by a newly
48 // created WorkerGlobalScope. 49 // created WorkerGlobalScope.
49 BLINK_EXPORT static WebEmbeddedWorker* create( 50 BLINK_EXPORT static WebEmbeddedWorker* create(
50 WebServiceWorkerContextClient*, 51 WebServiceWorkerContextClient*,
51 WebWorkerPermissionClientProxy*); 52 WebWorkerPermissionClientProxy*);
52 53
53 virtual ~WebEmbeddedWorker() { } 54 virtual ~WebEmbeddedWorker() { }
54 55
55 // Starts and terminates WorkerThread and WorkerGlobalScope. 56 // Starts and terminates WorkerThread and WorkerGlobalScope.
56 virtual void startWorkerContext(const WebEmbeddedWorkerStartData&) = 0; 57 virtual void startWorkerContext(const WebEmbeddedWorkerStartData&) = 0;
57 virtual void terminateWorkerContext() = 0; 58 virtual void terminateWorkerContext() = 0;
58 }; 59 };
59 60
60 } // namespace blink 61 } // namespace blink
61 62
62 #endif // WebEmbeddedWorker_h 63 #endif // WebEmbeddedWorker_h
OLDNEW
« no previous file with comments | « public/platform/WebURLRequest.h ('k') | public/web/WebEmbeddedWorkerStartData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698