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

Side by Side Diff: chrome/worker/websharedworker_stub.h

Issue 390017: Added lifecycle management and sharing support for SharedWorkers. SharedWorkers (Closed)
Patch Set: Changed WebWorkerBase not not call a virtual function from the destructor Created 11 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 CHROME_WORKER_WEB_SHARED_WORKER_STUB_H_ 5 #ifndef CHROME_WORKER_WEB_SHARED_WORKER_STUB_H_
6 #define CHROME_WORKER_WEB_SHARED_WORKER_STUB_H_ 6 #define CHROME_WORKER_WEB_SHARED_WORKER_STUB_H_
7 7
8 #include "chrome/worker/webworker_stub_base.h" 8 #include "chrome/worker/webworker_stub_base.h"
9 #include "chrome/worker/webworkerclient_proxy.h" 9 #include "chrome/worker/webworkerclient_proxy.h"
10 #include "googleurl/src/gurl.h" 10 #include "googleurl/src/gurl.h"
(...skipping 15 matching lines...) Expand all
26 virtual ~WebSharedWorkerStub(); 26 virtual ~WebSharedWorkerStub();
27 27
28 // Invoked when the WebWorkerClientProxy is shutting down. 28 // Invoked when the WebWorkerClientProxy is shutting down.
29 void OnConnect(int sent_message_port_id, int routing_id); 29 void OnConnect(int sent_message_port_id, int routing_id);
30 void OnStartWorkerContext( 30 void OnStartWorkerContext(
31 const GURL& url, const string16& user_agent, const string16& source_code); 31 const GURL& url, const string16& user_agent, const string16& source_code);
32 void OnTerminateWorkerContext(); 32 void OnTerminateWorkerContext();
33 33
34 WebKit::WebSharedWorker* impl_; 34 WebKit::WebSharedWorker* impl_;
35 string16 name_; 35 string16 name_;
36 bool started_;
36 37
37 DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerStub); 38 DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerStub);
38 }; 39 };
39 40
40 #endif // CHROME_WORKER_WEB_SHARED_WORKER_STUB_H_ 41 #endif // CHROME_WORKER_WEB_SHARED_WORKER_STUB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698