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 "services/ui/view_manager/view_manager_app.h" | 5 #include "services/ui/view_manager/view_manager_app.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/trace_event/trace_event.h" | 12 #include "base/trace_event/trace_event.h" |
13 #include "mojo/application/application_runner_chromium.h" | 13 #include "mojo/application/application_runner_chromium.h" |
14 #include "mojo/common/tracing_impl.h" | 14 #include "mojo/common/tracing_impl.h" |
15 #include "mojo/public/c/system/main.h" | 15 #include "mojo/public/c/system/main.h" |
16 #include "mojo/public/cpp/application/application_connection.h" | |
17 #include "mojo/public/cpp/application/application_impl.h" | 16 #include "mojo/public/cpp/application/application_impl.h" |
18 #include "mojo/public/cpp/application/connect.h" | 17 #include "mojo/public/cpp/application/connect.h" |
| 18 #include "mojo/public/cpp/application/service_provider_impl.h" |
19 #include "services/ui/view_manager/view_manager_impl.h" | 19 #include "services/ui/view_manager/view_manager_impl.h" |
20 | 20 |
21 namespace view_manager { | 21 namespace view_manager { |
22 | 22 |
23 ViewManagerApp::ViewManagerApp() : app_impl_(nullptr) {} | 23 ViewManagerApp::ViewManagerApp() : app_impl_(nullptr) {} |
24 | 24 |
25 ViewManagerApp::~ViewManagerApp() {} | 25 ViewManagerApp::~ViewManagerApp() {} |
26 | 26 |
27 void ViewManagerApp::Initialize(mojo::ApplicationImpl* app_impl) { | 27 void ViewManagerApp::Initialize(mojo::ApplicationImpl* app_impl) { |
28 app_impl_ = app_impl; | 28 app_impl_ = app_impl; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 void ViewManagerApp::OnAssociateConnectionError(const std::string& url) { | 79 void ViewManagerApp::OnAssociateConnectionError(const std::string& url) { |
80 LOG(ERROR) << "Exiting due to view associate connection error: url=" << url; | 80 LOG(ERROR) << "Exiting due to view associate connection error: url=" << url; |
81 Shutdown(); | 81 Shutdown(); |
82 } | 82 } |
83 | 83 |
84 void ViewManagerApp::Shutdown() { | 84 void ViewManagerApp::Shutdown() { |
85 app_impl_->Terminate(); | 85 app_impl_->Terminate(); |
86 } | 86 } |
87 | 87 |
88 } // namespace view_manager | 88 } // namespace view_manager |
OLD | NEW |