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

Side by Side Diff: content/renderer/websharedworker_proxy.h

Issue 125513002: Finally remove ResourceRequestInfo::GetAssociatedRenderView. Also remove the shared worker plumbing… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/shared_worker_repository.cc ('k') | content/renderer/websharedworker_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_RENDERER_WEBSHAREDWORKER_PROXY_H_ 5 #ifndef CONTENT_RENDERER_WEBSHAREDWORKER_PROXY_H_
6 #define CONTENT_RENDERER_WEBSHAREDWORKER_PROXY_H_ 6 #define CONTENT_RENDERER_WEBSHAREDWORKER_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 13 matching lines...) Expand all
24 // happen via the WebMessagePortChannel, and the WebSharedWorker instance will 24 // happen via the WebMessagePortChannel, and the WebSharedWorker instance will
25 // be freed. 25 // be freed.
26 class WebSharedWorkerProxy : public blink::WebSharedWorkerConnector, 26 class WebSharedWorkerProxy : public blink::WebSharedWorkerConnector,
27 private IPC::Listener { 27 private IPC::Listener {
28 public: 28 public:
29 // If the worker not loaded yet, route_id == MSG_ROUTING_NONE 29 // If the worker not loaded yet, route_id == MSG_ROUTING_NONE
30 WebSharedWorkerProxy(ChildThread* child_thread, 30 WebSharedWorkerProxy(ChildThread* child_thread,
31 unsigned long long document_id, 31 unsigned long long document_id,
32 bool exists, 32 bool exists,
33 int route_id, 33 int route_id,
34 int render_view_route_id,
35 int render_frame_route_id); 34 int render_frame_route_id);
36 virtual ~WebSharedWorkerProxy(); 35 virtual ~WebSharedWorkerProxy();
37 36
38 // Implementations of WebSharedWorker APIs 37 // Implementations of WebSharedWorker APIs
39 virtual bool isStarted(); 38 virtual bool isStarted();
40 virtual void connect(blink::WebMessagePortChannel* channel, 39 virtual void connect(blink::WebMessagePortChannel* channel,
41 ConnectListener* listener); 40 ConnectListener* listener);
42 41
43 virtual void startWorkerContext( 42 virtual void startWorkerContext(
44 const blink::WebURL& script_url, 43 const blink::WebURL& script_url,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 int64 script_resource_appcache_id); 79 int64 script_resource_appcache_id);
81 void OnWorkerCreated(); 80 void OnWorkerCreated();
82 81
83 82
84 // Routing id associated with this worker - used to receive messages from the 83 // Routing id associated with this worker - used to receive messages from the
85 // worker, and also to route messages to the worker (WorkerService contains 84 // worker, and also to route messages to the worker (WorkerService contains
86 // a map that maps between these renderer-side route IDs and worker-side 85 // a map that maps between these renderer-side route IDs and worker-side
87 // routing ids). 86 // routing ids).
88 int route_id_; 87 int route_id_;
89 88
90 // The routing id for the RenderView and RenderFrame that created this worker. 89 // The routing id for the RenderFrame that created this worker.
91 int render_view_route_id_;
92 int render_frame_route_id_; 90 int render_frame_route_id_;
93 91
94 ChildThread* child_thread_; 92 ChildThread* child_thread_;
95 93
96 // ID of our parent document (used to shutdown workers when the parent 94 // ID of our parent document (used to shutdown workers when the parent
97 // document is detached). 95 // document is detached).
98 unsigned long long document_id_; 96 unsigned long long document_id_;
99 97
100 // Stores messages that were sent before the StartWorkerContext message. 98 // Stores messages that were sent before the StartWorkerContext message.
101 std::vector<IPC::Message*> queued_messages_; 99 std::vector<IPC::Message*> queued_messages_;
102 100
103 // The id for the placeholder worker instance we've stored on the 101 // The id for the placeholder worker instance we've stored on the
104 // browser process (we need to pass this same route id back in when creating 102 // browser process (we need to pass this same route id back in when creating
105 // the worker). 103 // the worker).
106 int pending_route_id_; 104 int pending_route_id_;
107 ConnectListener* connect_listener_; 105 ConnectListener* connect_listener_;
108 106
109 DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerProxy); 107 DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerProxy);
110 }; 108 };
111 109
112 } // namespace content 110 } // namespace content
113 111
114 #endif // CONTENT_RENDERER_WEBSHAREDWORKER_PROXY_H_ 112 #endif // CONTENT_RENDERER_WEBSHAREDWORKER_PROXY_H_
OLDNEW
« no previous file with comments | « content/renderer/shared_worker_repository.cc ('k') | content/renderer/websharedworker_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698