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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 1486043002: [webnfc] Implement push method for Android nfc mojo service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@step_6_add_mojo_service_CL
Patch Set: Avoid caching Activity. Created 4 years, 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/frame_host/render_frame_host_impl.h" 5 #include "content/browser/frame_host/render_frame_host_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 2258 matching lines...) Expand 10 before | Expand all | Expand 10 after
2269 2269
2270 shell::mojom::InterfaceProviderPtr services; 2270 shell::mojom::InterfaceProviderPtr services;
2271 setup->ExchangeInterfaceProviders(routing_id_, GetProxy(&services), 2271 setup->ExchangeInterfaceProviders(routing_id_, GetProxy(&services),
2272 std::move(exposed_services)); 2272 std::move(exposed_services));
2273 service_registry_->BindRemoteServiceProvider(std::move(services)); 2273 service_registry_->BindRemoteServiceProvider(std::move(services));
2274 2274
2275 #if defined(OS_ANDROID) 2275 #if defined(OS_ANDROID)
2276 service_registry_android_ = 2276 service_registry_android_ =
2277 ServiceRegistryAndroid::Create(service_registry_.get()); 2277 ServiceRegistryAndroid::Create(service_registry_.get());
2278 ServiceRegistrarAndroid::RegisterFrameHostServices( 2278 ServiceRegistrarAndroid::RegisterFrameHostServices(
2279 service_registry_android_.get()); 2279 service_registry_android_.get(), this);
2280 #endif 2280 #endif
2281 } 2281 }
2282 2282
2283 void RenderFrameHostImpl::InvalidateMojoConnection() { 2283 void RenderFrameHostImpl::InvalidateMojoConnection() {
2284 #if defined(OS_ANDROID) 2284 #if defined(OS_ANDROID)
2285 // The Android-specific service registry has a reference to 2285 // The Android-specific service registry has a reference to
2286 // |service_registry_| and thus must be torn down first. 2286 // |service_registry_| and thus must be torn down first.
2287 service_registry_android_.reset(); 2287 service_registry_android_.reset();
2288 #endif 2288 #endif
2289 2289
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
2764 // handler after it's destroyed so it can't run after the RFHI is destroyed. 2764 // handler after it's destroyed so it can't run after the RFHI is destroyed.
2765 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( 2765 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind(
2766 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); 2766 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this)));
2767 } 2767 }
2768 2768
2769 void RenderFrameHostImpl::DeleteWebBluetoothService() { 2769 void RenderFrameHostImpl::DeleteWebBluetoothService() {
2770 web_bluetooth_service_.reset(); 2770 web_bluetooth_service_.reset();
2771 } 2771 }
2772 2772
2773 } // namespace content 2773 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698