OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 namespace device { | 35 namespace device { |
36 class GeolocationServiceContext; | 36 class GeolocationServiceContext; |
37 class WakeLockServiceContext; | 37 class WakeLockServiceContext; |
38 } | 38 } |
39 | 39 |
40 namespace gfx { | 40 namespace gfx { |
41 class Rect; | 41 class Rect; |
42 } | 42 } |
43 | 43 |
| 44 namespace url { |
| 45 class Origin; |
| 46 } |
| 47 |
44 namespace content { | 48 namespace content { |
45 class FrameTreeNode; | 49 class FrameTreeNode; |
46 class InterstitialPage; | 50 class InterstitialPage; |
47 class PageState; | 51 class PageState; |
48 class RenderFrameHost; | 52 class RenderFrameHost; |
49 class RenderFrameHostImpl; | 53 class RenderFrameHostImpl; |
50 class ScreenOrientationProvider; | 54 class ScreenOrientationProvider; |
51 class SessionStorageNamespace; | 55 class SessionStorageNamespace; |
52 class WebContents; | 56 class WebContents; |
53 struct AXEventNotificationDetails; | 57 struct AXEventNotificationDetails; |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 // CreateNewWindow. | 266 // CreateNewWindow. |
263 // | 267 // |
264 // Note: this is not called "ShowWindow" because that will clash with | 268 // Note: this is not called "ShowWindow" because that will clash with |
265 // the Windows function which is actually a #define. | 269 // the Windows function which is actually a #define. |
266 virtual void ShowCreatedWindow(int process_id, | 270 virtual void ShowCreatedWindow(int process_id, |
267 int main_frame_widget_route_id, | 271 int main_frame_widget_route_id, |
268 WindowOpenDisposition disposition, | 272 WindowOpenDisposition disposition, |
269 const gfx::Rect& initial_rect, | 273 const gfx::Rect& initial_rect, |
270 bool user_gesture) {} | 274 bool user_gesture) {} |
271 | 275 |
| 276 // Notifies that mixed content was displayed or ran. |
| 277 virtual void DidDisplayInsecureContent() {} |
| 278 virtual void DidRunInsecureContent(const GURL& security_origin, |
| 279 const GURL& target_url) {} |
| 280 |
| 281 // Reports that passive mixed content was found at the specified url. |
| 282 virtual void PassiveInsecureContentFound(const GURL& resource_url) {} |
| 283 |
| 284 // Checks if running of active mixed content is allowed for the specified |
| 285 // WebContents/tab. |
| 286 virtual bool ShouldAllowRunningInsecureContent(WebContents* web_contents, |
| 287 bool allowed_per_settings, |
| 288 const url::Origin& origin, |
| 289 const GURL& resource_url); |
| 290 |
272 protected: | 291 protected: |
273 virtual ~RenderFrameHostDelegate() {} | 292 virtual ~RenderFrameHostDelegate() {} |
274 }; | 293 }; |
275 | 294 |
276 } // namespace content | 295 } // namespace content |
277 | 296 |
278 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 297 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
OLD | NEW |