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

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

Issue 1859753002: Blimp: create Mojo component for renderer/browser communication. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: yzshen and nyquist feedback Created 4 years, 8 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/common/blimp_browser_context.h" 8 #include "blimp/engine/common/blimp_browser_context.h"
9 #include "blimp/engine/mojo/blob_channel_service.h"
10 #include "content/public/common/service_registry.h"
9 11
10 namespace blimp { 12 namespace blimp {
11 namespace engine { 13 namespace engine {
12 14
13 BlimpContentBrowserClient::BlimpContentBrowserClient() {} 15 BlimpContentBrowserClient::BlimpContentBrowserClient() {}
14 16
15 BlimpContentBrowserClient::~BlimpContentBrowserClient() {} 17 BlimpContentBrowserClient::~BlimpContentBrowserClient() {}
16 18
17 content::BrowserMainParts* BlimpContentBrowserClient::CreateBrowserMainParts( 19 content::BrowserMainParts* BlimpContentBrowserClient::CreateBrowserMainParts(
18 const content::MainFunctionParams& parameters) { 20 const content::MainFunctionParams& parameters) {
(...skipping 23 matching lines...) Expand all
42 return; 44 return;
43 45
44 blimp_browser_main_parts_->GetSettingsManager()->UpdateWebkitPreferences( 46 blimp_browser_main_parts_->GetSettingsManager()->UpdateWebkitPreferences(
45 prefs); 47 prefs);
46 } 48 }
47 49
48 BlimpBrowserContext* BlimpContentBrowserClient::GetBrowserContext() { 50 BlimpBrowserContext* BlimpContentBrowserClient::GetBrowserContext() {
49 return blimp_browser_main_parts_->GetBrowserContext(); 51 return blimp_browser_main_parts_->GetBrowserContext();
50 } 52 }
51 53
54 void BlimpContentBrowserClient::RegisterRenderProcessMojoServices(
55 content::ServiceRegistry* registry) {
56 registry->AddService<mojom::BlobChannel>(
57 base::Bind(&BlobChannelService::Create));
58 }
59
52 } // namespace engine 60 } // namespace engine
53 } // namespace blimp 61 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/engine/app/blimp_content_browser_client.h ('k') | blimp/engine/app/blimp_content_main_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698