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

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

Issue 2606593002: [ServiceWorker] Associate interfaces.
Patch Set: Fix unit tests Created 3 years, 12 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 19 matching lines...) Expand all
30 30
31 namespace media { 31 namespace media {
32 class AudioOutputController; 32 class AudioOutputController;
33 } 33 }
34 34
35 namespace service_manager { 35 namespace service_manager {
36 class InterfaceProvider; 36 class InterfaceProvider;
37 } 37 }
38 38
39 namespace content { 39 namespace content {
40 class AssociatedInterfaceProvider;
40 class BrowserContext; 41 class BrowserContext;
41 class BrowserMessageFilter; 42 class BrowserMessageFilter;
42 class RenderProcessHostObserver; 43 class RenderProcessHostObserver;
43 class StoragePartition; 44 class StoragePartition;
44 struct GlobalRequestID; 45 struct GlobalRequestID;
45 46
46 namespace mojom { 47 namespace mojom {
47 class Renderer; 48 class Renderer;
48 } 49 }
49 50
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 270
270 // Tells the ResourceDispatcherHost to resume a deferred navigation without 271 // Tells the ResourceDispatcherHost to resume a deferred navigation without
271 // transferring it to a new renderer process. 272 // transferring it to a new renderer process.
272 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) = 0; 273 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) = 0;
273 274
274 // Returns the service_manager::InterfaceProvider the browser process can use 275 // Returns the service_manager::InterfaceProvider the browser process can use
275 // to bind 276 // to bind
276 // interfaces exposed to it from the renderer. 277 // interfaces exposed to it from the renderer.
277 virtual service_manager::InterfaceProvider* GetRemoteInterfaces() = 0; 278 virtual service_manager::InterfaceProvider* GetRemoteInterfaces() = 0;
278 279
280 // Is implemented by MockRenderProcessHost to establish associated interface
281 // connections for tests.
282 virtual AssociatedInterfaceProvider*
283 GetAssociatedInterfaceProviderForTesting() = 0;
284
279 // Extracts any persistent-memory-allocator used for renderer metrics. 285 // Extracts any persistent-memory-allocator used for renderer metrics.
280 // Ownership is passed to the caller. To support sharing of histogram data 286 // Ownership is passed to the caller. To support sharing of histogram data
281 // between the Renderer and the Browser, the allocator is created when the 287 // between the Renderer and the Browser, the allocator is created when the
282 // process is created and later retrieved by the SubprocessMetricsProvider 288 // process is created and later retrieved by the SubprocessMetricsProvider
283 // for management. 289 // for management.
284 virtual std::unique_ptr<base::SharedPersistentMemoryAllocator> 290 virtual std::unique_ptr<base::SharedPersistentMemoryAllocator>
285 TakeMetricsAllocator() = 0; 291 TakeMetricsAllocator() = 0;
286 292
287 // PlzNavigate 293 // PlzNavigate
288 // Returns the time the first call to Init completed successfully (after a new 294 // Returns the time the first call to Init completed successfully (after a new
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 static void SetMaxRendererProcessCount(size_t count); 411 static void SetMaxRendererProcessCount(size_t count);
406 412
407 // Returns the current maximum number of renderer process hosts kept by the 413 // Returns the current maximum number of renderer process hosts kept by the
408 // content module. 414 // content module.
409 static size_t GetMaxRendererProcessCount(); 415 static size_t GetMaxRendererProcessCount();
410 }; 416 };
411 417
412 } // namespace content. 418 } // namespace content.
413 419
414 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 420 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698