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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.h

Issue 1461243002: [OLD ATTEMPT, DO NOT REVIEW] mustash: Enable connections to mus from the Chrome renderer Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Invert connection creation flow. Needs lots of work. Created 5 years 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_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 #include <string> 10 #include <string>
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 296
297 // Creates and adds the IO thread message filters. 297 // Creates and adds the IO thread message filters.
298 void CreateMessageFilters(); 298 void CreateMessageFilters();
299 299
300 // Registers Mojo services to be exposed to the renderer. 300 // Registers Mojo services to be exposed to the renderer.
301 void RegisterMojoServices(); 301 void RegisterMojoServices();
302 302
303 // Control message handlers. 303 // Control message handlers.
304 void OnShutdownRequest(); 304 void OnShutdownRequest();
305 void SuddenTerminationChanged(bool enabled); 305 void SuddenTerminationChanged(bool enabled);
306 void OnUserMetricsRecordAction(const std::string& action); 306 void OnUserMetricsRecordAction(const std::string& action);
Fady Samuel 2015/11/24 04:42:38 Revert this.
307 void OnSavedPageAsMHTML(int job_id, int64 mhtml_file_size); 307 void OnSavedPageAsMHTML(int job_id, int64 mhtml_file_size);
308 void OnCloseACK(int old_route_id); 308 void OnCloseACK(int old_route_id);
309 void OnMojoReady();
309 310
310 // Generates a command line to be used to spawn a renderer and appends the 311 // Generates a command line to be used to spawn a renderer and appends the
311 // results to |*command_line|. 312 // results to |*command_line|.
312 void AppendRendererCommandLine(base::CommandLine* command_line) const; 313 void AppendRendererCommandLine(base::CommandLine* command_line) const;
313 314
314 // Copies applicable command line switches from the given |browser_cmd| line 315 // Copies applicable command line switches from the given |browser_cmd| line
315 // flags to the output |renderer_cmd| line flags. Not all switches will be 316 // flags to the output |renderer_cmd| line flags. Not all switches will be
316 // copied over. 317 // copied over.
317 void PropagateBrowserCommandLineToRenderer( 318 void PropagateBrowserCommandLineToRenderer(
318 const base::CommandLine& browser_cmd, 319 const base::CommandLine& browser_cmd,
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 // Whether or not the CHROMIUM_subscribe_uniform WebGL extension is enabled 493 // Whether or not the CHROMIUM_subscribe_uniform WebGL extension is enabled
493 bool subscribe_uniform_enabled_; 494 bool subscribe_uniform_enabled_;
494 495
495 #if defined(OS_MACOSX) && !defined(OS_IOS) 496 #if defined(OS_MACOSX) && !defined(OS_IOS)
496 // Unique unguessable token that the child process is using to acquire 497 // Unique unguessable token that the child process is using to acquire
497 // IOSurface references. 498 // IOSurface references.
498 IOSurfaceManagerToken io_surface_manager_token_; 499 IOSurfaceManagerToken io_surface_manager_token_;
499 #endif 500 #endif
500 501
501 bool channel_connected_; 502 bool channel_connected_;
503 bool mojo_ready_;
502 bool sent_render_process_ready_; 504 bool sent_render_process_ready_;
503 505
504 #if defined(OS_ANDROID) 506 #if defined(OS_ANDROID)
505 // UI thread is the source of sync IPCs and all shutdown signals. 507 // UI thread is the source of sync IPCs and all shutdown signals.
506 // Therefore a proper shutdown event to unblock the UI thread is not 508 // Therefore a proper shutdown event to unblock the UI thread is not
507 // possible without massive refactoring shutdown code. 509 // possible without massive refactoring shutdown code.
508 // Luckily Android never performs a clean shutdown. So explicitly 510 // Luckily Android never performs a clean shutdown. So explicitly
509 // ignore this problem. 511 // ignore this problem.
510 base::WaitableEvent never_signaled_; 512 base::WaitableEvent never_signaled_;
511 #endif 513 #endif
512 514
513 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 515 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
514 516
515 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 517 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
516 }; 518 };
517 519
518 } // namespace content 520 } // namespace content
519 521
520 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 522 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698