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

Side by Side Diff: chrome/renderer/chrome_content_renderer_client.h

Issue 2952583002: SafeBrowsing support for WebSocket (post-network-servicification) (Closed)
Patch Set: Fix header files for move of service lookup 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 CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_
6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ 6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 bool IsPrefetchOnly(content::RenderFrame* render_frame, 146 bool IsPrefetchOnly(content::RenderFrame* render_frame,
147 const blink::WebURLRequest& request) override; 147 const blink::WebURLRequest& request) override;
148 unsigned long long VisitedLinkHash(const char* canonical_url, 148 unsigned long long VisitedLinkHash(const char* canonical_url,
149 size_t length) override; 149 size_t length) override;
150 bool IsLinkVisited(unsigned long long link_hash) override; 150 bool IsLinkVisited(unsigned long long link_hash) override;
151 blink::WebPrescientNetworking* GetPrescientNetworking() override; 151 blink::WebPrescientNetworking* GetPrescientNetworking() override;
152 bool ShouldOverridePageVisibilityState( 152 bool ShouldOverridePageVisibilityState(
153 const content::RenderFrame* render_frame, 153 const content::RenderFrame* render_frame,
154 blink::WebPageVisibilityState* override_state) override; 154 blink::WebPageVisibilityState* override_state) override;
155 bool IsExternalPepperPlugin(const std::string& module_name) override; 155 bool IsExternalPepperPlugin(const std::string& module_name) override;
156 std::unique_ptr<blink::WebSocketHandshakeThrottle>
157 CreateWebSocketHandshakeThrottle() override;
156 std::unique_ptr<blink::WebSpeechSynthesizer> OverrideSpeechSynthesizer( 158 std::unique_ptr<blink::WebSpeechSynthesizer> OverrideSpeechSynthesizer(
157 blink::WebSpeechSynthesizerClient* client) override; 159 blink::WebSpeechSynthesizerClient* client) override;
158 bool ShouldReportDetailedMessageForSource( 160 bool ShouldReportDetailedMessageForSource(
159 const base::string16& source) const override; 161 const base::string16& source) const override;
160 bool ShouldGatherSiteIsolationStats() const override; 162 bool ShouldGatherSiteIsolationStats() const override;
161 std::unique_ptr<blink::WebContentSettingsClient> 163 std::unique_ptr<blink::WebContentSettingsClient>
162 CreateWorkerContentSettingsClient(content::RenderFrame* render_frame, 164 CreateWorkerContentSettingsClient(content::RenderFrame* render_frame,
163 blink::WebFrame* frame) override; 165 blink::WebFrame* frame) override;
164 bool AllowPepperMediaStreamAPI(const GURL& url) override; 166 bool AllowPepperMediaStreamAPI(const GURL& url) override;
165 void AddSupportedKeySystems( 167 void AddSupportedKeySystems(
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 #endif 216 #endif
215 217
216 private: 218 private:
217 FRIEND_TEST_ALL_PREFIXES(ChromeContentRendererClientTest, NaClRestriction); 219 FRIEND_TEST_ALL_PREFIXES(ChromeContentRendererClientTest, NaClRestriction);
218 FRIEND_TEST_ALL_PREFIXES(ChromeContentRendererClientTest, 220 FRIEND_TEST_ALL_PREFIXES(ChromeContentRendererClientTest,
219 ShouldSuppressErrorPage); 221 ShouldSuppressErrorPage);
220 222
221 static GURL GetNaClContentHandlerURL(const std::string& actual_mime_type, 223 static GURL GetNaClContentHandlerURL(const std::string& actual_mime_type,
222 const content::WebPluginInfo& plugin); 224 const content::WebPluginInfo& plugin);
223 225
226 // Returns |true| if we should use the SafeBrowsing mojo service. Initialises
227 // |safe_browsing_| on the first call as a side-effect.
228 bool UsingSafeBrowsingMojoService();
229
224 // Time at which this object was created. This is very close to the time at 230 // Time at which this object was created. This is very close to the time at
225 // which the RendererMain function was entered. 231 // which the RendererMain function was entered.
226 base::TimeTicks main_entry_time_; 232 base::TimeTicks main_entry_time_;
227 233
228 #if !defined(DISABLE_NACL) 234 #if !defined(DISABLE_NACL)
229 // Determines if a NaCl app is allowed, and modifies params to pass the app's 235 // Determines if a NaCl app is allowed, and modifies params to pass the app's
230 // permissions to the trusted NaCl plugin. 236 // permissions to the trusted NaCl plugin.
231 static bool IsNaClAllowed(const GURL& manifest_url, 237 static bool IsNaClAllowed(const GURL& manifest_url,
232 const GURL& app_url, 238 const GURL& app_url,
233 bool is_nacl_unrestricted, 239 bool is_nacl_unrestricted,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 // Observes module load and unload events and notifies the ModuleDatabase in 279 // Observes module load and unload events and notifies the ModuleDatabase in
274 // the browser process. 280 // the browser process.
275 std::unique_ptr<ModuleWatcher> module_watcher_; 281 std::unique_ptr<ModuleWatcher> module_watcher_;
276 mojom::ModuleEventSinkPtr module_event_sink_; 282 mojom::ModuleEventSinkPtr module_event_sink_;
277 #endif 283 #endif
278 284
279 DISALLOW_COPY_AND_ASSIGN(ChromeContentRendererClient); 285 DISALLOW_COPY_AND_ASSIGN(ChromeContentRendererClient);
280 }; 286 };
281 287
282 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ 288 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698