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

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

Issue 2900563002: Network service: Safe browsing check for sub-resources from renderer. (Closed)
Patch Set: . 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
« no previous file with comments | « chrome/renderer/BUILD.gn ('k') | chrome/renderer/chrome_content_renderer_client.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) 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>
11 #include <memory> 11 #include <memory>
12 #include <set> 12 #include <set>
13 #include <string> 13 #include <string>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/compiler_specific.h" 16 #include "base/compiler_specific.h"
17 #include "base/gtest_prod_util.h" 17 #include "base/gtest_prod_util.h"
18 #include "base/strings/string16.h" 18 #include "base/strings/string16.h"
19 #include "chrome/common/safe_browsing.mojom.h"
19 #include "chrome/renderer/media/chrome_key_systems_provider.h" 20 #include "chrome/renderer/media/chrome_key_systems_provider.h"
20 #include "components/rappor/public/interfaces/rappor_recorder.mojom.h" 21 #include "components/rappor/public/interfaces/rappor_recorder.mojom.h"
21 #include "components/spellcheck/spellcheck_build_features.h" 22 #include "components/spellcheck/spellcheck_build_features.h"
22 #include "content/public/renderer/content_renderer_client.h" 23 #include "content/public/renderer/content_renderer_client.h"
23 #include "extensions/features/features.h" 24 #include "extensions/features/features.h"
24 #include "ipc/ipc_channel_proxy.h" 25 #include "ipc/ipc_channel_proxy.h"
25 #include "media/media_features.h" 26 #include "media/media_features.h"
26 #include "ppapi/features/features.h" 27 #include "ppapi/features/features.h"
27 #include "printing/features/features.h" 28 #include "printing/features/features.h"
28 #include "v8/include/v8.h" 29 #include "v8/include/v8.h"
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 const base::Closure& closure) override; 130 const base::Closure& closure) override;
130 bool RunIdleHandlerWhenWidgetsHidden() override; 131 bool RunIdleHandlerWhenWidgetsHidden() override;
131 bool AllowTimerSuspensionWhenProcessBackgrounded() override; 132 bool AllowTimerSuspensionWhenProcessBackgrounded() override;
132 bool AllowPopup() override; 133 bool AllowPopup() override;
133 bool ShouldFork(blink::WebLocalFrame* frame, 134 bool ShouldFork(blink::WebLocalFrame* frame,
134 const GURL& url, 135 const GURL& url,
135 const std::string& http_method, 136 const std::string& http_method,
136 bool is_initial_navigation, 137 bool is_initial_navigation,
137 bool is_server_redirect, 138 bool is_server_redirect,
138 bool* send_referrer) override; 139 bool* send_referrer) override;
139 bool WillSendRequest(blink::WebLocalFrame* frame, 140 bool WillSendRequest(
140 ui::PageTransition transition_type, 141 blink::WebLocalFrame* frame,
141 const blink::WebURL& url, 142 ui::PageTransition transition_type,
142 GURL* new_url) override; 143 const blink::WebURL& url,
144 std::vector<std::unique_ptr<content::URLLoaderThrottle>>* throttles,
145 GURL* new_url) override;
143 bool IsPrefetchOnly(content::RenderFrame* render_frame, 146 bool IsPrefetchOnly(content::RenderFrame* render_frame,
144 const blink::WebURLRequest& request) override; 147 const blink::WebURLRequest& request) override;
145 unsigned long long VisitedLinkHash(const char* canonical_url, 148 unsigned long long VisitedLinkHash(const char* canonical_url,
146 size_t length) override; 149 size_t length) override;
147 bool IsLinkVisited(unsigned long long link_hash) override; 150 bool IsLinkVisited(unsigned long long link_hash) override;
148 blink::WebPrescientNetworking* GetPrescientNetworking() override; 151 blink::WebPrescientNetworking* GetPrescientNetworking() override;
149 bool ShouldOverridePageVisibilityState( 152 bool ShouldOverridePageVisibilityState(
150 const content::RenderFrame* render_frame, 153 const content::RenderFrame* render_frame,
151 blink::WebPageVisibilityState* override_state) override; 154 blink::WebPageVisibilityState* override_state) override;
152 bool IsExternalPepperPlugin(const std::string& module_name) override; 155 bool IsExternalPepperPlugin(const std::string& module_name) override;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 rappor::mojom::RapporRecorderPtr rappor_recorder_; 238 rappor::mojom::RapporRecorderPtr rappor_recorder_;
236 239
237 std::unique_ptr<ChromeRenderThreadObserver> chrome_observer_; 240 std::unique_ptr<ChromeRenderThreadObserver> chrome_observer_;
238 std::unique_ptr<web_cache::WebCacheImpl> web_cache_impl_; 241 std::unique_ptr<web_cache::WebCacheImpl> web_cache_impl_;
239 242
240 std::unique_ptr<network_hints::PrescientNetworkingDispatcher> 243 std::unique_ptr<network_hints::PrescientNetworkingDispatcher>
241 prescient_networking_dispatcher_; 244 prescient_networking_dispatcher_;
242 245
243 chrome::ChromeKeySystemsProvider key_systems_provider_; 246 chrome::ChromeKeySystemsProvider key_systems_provider_;
244 247
248 chrome::mojom::SafeBrowsingPtr safe_browsing_;
249
245 #if BUILDFLAG(ENABLE_SPELLCHECK) 250 #if BUILDFLAG(ENABLE_SPELLCHECK)
246 std::unique_ptr<SpellCheck> spellcheck_; 251 std::unique_ptr<SpellCheck> spellcheck_;
247 #endif 252 #endif
248 std::unique_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; 253 std::unique_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_;
249 std::unique_ptr<subresource_filter::UnverifiedRulesetDealer> 254 std::unique_ptr<subresource_filter::UnverifiedRulesetDealer>
250 subresource_filter_ruleset_dealer_; 255 subresource_filter_ruleset_dealer_;
251 std::unique_ptr<prerender::PrerenderDispatcher> prerender_dispatcher_; 256 std::unique_ptr<prerender::PrerenderDispatcher> prerender_dispatcher_;
252 #if BUILDFLAG(ENABLE_WEBRTC) 257 #if BUILDFLAG(ENABLE_WEBRTC)
253 scoped_refptr<WebRtcLoggingMessageFilter> webrtc_logging_message_filter_; 258 scoped_refptr<WebRtcLoggingMessageFilter> webrtc_logging_message_filter_;
254 #endif 259 #endif
(...skipping 13 matching lines...) Expand all
268 // Observes module load and unload events and notifies the ModuleDatabase in 273 // Observes module load and unload events and notifies the ModuleDatabase in
269 // the browser process. 274 // the browser process.
270 std::unique_ptr<ModuleWatcher> module_watcher_; 275 std::unique_ptr<ModuleWatcher> module_watcher_;
271 mojom::ModuleEventSinkPtr module_event_sink_; 276 mojom::ModuleEventSinkPtr module_event_sink_;
272 #endif 277 #endif
273 278
274 DISALLOW_COPY_AND_ASSIGN(ChromeContentRendererClient); 279 DISALLOW_COPY_AND_ASSIGN(ChromeContentRendererClient);
275 }; 280 };
276 281
277 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ 282 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/renderer/BUILD.gn ('k') | chrome/renderer/chrome_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698