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

Side by Side Diff: content/browser/worker_host/worker_service_impl.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
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_BROWSER_WORKER_HOST_WORKER_SERVICE_H_ 5 #ifndef CONTENT_BROWSER_WORKER_HOST_WORKER_SERVICE_H_
6 #define CONTENT_BROWSER_WORKER_HOST_WORKER_SERVICE_H_ 6 #define CONTENT_BROWSER_WORKER_HOST_WORKER_SERVICE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/singleton.h" 10 #include "base/memory/singleton.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 void ForwardToWorker(const IPC::Message& message, 55 void ForwardToWorker(const IPC::Message& message,
56 WorkerMessageFilter* filter); 56 WorkerMessageFilter* filter);
57 void DocumentDetached(unsigned long long document_id, 57 void DocumentDetached(unsigned long long document_id,
58 WorkerMessageFilter* filter); 58 WorkerMessageFilter* filter);
59 59
60 void OnWorkerMessageFilterClosing(WorkerMessageFilter* filter); 60 void OnWorkerMessageFilterClosing(WorkerMessageFilter* filter);
61 61
62 int next_worker_route_id() { return ++next_worker_route_id_; } 62 int next_worker_route_id() { return ++next_worker_route_id_; }
63 63
64 // Given a worker's process id, return the IDs of the renderer process and 64 // Given a worker's process id, return the IDs of the renderer process and
65 // render view that created it. For shared workers, this returns the first 65 // render frame that created it. For shared workers, this returns the first
66 // parent. 66 // parent.
67 // TODO(dimich): This code assumes there is 1 worker per worker process, which 67 // TODO(dimich): This code assumes there is 1 worker per worker process, which
68 // is how it is today until V8 can run in separate threads. 68 // is how it is today until V8 can run in separate threads.
69 bool GetRendererForWorker(int worker_process_id, 69 bool GetRendererForWorker(int worker_process_id,
70 int* render_process_id, 70 int* render_process_id,
71 int* render_view_id,
72 int* render_frame_id) const; 71 int* render_frame_id) const;
73 const WorkerProcessHost::WorkerInstance* FindWorkerInstance( 72 const WorkerProcessHost::WorkerInstance* FindWorkerInstance(
74 int worker_process_id); 73 int worker_process_id);
75 74
76 void NotifyWorkerDestroyed( 75 void NotifyWorkerDestroyed(
77 WorkerProcessHost* process, 76 WorkerProcessHost* process,
78 int worker_route_id); 77 int worker_route_id);
79 78
80 void NotifyWorkerProcessCreated(); 79 void NotifyWorkerProcessCreated();
81 80
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 WorkerProcessHost::Instances pending_shared_workers_; 140 WorkerProcessHost::Instances pending_shared_workers_;
142 141
143 ObserverList<WorkerServiceObserver> observers_; 142 ObserverList<WorkerServiceObserver> observers_;
144 143
145 DISALLOW_COPY_AND_ASSIGN(WorkerServiceImpl); 144 DISALLOW_COPY_AND_ASSIGN(WorkerServiceImpl);
146 }; 145 };
147 146
148 } // namespace content 147 } // namespace content
149 148
150 #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_SERVICE_H_ 149 #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_SERVICE_H_
OLDNEW
« no previous file with comments | « content/browser/worker_host/worker_document_set.cc ('k') | content/browser/worker_host/worker_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698