| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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 "blimp/engine/app/blimp_content_browser_client.h" | 5 #include "blimp/engine/app/blimp_content_browser_client.h" |
| 6 #include "blimp/engine/app/blimp_browser_main_parts.h" | 6 #include "blimp/engine/app/blimp_browser_main_parts.h" |
| 7 #include "blimp/engine/app/settings_manager.h" | 7 #include "blimp/engine/app/settings_manager.h" |
| 8 #include "blimp/engine/mojo/blob_channel_service.h" | 8 #include "blimp/engine/mojo/blob_channel_service.h" |
| 9 #include "blimp/engine/session/blimp_engine_session.h" |
| 9 #include "content/public/common/service_registry.h" | 10 #include "content/public/common/service_registry.h" |
| 10 | 11 |
| 11 namespace blimp { | 12 namespace blimp { |
| 12 namespace engine { | 13 namespace engine { |
| 13 | 14 |
| 14 BlimpContentBrowserClient::BlimpContentBrowserClient() {} | 15 BlimpContentBrowserClient::BlimpContentBrowserClient() {} |
| 15 | 16 |
| 16 BlimpContentBrowserClient::~BlimpContentBrowserClient() {} | 17 BlimpContentBrowserClient::~BlimpContentBrowserClient() {} |
| 17 | 18 |
| 18 content::BrowserMainParts* BlimpContentBrowserClient::CreateBrowserMainParts( | 19 content::BrowserMainParts* BlimpContentBrowserClient::CreateBrowserMainParts( |
| (...skipping 19 matching lines...) Expand all Loading... |
| 38 BlimpBrowserContext* BlimpContentBrowserClient::GetBrowserContext() { | 39 BlimpBrowserContext* BlimpContentBrowserClient::GetBrowserContext() { |
| 39 return blimp_browser_main_parts_->GetBrowserContext(); | 40 return blimp_browser_main_parts_->GetBrowserContext(); |
| 40 } | 41 } |
| 41 | 42 |
| 42 void BlimpContentBrowserClient::RegisterRenderProcessMojoServices( | 43 void BlimpContentBrowserClient::RegisterRenderProcessMojoServices( |
| 43 content::ServiceRegistry* registry) { | 44 content::ServiceRegistry* registry) { |
| 44 registry->AddService<mojom::BlobChannel>( | 45 registry->AddService<mojom::BlobChannel>( |
| 45 base::Bind(&BlobChannelService::Create)); | 46 base::Bind(&BlobChannelService::Create)); |
| 46 } | 47 } |
| 47 | 48 |
| 49 content::WebContentsViewDelegate* |
| 50 BlimpContentBrowserClient::GetWebContentsViewDelegate( |
| 51 content::WebContents* web_contents) { |
| 52 return blimp_browser_main_parts_->GetBlimpEngineSession(); |
| 53 } |
| 54 |
| 48 } // namespace engine | 55 } // namespace engine |
| 49 } // namespace blimp | 56 } // namespace blimp |
| OLD | NEW |