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

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

Issue 592153002: Replace Chrome IPC with Mojo IPC for querying BatteryStatus service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 years, 2 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_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 private: 291 private:
292 friend class VisitRelayingRenderProcessHost; 292 friend class VisitRelayingRenderProcessHost;
293 293
294 bool ShouldUseMojoChannel() const; 294 bool ShouldUseMojoChannel() const;
295 scoped_ptr<IPC::ChannelProxy> CreateChannelProxy( 295 scoped_ptr<IPC::ChannelProxy> CreateChannelProxy(
296 const std::string& channel_id); 296 const std::string& channel_id);
297 297
298 // Creates and adds the IO thread message filters. 298 // Creates and adds the IO thread message filters.
299 void CreateMessageFilters(); 299 void CreateMessageFilters();
300 300
301 // Registers Mojo services to be exposed to the renderer.
302 void RegisterMojoServices();
303
301 // Control message handlers. 304 // Control message handlers.
302 void OnShutdownRequest(); 305 void OnShutdownRequest();
303 void OnDumpHandlesDone(); 306 void OnDumpHandlesDone();
304 void SuddenTerminationChanged(bool enabled); 307 void SuddenTerminationChanged(bool enabled);
305 void OnUserMetricsRecordAction(const std::string& action); 308 void OnUserMetricsRecordAction(const std::string& action);
306 void OnSavedPageAsMHTML(int job_id, int64 mhtml_file_size); 309 void OnSavedPageAsMHTML(int job_id, int64 mhtml_file_size);
307 void OnCloseACK(int old_route_id); 310 void OnCloseACK(int old_route_id);
308 311
309 // Generates a command line to be used to spawn a renderer and appends the 312 // Generates a command line to be used to spawn a renderer and appends the
310 // results to |*command_line|. 313 // results to |*command_line|.
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 base::TimeTicks survive_for_worker_start_time_; 465 base::TimeTicks survive_for_worker_start_time_;
463 466
464 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 467 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
465 468
466 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 469 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
467 }; 470 };
468 471
469 } // namespace content 472 } // namespace content
470 473
471 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ 474 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698