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

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

Issue 1507023004: Harden the implementation of '--disable-web-security' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: esprehn feedback 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 292
293 // Creates and adds the IO thread message filters. 293 // Creates and adds the IO thread message filters.
294 void CreateMessageFilters(); 294 void CreateMessageFilters();
295 295
296 // Registers Mojo services to be exposed to the renderer. 296 // Registers Mojo services to be exposed to the renderer.
297 void RegisterMojoServices(); 297 void RegisterMojoServices();
298 298
299 // Control message handlers. 299 // Control message handlers.
300 void OnShutdownRequest(); 300 void OnShutdownRequest();
301 void SuddenTerminationChanged(bool enabled); 301 void SuddenTerminationChanged(bool enabled);
302 void OnGetUniversalAccessDisposition(bool* is_access_grantable);
302 void OnUserMetricsRecordAction(const std::string& action); 303 void OnUserMetricsRecordAction(const std::string& action);
303 void OnSavedPageAsMHTML(int job_id, int64 mhtml_file_size); 304 void OnSavedPageAsMHTML(int job_id, int64 mhtml_file_size);
304 void OnCloseACK(int old_route_id); 305 void OnCloseACK(int old_route_id);
305 306
306 // Generates a command line to be used to spawn a renderer and appends the 307 // Generates a command line to be used to spawn a renderer and appends the
307 // results to |*command_line|. 308 // results to |*command_line|.
308 void AppendRendererCommandLine(base::CommandLine* command_line) const; 309 void AppendRendererCommandLine(base::CommandLine* command_line) const;
309 310
310 // Copies applicable command line switches from the given |browser_cmd| line 311 // Copies applicable command line switches from the given |browser_cmd| line
311 // flags to the output |renderer_cmd| line flags. Not all switches will be 312 // flags to the output |renderer_cmd| line flags. Not all switches will be
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 #endif 506 #endif
506 507
507 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 508 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
508 509
509 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 510 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
510 }; 511 };
511 512
512 } // namespace content 513 } // namespace content
513 514
514 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 515 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698