OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |