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

Side by Side Diff: content/browser/frame_host/render_frame_host_delegate.h

Issue 2681933002: Add Java wrapper for RenderFrameHost (Closed)
Patch Set: Try to address all review comments Created 3 years, 9 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 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
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 return nullptr;
boliu 2017/03/06 23:12:38 can't inline this, clang bot will complain
rwlbuis 2017/03/07 19:44:55 Done.
301 }
302 #endif
303
293 protected: 304 protected:
294 virtual ~RenderFrameHostDelegate() {} 305 virtual ~RenderFrameHostDelegate() {}
295 }; 306 };
296 307
297 } // namespace content 308 } // namespace content
298 309
299 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 310 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698