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> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/i18n/rtl.h" | 13 #include "base/i18n/rtl.h" |
14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
15 #include "content/browser/webui/web_ui_impl.h" | 15 #include "content/browser/webui/web_ui_impl.h" |
16 #include "content/common/content_export.h" | 16 #include "content/common/content_export.h" |
17 #include "content/common/frame_message_enums.h" | 17 #include "content/common/frame_message_enums.h" |
18 #include "content/public/browser/site_instance.h" | 18 #include "content/public/browser/site_instance.h" |
19 #include "content/public/common/javascript_dialog_type.h" | 19 #include "content/public/common/javascript_dialog_type.h" |
20 #include "content/public/common/media_stream_request.h" | 20 #include "content/public/common/media_stream_request.h" |
21 #include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h" | 21 #include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h" |
22 #include "net/http/http_response_headers.h" | 22 #include "net/http/http_response_headers.h" |
23 #include "ui/base/window_open_disposition.h" | 23 #include "ui/base/window_open_disposition.h" |
24 | 24 |
25 #if defined(OS_WIN) | 25 #if defined(OS_WIN) |
26 #include "ui/gfx/native_widget_types.h" | 26 #include "ui/gfx/native_widget_types.h" |
27 #endif | 27 #endif |
28 | 28 |
| 29 #if defined(OS_ANDROID) |
| 30 #include "base/android/scoped_java_ref.h" |
| 31 #endif |
| 32 |
29 class GURL; | 33 class GURL; |
30 | 34 |
31 namespace IPC { | 35 namespace IPC { |
32 class Message; | 36 class Message; |
33 } | 37 } |
34 | 38 |
35 namespace device { | 39 namespace device { |
36 class GeolocationServiceContext; | 40 class GeolocationServiceContext; |
37 class WakeLockServiceContext; | 41 class WakeLockServiceContext; |
38 } | 42 } |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 // Reports that passive mixed content was found at the specified url. | 287 // Reports that passive mixed content was found at the specified url. |
284 virtual void PassiveInsecureContentFound(const GURL& resource_url) {} | 288 virtual void PassiveInsecureContentFound(const GURL& resource_url) {} |
285 | 289 |
286 // Checks if running of active mixed content is allowed for the specified | 290 // Checks if running of active mixed content is allowed for the specified |
287 // WebContents/tab. | 291 // WebContents/tab. |
288 virtual bool ShouldAllowRunningInsecureContent(WebContents* web_contents, | 292 virtual bool ShouldAllowRunningInsecureContent(WebContents* web_contents, |
289 bool allowed_per_prefs, | 293 bool allowed_per_prefs, |
290 const url::Origin& origin, | 294 const url::Origin& origin, |
291 const GURL& resource_url); | 295 const GURL& resource_url); |
292 | 296 |
| 297 #if defined(OS_ANDROID) |
| 298 virtual base::android::ScopedJavaLocalRef<jobject> |
| 299 GetJavaRenderFrameHostDelegate(); |
| 300 #endif |
| 301 |
293 protected: | 302 protected: |
294 virtual ~RenderFrameHostDelegate() {} | 303 virtual ~RenderFrameHostDelegate() {} |
295 }; | 304 }; |
296 | 305 |
297 } // namespace content | 306 } // namespace content |
298 | 307 |
299 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 308 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
OLD | NEW |