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

Side by Side Diff: content/renderer/render_frame_impl.cc

Issue 1913043002: Convert ManifestManager IPCs to Mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/renderer/render_frame_impl.h" 5 #include "content/renderer/render_frame_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 5971 matching lines...) Expand 10 before | Expand all | Expand 10 after
5982 #endif 5982 #endif
5983 return decoder_factory_.get(); 5983 return decoder_factory_.get();
5984 } 5984 }
5985 5985
5986 void RenderFrameImpl::RegisterMojoServices() { 5986 void RenderFrameImpl::RegisterMojoServices() {
5987 // Only main frame have ImageDownloader service. 5987 // Only main frame have ImageDownloader service.
5988 if (!frame_->parent()) { 5988 if (!frame_->parent()) {
5989 GetServiceRegistry()->AddService(base::Bind( 5989 GetServiceRegistry()->AddService(base::Bind(
5990 &ImageDownloaderImpl::CreateMojoService, base::Unretained(this))); 5990 &ImageDownloaderImpl::CreateMojoService, base::Unretained(this)));
5991 } 5991 }
5992 GetServiceRegistry()->AddService(base::Bind(
5993 &ManifestManager::BindToRequest, base::Unretained(manifest_manager_)));
5992 } 5994 }
5993 5995
5994 template <typename Interface> 5996 template <typename Interface>
5995 void RenderFrameImpl::GetInterface(mojo::InterfaceRequest<Interface> request) { 5997 void RenderFrameImpl::GetInterface(mojo::InterfaceRequest<Interface> request) {
5996 GetServiceRegistry()->ConnectToRemoteService(std::move(request)); 5998 GetServiceRegistry()->ConnectToRemoteService(std::move(request));
5997 } 5999 }
5998 6000
5999 shell::mojom::InterfaceProviderPtr RenderFrameImpl::ConnectToApplication( 6001 shell::mojom::InterfaceProviderPtr RenderFrameImpl::ConnectToApplication(
6000 const GURL& url) { 6002 const GURL& url) {
6001 if (!connector_) 6003 if (!connector_)
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
6109 // event target. Potentially a Pepper plugin will receive the event. 6111 // event target. Potentially a Pepper plugin will receive the event.
6110 // In order to tell whether a plugin gets the last mouse event and which it 6112 // In order to tell whether a plugin gets the last mouse event and which it
6111 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6113 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6112 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6114 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6113 // |pepper_last_mouse_event_target_|. 6115 // |pepper_last_mouse_event_target_|.
6114 pepper_last_mouse_event_target_ = nullptr; 6116 pepper_last_mouse_event_target_ = nullptr;
6115 #endif 6117 #endif
6116 } 6118 }
6117 6119
6118 } // namespace content 6120 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698