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

Side by Side Diff: blimp/engine/app/blimp_content_browser_client.cc

Issue 2096643002: Eliminate MojoApplicationHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mah3
Patch Set: . Created 4 years, 6 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 (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 "content/public/common/service_registry.h" 9 #include "services/shell/public/cpp/interface_registry.h"
10 10
11 namespace blimp { 11 namespace blimp {
12 namespace engine { 12 namespace engine {
13 13
14 BlimpContentBrowserClient::BlimpContentBrowserClient() {} 14 BlimpContentBrowserClient::BlimpContentBrowserClient() {}
15 15
16 BlimpContentBrowserClient::~BlimpContentBrowserClient() {} 16 BlimpContentBrowserClient::~BlimpContentBrowserClient() {}
17 17
18 content::BrowserMainParts* BlimpContentBrowserClient::CreateBrowserMainParts( 18 content::BrowserMainParts* BlimpContentBrowserClient::CreateBrowserMainParts(
19 const content::MainFunctionParams& parameters) { 19 const content::MainFunctionParams& parameters) {
(...skipping 24 matching lines...) Expand all
44 if (!location_provider_) { 44 if (!location_provider_) {
45 location_provider_ = base::WrapUnique(new BlimpLocationProvider()); 45 location_provider_ = base::WrapUnique(new BlimpLocationProvider());
46 } 46 }
47 return location_provider_.get(); 47 return location_provider_.get();
48 } 48 }
49 49
50 bool BlimpContentBrowserClient::UseNetworkLocationProviders() { 50 bool BlimpContentBrowserClient::UseNetworkLocationProviders() {
51 return false; 51 return false;
52 } 52 }
53 53
54 void BlimpContentBrowserClient::RegisterRenderProcessMojoServices( 54 void BlimpContentBrowserClient::ExposeInterfacesToRenderer(
55 content::ServiceRegistry* registry, 55 shell::InterfaceRegistry* registry,
56 content::RenderProcessHost* render_process_host) { 56 content::RenderProcessHost* render_process_host) {
57 registry->AddService<mojom::BlobChannel>( 57 registry->AddInterface<mojom::BlobChannel>(
58 base::Bind(&BlobChannelService::Create, 58 base::Bind(&BlobChannelService::Create,
59 blimp_browser_main_parts_->GetBlobChannelSender())); 59 blimp_browser_main_parts_->GetBlobChannelSender()));
60 } 60 }
61 61
62 } // namespace engine 62 } // namespace engine
63 } // namespace blimp 63 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/engine/app/blimp_content_browser_client.h ('k') | chrome/browser/chrome_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698