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 SessionStorageNamespace; | 54 class SessionStorageNamespace; |
51 class WebContents; | 55 class WebContents; |
52 struct AXEventNotificationDetails; | 56 struct AXEventNotificationDetails; |
53 struct AXLocationChangeNotificationDetails; | 57 struct AXLocationChangeNotificationDetails; |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 // CreateNewWindow. | 268 // CreateNewWindow. |
265 // | 269 // |
266 // Note: this is not called "ShowWindow" because that will clash with | 270 // Note: this is not called "ShowWindow" because that will clash with |
267 // the Windows function which is actually a #define. | 271 // the Windows function which is actually a #define. |
268 virtual void ShowCreatedWindow(int process_id, | 272 virtual void ShowCreatedWindow(int process_id, |
269 int main_frame_widget_route_id, | 273 int main_frame_widget_route_id, |
270 WindowOpenDisposition disposition, | 274 WindowOpenDisposition disposition, |
271 const gfx::Rect& initial_rect, | 275 const gfx::Rect& initial_rect, |
272 bool user_gesture) {} | 276 bool user_gesture) {} |
273 | 277 |
| 278 // Notifies that mixed content was displayed or ran. |
| 279 virtual void DidDisplayInsecureContent() {} |
| 280 virtual void DidRunInsecureContent(const GURL& security_origin, |
| 281 const GURL& target_url) {} |
| 282 |
| 283 // Reports that passive mixed content was found at the specified url. |
| 284 virtual void PassiveInsecureContentFound(const GURL& resource_url) {} |
| 285 |
| 286 // Checks if running of active mixed content is allowed for the specified |
| 287 // WebContents/tab. |
| 288 virtual bool ShouldAllowRunningInsecureContent(WebContents* web_contents, |
| 289 bool allowed_per_prefs, |
| 290 const url::Origin& origin, |
| 291 const GURL& resource_url); |
| 292 |
274 protected: | 293 protected: |
275 virtual ~RenderFrameHostDelegate() {} | 294 virtual ~RenderFrameHostDelegate() {} |
276 }; | 295 }; |
277 | 296 |
278 } // namespace content | 297 } // namespace content |
279 | 298 |
280 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 299 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
OLD | NEW |