| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "win8/viewer/metro_viewer_process_host.h" | 5 #include "win8/viewer/metro_viewer_process_host.h" |
| 6 | 6 |
| 7 #include <shlobj.h> | 7 #include <shlobj.h> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/path_service.h" | 13 #include "base/path_service.h" |
| 14 #include "base/process/process.h" | 14 #include "base/process/process.h" |
| 15 #include "base/process/process_handle.h" | 15 #include "base/process/process_handle.h" |
| 16 #include "base/strings/string16.h" | 16 #include "base/strings/string16.h" |
| 17 #include "base/synchronization/waitable_event.h" | 17 #include "base/synchronization/waitable_event.h" |
| 18 #include "base/time/time.h" | 18 #include "base/time/time.h" |
| 19 #include "base/win/scoped_comptr.h" | 19 #include "base/win/scoped_comptr.h" |
| 20 #include "base/win/windows_version.h" | 20 #include "base/win/windows_version.h" |
| 21 #include "ipc/ipc_channel_proxy.h" |
| 21 #include "ipc/ipc_message.h" | 22 #include "ipc/ipc_message.h" |
| 22 #include "ipc/ipc_message_macros.h" | 23 #include "ipc/ipc_message_macros.h" |
| 23 #include "ui/aura/remote_window_tree_host_win.h" | 24 #include "ui/aura/remote_window_tree_host_win.h" |
| 24 #include "ui/metro_viewer/metro_viewer_messages.h" | 25 #include "ui/metro_viewer/metro_viewer_messages.h" |
| 25 #include "win8/viewer/metro_viewer_constants.h" | 26 #include "win8/viewer/metro_viewer_constants.h" |
| 26 | 27 |
| 27 namespace { | 28 namespace { |
| 28 | 29 |
| 29 const int kViewerProcessConnectionTimeoutSecs = 60; | 30 const int kViewerProcessConnectionTimeoutSecs = 60; |
| 30 | 31 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 return handled ? true : | 139 return handled ? true : |
| 139 aura::RemoteWindowTreeHostWin::Instance()->OnMessageReceived(message); | 140 aura::RemoteWindowTreeHostWin::Instance()->OnMessageReceived(message); |
| 140 } | 141 } |
| 141 | 142 |
| 142 void MetroViewerProcessHost::NotifyChannelConnected() { | 143 void MetroViewerProcessHost::NotifyChannelConnected() { |
| 143 if (channel_connected_event_) | 144 if (channel_connected_event_) |
| 144 channel_connected_event_->Signal(); | 145 channel_connected_event_->Signal(); |
| 145 } | 146 } |
| 146 | 147 |
| 147 } // namespace win8 | 148 } // namespace win8 |
| OLD | NEW |