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

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

Issue 2952583002: SafeBrowsing support for WebSocket (post-network-servicification) (Closed)
Patch Set: Fix compile on Windows Created 3 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 29 matching lines...) Expand all
40 class WebFrame; 40 class WebFrame;
41 class WebLocalFrame; 41 class WebLocalFrame;
42 class WebMIDIAccessor; 42 class WebMIDIAccessor;
43 class WebMIDIAccessorClient; 43 class WebMIDIAccessorClient;
44 class WebMediaStreamCenter; 44 class WebMediaStreamCenter;
45 class WebMediaStreamCenterClient; 45 class WebMediaStreamCenterClient;
46 class WebPlugin; 46 class WebPlugin;
47 class WebPrescientNetworking; 47 class WebPrescientNetworking;
48 class WebRTCPeerConnectionHandler; 48 class WebRTCPeerConnectionHandler;
49 class WebRTCPeerConnectionHandlerClient; 49 class WebRTCPeerConnectionHandlerClient;
50 class WebSocketHandshakeThrottle;
50 class WebSpeechSynthesizer; 51 class WebSpeechSynthesizer;
51 class WebSpeechSynthesizerClient; 52 class WebSpeechSynthesizerClient;
52 class WebThemeEngine; 53 class WebThemeEngine;
53 class WebURL; 54 class WebURL;
55 class WebURLRequest;
54 class WebURLResponse; 56 class WebURLResponse;
55 class WebURLRequest;
56 struct WebPluginParams; 57 struct WebPluginParams;
57 struct WebURLError; 58 struct WebURLError;
58 } // namespace blink 59 } // namespace blink
59 60
60 namespace media { 61 namespace media {
61 class KeySystemProperties; 62 class KeySystemProperties;
62 } 63 }
63 64
64 namespace content { 65 namespace content {
65 class BrowserPluginDelegate; 66 class BrowserPluginDelegate;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 const blink::WebAudioLatencyHint& latency_hint); 169 const blink::WebAudioLatencyHint& latency_hint);
169 170
170 // Allows the embedder to override the blink::WebClipboard used. If it 171 // Allows the embedder to override the blink::WebClipboard used. If it
171 // returns NULL the content layer will handle clipboard interactions. 172 // returns NULL the content layer will handle clipboard interactions.
172 virtual blink::WebClipboard* OverrideWebClipboard(); 173 virtual blink::WebClipboard* OverrideWebClipboard();
173 174
174 // Allows the embedder to override the WebThemeEngine used. If it returns NULL 175 // Allows the embedder to override the WebThemeEngine used. If it returns NULL
175 // the content layer will provide an engine. 176 // the content layer will provide an engine.
176 virtual blink::WebThemeEngine* OverrideThemeEngine(); 177 virtual blink::WebThemeEngine* OverrideThemeEngine();
177 178
179 // Allows the embedder to provide a WebSocketHandshakeThrottle. If it returns
180 // NULL then none will be used.
181 virtual std::unique_ptr<blink::WebSocketHandshakeThrottle>
yzshen1 2017/06/20 19:52:19 Out of curiosity: why inserting the method in the
Adam Rice 2017/06/21 06:08:36 I'm attempting to imitate the order from blink::Pr
182 CreateWebSocketHandshakeThrottle();
183
178 // Allows the embedder to override the WebSpeechSynthesizer used. 184 // Allows the embedder to override the WebSpeechSynthesizer used.
179 // If it returns NULL the content layer will provide an engine. 185 // If it returns NULL the content layer will provide an engine.
180 virtual std::unique_ptr<blink::WebSpeechSynthesizer> 186 virtual std::unique_ptr<blink::WebSpeechSynthesizer>
181 OverrideSpeechSynthesizer(blink::WebSpeechSynthesizerClient* client); 187 OverrideSpeechSynthesizer(blink::WebSpeechSynthesizerClient* client);
182 188
183 // Returns true if the renderer process should schedule the idle handler when 189 // Returns true if the renderer process should schedule the idle handler when
184 // all widgets are hidden. 190 // all widgets are hidden.
185 virtual bool RunIdleHandlerWhenWidgetsHidden(); 191 virtual bool RunIdleHandlerWhenWidgetsHidden();
186 192
187 // Returns true if the renderer process should allow shared timer suspension 193 // Returns true if the renderer process should allow shared timer suspension
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 virtual std::unique_ptr<base::TaskScheduler::InitParams> 374 virtual std::unique_ptr<base::TaskScheduler::InitParams>
369 GetTaskSchedulerInitParams(); 375 GetTaskSchedulerInitParams();
370 376
371 // Returns true if the media pipeline can be suspended, or false otherwise. 377 // Returns true if the media pipeline can be suspended, or false otherwise.
372 virtual bool AllowMediaSuspend(); 378 virtual bool AllowMediaSuspend();
373 }; 379 };
374 380
375 } // namespace content 381 } // namespace content
376 382
377 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 383 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698