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 #include "content/public/browser/web_contents_delegate.h" | 5 #include "content/public/browser/web_contents_delegate.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 blink::WebDragOperationsMask operations_allowed) { | 130 blink::WebDragOperationsMask operations_allowed) { |
131 return true; | 131 return true; |
132 } | 132 } |
133 | 133 |
134 bool WebContentsDelegate::OnGoToEntryOffset(int offset) { | 134 bool WebContentsDelegate::OnGoToEntryOffset(int offset) { |
135 return true; | 135 return true; |
136 } | 136 } |
137 | 137 |
138 bool WebContentsDelegate::ShouldCreateWebContents( | 138 bool WebContentsDelegate::ShouldCreateWebContents( |
139 WebContents* web_contents, | 139 WebContents* web_contents, |
| 140 RenderFrameHost* opener, |
140 SiteInstance* source_site_instance, | 141 SiteInstance* source_site_instance, |
141 int32_t route_id, | 142 int32_t route_id, |
142 int32_t main_frame_route_id, | 143 int32_t main_frame_route_id, |
143 int32_t main_frame_widget_route_id, | 144 int32_t main_frame_widget_route_id, |
144 content::mojom::WindowContainerType window_container_type, | 145 content::mojom::WindowContainerType window_container_type, |
145 const GURL& opener_url, | 146 const GURL& opener_url, |
146 const std::string& frame_name, | 147 const std::string& frame_name, |
147 const GURL& target_url, | 148 const GURL& target_url, |
148 const std::string& partition_id, | 149 const std::string& partition_id, |
149 SessionStorageNamespace* session_storage_namespace) { | 150 SessionStorageNamespace* session_storage_namespace) { |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 | 275 |
275 bool WebContentsDelegate::ShouldAllowRunningInsecureContent( | 276 bool WebContentsDelegate::ShouldAllowRunningInsecureContent( |
276 WebContents* web_contents, | 277 WebContents* web_contents, |
277 bool allowed_per_prefs, | 278 bool allowed_per_prefs, |
278 const url::Origin& origin, | 279 const url::Origin& origin, |
279 const GURL& resource_url) { | 280 const GURL& resource_url) { |
280 return allowed_per_prefs; | 281 return allowed_per_prefs; |
281 } | 282 } |
282 | 283 |
283 } // namespace content | 284 } // namespace content |
OLD | NEW |