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

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

Issue 1679573002: Move shell interfaces into the shell.mojom namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@delegate
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
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_application_delegate.h ('k') | components/html_viewer/html_viewer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698