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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 request->handle = std::move(handle); | 49 request->handle = std::move(handle); |
50 requests_.push_back(std::move(request)); | 50 requests_.push_back(std::move(request)); |
51 } | 51 } |
52 | 52 |
53 ScopedVector<Request> requests_; | 53 ScopedVector<Request> requests_; |
54 | 54 |
55 DISALLOW_COPY_AND_ASSIGN(ServiceConnectorQueue); | 55 DISALLOW_COPY_AND_ASSIGN(ServiceConnectorQueue); |
56 }; | 56 }; |
57 | 57 |
58 HTMLDocumentApplicationDelegate::HTMLDocumentApplicationDelegate( | 58 HTMLDocumentApplicationDelegate::HTMLDocumentApplicationDelegate( |
59 mojo::InterfaceRequest<mojo::Application> request, | 59 mojo::ApplicationRequest request, |
60 mojo::URLResponsePtr response, | 60 mojo::URLResponsePtr response, |
61 GlobalState* global_state, | 61 GlobalState* global_state, |
62 scoped_ptr<mojo::AppRefCount> parent_app_refcount, | 62 scoped_ptr<mojo::AppRefCount> parent_app_refcount, |
63 const mojo::Callback<void()>& destruct_callback) | 63 const mojo::Callback<void()>& destruct_callback) |
64 : app_(this, | 64 : app_(this, |
65 std::move(request), | 65 std::move(request), |
66 base::Bind(&HTMLDocumentApplicationDelegate::OnTerminate, | 66 base::Bind(&HTMLDocumentApplicationDelegate::OnTerminate, |
67 base::Unretained(this))), | 67 base::Unretained(this))), |
68 parent_app_refcount_(std::move(parent_app_refcount)), | 68 parent_app_refcount_(std::move(parent_app_refcount)), |
69 url_(response->url), | 69 url_(response->url), |
(...skipping 108 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 |