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

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

Issue 215373004: Makes mojo WebUI run main only after page finishes loading (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename DidFinishDocumentLoad so it doesn't conflict with RVO Created 6 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_MOJO_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_MOJO_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_MOJO_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_MOJO_IMPL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/process/process_handle.h" 9 #include "base/process/process_handle.h"
10 #include "content/common/mojo/render_process.mojom.h" 10 #include "content/common/mojo/render_process.mojom.h"
11 #include "mojo/public/bindings/remote_ptr.h" 11 #include "mojo/public/bindings/remote_ptr.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 class MojoChannelInit; 15 class MojoChannelInit;
16 class RenderProcessHost; 16 class RenderProcessHost;
17 17
18
19 // RenderProcessHostMojoImpl is responsible for initiating and maintaining the 18 // RenderProcessHostMojoImpl is responsible for initiating and maintaining the
20 // connection with the content side of RenderProcessHostMojo. 19 // connection with the content side of RenderProcessHostMojo.
21 class RenderProcessHostMojoImpl : public RenderProcessHostMojo { 20 class RenderProcessHostMojoImpl : public RenderProcessHostMojo {
22 public: 21 public:
23 explicit RenderProcessHostMojoImpl(RenderProcessHost* host); 22 explicit RenderProcessHostMojoImpl(RenderProcessHost* host);
24 virtual ~RenderProcessHostMojoImpl(); 23 virtual ~RenderProcessHostMojoImpl();
25 24
26 void SetWebUIHandle(int32 view_routing_id, 25 void SetWebUIHandle(int32 view_routing_id,
27 mojo::ScopedMessagePipeHandle handle); 26 mojo::ScopedMessagePipeHandle handle);
28 27
(...skipping 16 matching lines...) Expand all
45 // If non-null we're waiting to send a WebUI handle to the renderer when 44 // If non-null we're waiting to send a WebUI handle to the renderer when
46 // connected. 45 // connected.
47 scoped_ptr<PendingHandle> pending_handle_; 46 scoped_ptr<PendingHandle> pending_handle_;
48 47
49 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostMojoImpl); 48 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostMojoImpl);
50 }; 49 };
51 50
52 } // namespace content 51 } // namespace content
53 52
54 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_MOJO_IMPL_H _ 53 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_MOJO_IMPL_H _
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/renderer/web_ui_mojo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698