OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #ifndef MOJO_RUNNER_CONTEXT_H_ | 5 #ifndef MOJO_RUNNER_CONTEXT_H_ |
6 #define MOJO_RUNNER_CONTEXT_H_ | 6 #define MOJO_RUNNER_CONTEXT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 // This must be called with a message loop set up for the current thread, | 48 // This must be called with a message loop set up for the current thread, |
49 // which must remain alive until after Shutdown() is called. Returns true on | 49 // which must remain alive until after Shutdown() is called. Returns true on |
50 // success. | 50 // success. |
51 bool Init(); | 51 bool Init(); |
52 | 52 |
53 // If Init() was called and succeeded, this must be called before destruction. | 53 // If Init() was called and succeeded, this must be called before destruction. |
54 void Shutdown(); | 54 void Shutdown(); |
55 | 55 |
56 void Run(const GURL& url); | 56 void Run(const GURL& url); |
57 | 57 |
| 58 // Run the application specified on the commandline. |
| 59 void RunCommandLineApplication(); |
| 60 |
58 TaskRunners* task_runners() { return task_runners_.get(); } | 61 TaskRunners* task_runners() { return task_runners_.get(); } |
59 shell::ApplicationManager* application_manager() { | 62 shell::ApplicationManager* application_manager() { |
60 return &application_manager_; | 63 return &application_manager_; |
61 } | 64 } |
62 URLResolver* url_resolver() { return &url_resolver_; } | 65 URLResolver* url_resolver() { return &url_resolver_; } |
63 | 66 |
64 private: | 67 private: |
65 class NativeViewportApplicationLoader; | 68 class NativeViewportApplicationLoader; |
66 | 69 |
67 // ApplicationManager::Delegate overrides. | 70 // ApplicationManager::Delegate overrides. |
(...skipping 15 matching lines...) Expand all Loading... |
83 GURL shell_file_root_; | 86 GURL shell_file_root_; |
84 GURL command_line_cwd_; | 87 GURL command_line_cwd_; |
85 | 88 |
86 DISALLOW_COPY_AND_ASSIGN(Context); | 89 DISALLOW_COPY_AND_ASSIGN(Context); |
87 }; | 90 }; |
88 | 91 |
89 } // namespace runner | 92 } // namespace runner |
90 } // namespace mojo | 93 } // namespace mojo |
91 | 94 |
92 #endif // MOJO_RUNNER_CONTEXT_H_ | 95 #endif // MOJO_RUNNER_CONTEXT_H_ |
OLD | NEW |