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 package org.chromium.mojo.application; | 5 package org.chromium.mojo.application; |
6 | 6 |
7 import org.chromium.mojo.system.Core; | 7 import org.chromium.mojo.system.Core; |
8 import org.chromium.mojo.system.MessagePipeHandle; | 8 import org.chromium.mojo.system.MessagePipeHandle; |
9 import org.chromium.mojo.system.RunLoop; | 9 import org.chromium.mojo.system.RunLoop; |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 public static void run( | 23 public static void run( |
24 ApplicationDelegate delegate, Core core, MessagePipeHandle applicati
onRequest) { | 24 ApplicationDelegate delegate, Core core, MessagePipeHandle applicati
onRequest) { |
25 try (RunLoop runLoop = core.createDefaultRunLoop()) { | 25 try (RunLoop runLoop = core.createDefaultRunLoop()) { |
26 try (ApplicationImpl application = | 26 try (ApplicationImpl application = |
27 new ApplicationImpl(delegate, core, applicationReque
st)) { | 27 new ApplicationImpl(delegate, core, applicationReque
st)) { |
28 runLoop.run(); | 28 runLoop.run(); |
29 } | 29 } |
30 } | 30 } |
31 } | 31 } |
32 } | 32 } |
OLD | NEW |