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

Side by Side Diff: components/html_viewer/html_document_application_delegate.cc

Issue 1681813002: Rename Connection::AddService/ConnectToService to Connection::AddInterface/GetInterface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@interface_binder
Patch Set: . Created 4 years, 10 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 | « components/html_viewer/html_document.cc ('k') | components/html_viewer/html_frame_apptest.cc » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 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 "components/html_viewer/html_document_application_delegate.h" 5 #include "components/html_viewer/html_document_application_delegate.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 10 matching lines...) Expand all
21 class HTMLDocumentApplicationDelegate::InterfaceBinderQueue 21 class HTMLDocumentApplicationDelegate::InterfaceBinderQueue
22 : public mojo::InterfaceBinder { 22 : public mojo::InterfaceBinder {
23 public: 23 public:
24 InterfaceBinderQueue() {} 24 InterfaceBinderQueue() {}
25 ~InterfaceBinderQueue() override {} 25 ~InterfaceBinderQueue() override {}
26 26
27 void PushRequestsTo(mojo::Connection* connection) { 27 void PushRequestsTo(mojo::Connection* connection) {
28 ScopedVector<Request> requests; 28 ScopedVector<Request> requests;
29 requests_.swap(requests); 29 requests_.swap(requests);
30 for (Request* request : requests) { 30 for (Request* request : requests) {
31 connection->GetLocalServiceProvider()->ConnectToService( 31 connection->GetLocalInterfaces()->ConnectToService(
32 request->interface_name, std::move(request->handle)); 32 request->interface_name, std::move(request->handle));
33 } 33 }
34 } 34 }
35 35
36 private: 36 private:
37 struct Request { 37 struct Request {
38 std::string interface_name; 38 std::string interface_name;
39 mojo::ScopedMessagePipeHandle handle; 39 mojo::ScopedMessagePipeHandle handle;
40 }; 40 };
41 41
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 HTMLFrame::CreateParams* params) { 178 HTMLFrame::CreateParams* params) {
179 return new HTMLFrame(params); 179 return new HTMLFrame(params);
180 } 180 }
181 181
182 HTMLWidgetRootLocal* HTMLDocumentApplicationDelegate::CreateHTMLWidgetRootLocal( 182 HTMLWidgetRootLocal* HTMLDocumentApplicationDelegate::CreateHTMLWidgetRootLocal(
183 HTMLWidgetRootLocal::CreateParams* params) { 183 HTMLWidgetRootLocal::CreateParams* params) {
184 return new HTMLWidgetRootLocal(params); 184 return new HTMLWidgetRootLocal(params);
185 } 185 }
186 186
187 } // namespace html_viewer 187 } // namespace html_viewer
OLDNEW
« no previous file with comments | « components/html_viewer/html_document.cc ('k') | components/html_viewer/html_frame_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698