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

Side by Side Diff: content/public/browser/render_process_host.h

Issue 176843004: Add IncrementWorkerRefCount() and DecrementWorkerRefCount() to RenderProcessHostImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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
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_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/id_map.h" 9 #include "base/id_map.h"
10 #include "base/process/kill.h" 10 #include "base/process/kill.h"
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 // devices (webcams, mics, etc) that were initially requested in the render 221 // devices (webcams, mics, etc) that were initially requested in the render
222 // process associated with this RenderProcessHost. 222 // process associated with this RenderProcessHost.
223 virtual void SetWebRtcLogMessageCallback( 223 virtual void SetWebRtcLogMessageCallback(
224 base::Callback<void(const std::string&)> callback) = 0; 224 base::Callback<void(const std::string&)> callback) = 0;
225 #endif 225 #endif
226 226
227 // Tells the ResourceDispatcherHost to resume a deferred navigation without 227 // Tells the ResourceDispatcherHost to resume a deferred navigation without
228 // transferring it to a new renderer process. 228 // transferring it to a new renderer process.
229 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) = 0; 229 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) = 0;
230 230
231 // Called when the existance of the other renderer process which is connected
232 // to the SharedWorker in this renderer process has changed.
233 // It is only called when "enable-embedded-shared-worker" flag is set.
234 virtual void SetExternalClientStatus(bool has_external_worker_client) = 0;
kinuko 2014/03/04 04:48:48 Does this need to be exposed at content/public? T
horo 2014/03/04 06:40:43 Changed to RenderProcessHostImpl::SetHasExternalWo
kinuko 2014/03/04 06:58:46 (As we talked offline) If this is specifically for
235
231 // Static management functions ----------------------------------------------- 236 // Static management functions -----------------------------------------------
232 237
233 // Flag to run the renderer in process. This is primarily 238 // Flag to run the renderer in process. This is primarily
234 // for debugging purposes. When running "in process", the 239 // for debugging purposes. When running "in process", the
235 // browser maintains a single RenderProcessHost which communicates 240 // browser maintains a single RenderProcessHost which communicates
236 // to a RenderProcess which is instantiated in the same process 241 // to a RenderProcess which is instantiated in the same process
237 // with the Browser. All IPC between the Browser and the 242 // with the Browser. All IPC between the Browser and the
238 // Renderer is the same, it's just not crossing a process boundary. 243 // Renderer is the same, it's just not crossing a process boundary.
239 244
240 static bool run_renderer_in_process(); 245 static bool run_renderer_in_process();
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 // module. 287 // module.
283 static size_t GetMaxRendererProcessCount(); 288 static size_t GetMaxRendererProcessCount();
284 289
285 static void RegisterRendererMainThreadFactory( 290 static void RegisterRendererMainThreadFactory(
286 RendererMainThreadFactoryFunction create); 291 RendererMainThreadFactoryFunction create);
287 }; 292 };
288 293
289 } // namespace content. 294 } // namespace content.
290 295
291 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 296 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/public/test/mock_render_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698