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/browser/web_contents/web_contents_impl.h" | 5 #include "content/browser/web_contents/web_contents_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <cmath> | 9 #include <cmath> |
10 #include <utility> | 10 #include <utility> |
(...skipping 5000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5011 | 5011 |
5012 bool WebContentsImpl::CreateRenderViewForInitialEmptyDocument() { | 5012 bool WebContentsImpl::CreateRenderViewForInitialEmptyDocument() { |
5013 return CreateRenderViewForRenderManager( | 5013 return CreateRenderViewForRenderManager( |
5014 GetRenderViewHost(), MSG_ROUTING_NONE, MSG_ROUTING_NONE, | 5014 GetRenderViewHost(), MSG_ROUTING_NONE, MSG_ROUTING_NONE, |
5015 frame_tree_.root()->current_replication_state()); | 5015 frame_tree_.root()->current_replication_state()); |
5016 } | 5016 } |
5017 | 5017 |
5018 service_manager::InterfaceProvider* WebContentsImpl::GetJavaInterfaces() { | 5018 service_manager::InterfaceProvider* WebContentsImpl::GetJavaInterfaces() { |
5019 if (!java_interfaces_) { | 5019 if (!java_interfaces_) { |
5020 service_manager::mojom::InterfaceProviderPtr provider; | 5020 service_manager::mojom::InterfaceProviderPtr provider; |
5021 BindInterfaceRegistryForWebContents(mojo::GetProxy(&provider), this); | 5021 BindInterfaceRegistryForWebContents(mojo::MakeRequest(&provider), this); |
5022 java_interfaces_.reset(new service_manager::InterfaceProvider); | 5022 java_interfaces_.reset(new service_manager::InterfaceProvider); |
5023 java_interfaces_->Bind(std::move(provider)); | 5023 java_interfaces_->Bind(std::move(provider)); |
5024 } | 5024 } |
5025 return java_interfaces_.get(); | 5025 return java_interfaces_.get(); |
5026 } | 5026 } |
5027 | 5027 |
5028 #elif defined(OS_MACOSX) | 5028 #elif defined(OS_MACOSX) |
5029 | 5029 |
5030 void WebContentsImpl::SetAllowOtherViews(bool allow) { | 5030 void WebContentsImpl::SetAllowOtherViews(bool allow) { |
5031 view_->SetAllowOtherViews(allow); | 5031 view_->SetAllowOtherViews(allow); |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5332 GetMainFrame()->AddMessageToConsole( | 5332 GetMainFrame()->AddMessageToConsole( |
5333 content::CONSOLE_MESSAGE_LEVEL_WARNING, | 5333 content::CONSOLE_MESSAGE_LEVEL_WARNING, |
5334 base::StringPrintf("This site does not have a valid SSL " | 5334 base::StringPrintf("This site does not have a valid SSL " |
5335 "certificate! Without SSL, your site's and " | 5335 "certificate! Without SSL, your site's and " |
5336 "visitors' data is vulnerable to theft and " | 5336 "visitors' data is vulnerable to theft and " |
5337 "tampering. Get a valid SSL certificate before" | 5337 "tampering. Get a valid SSL certificate before" |
5338 " releasing your website to the public.")); | 5338 " releasing your website to the public.")); |
5339 } | 5339 } |
5340 | 5340 |
5341 } // namespace content | 5341 } // namespace content |
OLD | NEW |