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

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: Move WindowAndroidChangedObserver to other observers in content layer Created 4 years, 4 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
« no previous file with comments | « no previous file | content/browser/mojo/interface_registrar_android.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2479 matching lines...) Expand 10 before | Expand all | Expand 10 after
2490 shell::mojom::InterfaceProviderRequest remote_interfaces_request = 2490 shell::mojom::InterfaceProviderRequest remote_interfaces_request =
2491 GetProxy(&remote_interfaces); 2491 GetProxy(&remote_interfaces);
2492 remote_interfaces_.reset(new shell::InterfaceProvider); 2492 remote_interfaces_.reset(new shell::InterfaceProvider);
2493 remote_interfaces_->Bind(std::move(remote_interfaces)); 2493 remote_interfaces_->Bind(std::move(remote_interfaces));
2494 frame_->GetInterfaceProvider(std::move(remote_interfaces_request)); 2494 frame_->GetInterfaceProvider(std::move(remote_interfaces_request));
2495 2495
2496 #if defined(OS_ANDROID) 2496 #if defined(OS_ANDROID)
2497 interface_registry_android_ = 2497 interface_registry_android_ =
2498 InterfaceRegistryAndroid::Create(interface_registry_.get()); 2498 InterfaceRegistryAndroid::Create(interface_registry_.get());
2499 InterfaceRegistrarAndroid::ExposeInterfacesToFrame( 2499 InterfaceRegistrarAndroid::ExposeInterfacesToFrame(
2500 interface_registry_android_.get()); 2500 interface_registry_android_.get(), this);
2501 #endif 2501 #endif
2502 } 2502 }
2503 2503
2504 void RenderFrameHostImpl::InvalidateMojoConnection() { 2504 void RenderFrameHostImpl::InvalidateMojoConnection() {
2505 #if defined(OS_ANDROID) 2505 #if defined(OS_ANDROID)
2506 // The Android-specific interface registry has a reference to 2506 // The Android-specific interface registry has a reference to
2507 // |interface_registry_| and thus must be torn down first. 2507 // |interface_registry_| and thus must be torn down first.
2508 interface_registry_android_.reset(); 2508 interface_registry_android_.reset();
2509 #endif 2509 #endif
2510 2510
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
3044 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( 3044 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind(
3045 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); 3045 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this)));
3046 return web_bluetooth_service_.get(); 3046 return web_bluetooth_service_.get();
3047 } 3047 }
3048 3048
3049 void RenderFrameHostImpl::DeleteWebBluetoothService() { 3049 void RenderFrameHostImpl::DeleteWebBluetoothService() {
3050 web_bluetooth_service_.reset(); 3050 web_bluetooth_service_.reset();
3051 } 3051 }
3052 3052
3053 } // namespace content 3053 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/mojo/interface_registrar_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698