| OLD | NEW | 
|    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  Loading... | 
|   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->GetLocalInterfaces()->ConnectToService( |   31       connection->GetLocalInterfaces()->GetInterface( | 
|   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  Loading... | 
|  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 | 
| OLD | NEW |