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

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

Issue 1181493002: [Patch 3 of 6] Split out content/child's SiteIsolationPolicy into two new classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rename_policy_to_sniffer2
Patch Set: Add crbug. Created 5 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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 // populating |key_systems|. 266 // populating |key_systems|.
267 virtual void AddKeySystems(std::vector<media::KeySystemInfo>* key_systems); 267 virtual void AddKeySystems(std::vector<media::KeySystemInfo>* key_systems);
268 268
269 // Returns true if we should report a detailed message (including a stack 269 // Returns true if we should report a detailed message (including a stack
270 // trace) for console [logs|errors|exceptions]. |source| is the WebKit- 270 // trace) for console [logs|errors|exceptions]. |source| is the WebKit-
271 // reported source for the error; this can point to a page or a script, 271 // reported source for the error; this can point to a page or a script,
272 // and can be external or internal. 272 // and can be external or internal.
273 virtual bool ShouldReportDetailedMessageForSource( 273 virtual bool ShouldReportDetailedMessageForSource(
274 const base::string16& source) const; 274 const base::string16& source) const;
275 275
276 // Returns true if we should apply the cross-site document blocking policy to 276 // Returns true if we should gather stats during resource loads as if the
277 // this renderer process. Currently, we apply the policy only to a renderer 277 // cross-site document blocking policy were enabled. Does not actually block
278 // process running on a normal page from the web. 278 // any pages.
279 virtual bool ShouldEnableSiteIsolationPolicy() const; 279 virtual bool ShouldGatherSiteIsolationStats() const;
280 280
281 // Creates a permission client proxy for in-renderer worker. 281 // Creates a permission client proxy for in-renderer worker.
282 virtual blink::WebWorkerContentSettingsClientProxy* 282 virtual blink::WebWorkerContentSettingsClientProxy*
283 CreateWorkerContentSettingsClientProxy(RenderFrame* render_frame, 283 CreateWorkerContentSettingsClientProxy(RenderFrame* render_frame,
284 blink::WebFrame* frame); 284 blink::WebFrame* frame);
285 285
286 // Returns true if the page at |url| can use Pepper CameraDevice APIs. 286 // Returns true if the page at |url| can use Pepper CameraDevice APIs.
287 virtual bool IsPluginAllowedToUseCameraDeviceAPI(const GURL& url); 287 virtual bool IsPluginAllowedToUseCameraDeviceAPI(const GURL& url);
288 288
289 // Returns true if the page at |url| can use Pepper Compositor APIs. 289 // Returns true if the page at |url| can use Pepper Compositor APIs.
(...skipping 22 matching lines...) Expand all
312 // Gives the embedder a chance to add properties to the context menu. 312 // Gives the embedder a chance to add properties to the context menu.
313 // Currently only called when the context menu is for an image. 313 // Currently only called when the context menu is for an image.
314 virtual void AddImageContextMenuProperties( 314 virtual void AddImageContextMenuProperties(
315 const blink::WebURLResponse& response, 315 const blink::WebURLResponse& response,
316 std::map<std::string, std::string>* properties) {} 316 std::map<std::string, std::string>* properties) {}
317 }; 317 };
318 318
319 } // namespace content 319 } // namespace content
320 320
321 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 321 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/child/site_isolation_policy_unittest.cc ('k') | content/public/renderer/content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698