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

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

Issue 8760024: Cross-process postMessage (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Current checkpoint Created 8 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
« no previous file with comments | « content/browser/frame_map.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <queue> 10 #include <queue>
11 #include <string> 11 #include <string>
12 12
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/process.h" 14 #include "base/process.h"
15 #include "base/synchronization/waitable_event_watcher.h" 15 #include "base/synchronization/waitable_event_watcher.h"
16 #include "base/timer.h" 16 #include "base/timer.h"
17 #include "content/browser/child_process_launcher.h" 17 #include "content/browser/child_process_launcher.h"
18 #include "content/common/content_export.h" 18 #include "content/common/content_export.h"
19 #include "content/public/browser/render_process_host.h" 19 #include "content/public/browser/render_process_host.h"
20 #include "ipc/ipc_channel_proxy.h" 20 #include "ipc/ipc_channel_proxy.h"
21 #include "ui/gfx/surface/transport_dib.h" 21 #include "ui/gfx/surface/transport_dib.h"
22 22
23 class CommandLine; 23 class CommandLine;
24 class RendererMainThread; 24 class RendererMainThread;
25 class RenderWidgetHelper; 25 class RenderWidgetHelper;
26 struct ViewMsg_PostMessage_Params;
26 27
27 namespace base { 28 namespace base {
28 class WaitableEvent; 29 class WaitableEvent;
29 } 30 }
30 31
31 // Implements a concrete RenderProcessHost for the browser process for talking 32 // Implements a concrete RenderProcessHost for the browser process for talking
32 // to actual renderer processes (as opposed to mocks). 33 // to actual renderer processes (as opposed to mocks).
33 // 34 //
34 // Represents the browser side of the browser <--> renderer communication 35 // Represents the browser side of the browser <--> renderer communication
35 // channel. There will be one RenderProcessHost per renderer process. 36 // channel. There will be one RenderProcessHost per renderer process.
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // Creates and adds the IO thread message filters. 151 // Creates and adds the IO thread message filters.
151 void CreateMessageFilters(); 152 void CreateMessageFilters();
152 153
153 // Control message handlers. 154 // Control message handlers.
154 void OnShutdownRequest(); 155 void OnShutdownRequest();
155 void OnDumpHandlesDone(); 156 void OnDumpHandlesDone();
156 void SuddenTerminationChanged(bool enabled); 157 void SuddenTerminationChanged(bool enabled);
157 void OnUserMetricsRecordAction(const std::string& action); 158 void OnUserMetricsRecordAction(const std::string& action);
158 void OnRevealFolderInOS(const FilePath& path); 159 void OnRevealFolderInOS(const FilePath& path);
159 void OnSavedPageAsMHTML(int job_id, int64 mhtml_file_size); 160 void OnSavedPageAsMHTML(int job_id, int64 mhtml_file_size);
161 void OnSendPostMessage(int64 content_frame_id,
162 const ViewMsg_PostMessage_Params& params);
160 163
161 // Generates a command line to be used to spawn a renderer and appends the 164 // Generates a command line to be used to spawn a renderer and appends the
162 // results to |*command_line|. 165 // results to |*command_line|.
163 void AppendRendererCommandLine(CommandLine* command_line) const; 166 void AppendRendererCommandLine(CommandLine* command_line) const;
164 167
165 // Copies applicable command line switches from the given |browser_cmd| line 168 // Copies applicable command line switches from the given |browser_cmd| line
166 // flags to the output |renderer_cmd| line flags. Not all switches will be 169 // flags to the output |renderer_cmd| line flags. Not all switches will be
167 // copied over. 170 // copied over.
168 void PropagateBrowserCommandLineToRenderer(const CommandLine& browser_cmd, 171 void PropagateBrowserCommandLineToRenderer(const CommandLine& browser_cmd,
169 CommandLine* renderer_cmd) const; 172 CommandLine* renderer_cmd) const;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 // filtering for this at the render widget level. 252 // filtering for this at the render widget level.
250 bool ignore_input_events_; 253 bool ignore_input_events_;
251 254
252 // Records the last time we regarded the child process active. 255 // Records the last time we regarded the child process active.
253 base::TimeTicks child_process_activity_time_; 256 base::TimeTicks child_process_activity_time_;
254 257
255 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 258 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
256 }; 259 };
257 260
258 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ 261 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/frame_map.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698