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

Side by Side Diff: content/public/renderer/content_renderer_client.h

Issue 2054303002: Kill child processes on bad Mojo messages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bad-message
Patch Set: . Created 4 years, 6 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_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 class MediaLog; 66 class MediaLog;
67 class RendererFactory; 67 class RendererFactory;
68 } 68 }
69 69
70 namespace content { 70 namespace content {
71 class BrowserPluginDelegate; 71 class BrowserPluginDelegate;
72 class DocumentState; 72 class DocumentState;
73 class MediaStreamRendererFactory; 73 class MediaStreamRendererFactory;
74 class RenderFrame; 74 class RenderFrame;
75 class RenderView; 75 class RenderView;
76 class ServiceRegistry;
76 class SynchronousCompositor; 77 class SynchronousCompositor;
77 struct WebPluginInfo; 78 struct WebPluginInfo;
78 79
79 // Embedder API for participating in renderer logic. 80 // Embedder API for participating in renderer logic.
80 class CONTENT_EXPORT ContentRendererClient { 81 class CONTENT_EXPORT ContentRendererClient {
81 public: 82 public:
82 virtual ~ContentRendererClient() {} 83 virtual ~ContentRendererClient() {}
83 84
84 // Notifies us that the RenderThread has been created. 85 // Notifies us that the RenderThread has been created.
85 virtual void RenderThreadStarted() {} 86 virtual void RenderThreadStarted() {}
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 const GURL& url) {} 344 const GURL& url) {}
344 345
345 // Whether this renderer should enforce preferences related to the WebRTC 346 // Whether this renderer should enforce preferences related to the WebRTC
346 // routing logic, i.e. allowing multiple routes and non-proxied UDP. 347 // routing logic, i.e. allowing multiple routes and non-proxied UDP.
347 virtual bool ShouldEnforceWebRTCRoutingPreferences(); 348 virtual bool ShouldEnforceWebRTCRoutingPreferences();
348 349
349 // Notifies that a worker context has been created. This function is called 350 // Notifies that a worker context has been created. This function is called
350 // from the worker thread. 351 // from the worker thread.
351 virtual void DidInitializeWorkerContextOnWorkerThread( 352 virtual void DidInitializeWorkerContextOnWorkerThread(
352 v8::Local<v8::Context> context) {} 353 v8::Local<v8::Context> context) {}
354
355 // Adds service factories to the process-wide ServiceRegistry the host is
356 // connected to.
357 virtual void RegisterProcessMojoServices(ServiceRegistry* service_registry) {}
353 }; 358 };
354 359
355 } // namespace content 360 } // namespace content
356 361
357 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 362 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698