| 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_SHELL_CONTEXT_H_ | 5 #ifndef MOJO_SHELL_CONTEXT_H_ |
| 6 #define MOJO_SHELL_CONTEXT_H_ | 6 #define MOJO_SHELL_CONTEXT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 namespace shell { | 23 namespace shell { |
| 24 | 24 |
| 25 class DynamicApplicationLoader; | 25 class DynamicApplicationLoader; |
| 26 class ExternalApplicationListener; | 26 class ExternalApplicationListener; |
| 27 | 27 |
| 28 // The "global" context for the shell's main process. | 28 // The "global" context for the shell's main process. |
| 29 class Context : ApplicationManager::Delegate { | 29 class Context : ApplicationManager::Delegate { |
| 30 public: | 30 public: |
| 31 Context(); | 31 Context(); |
| 32 virtual ~Context(); | 32 ~Context() override; |
| 33 | 33 |
| 34 void Init(); | 34 void Init(); |
| 35 | 35 |
| 36 // ApplicationManager::Delegate override. | 36 // ApplicationManager::Delegate override. |
| 37 virtual void OnApplicationError(const GURL& gurl) override; | 37 void OnApplicationError(const GURL& gurl) override; |
| 38 | 38 |
| 39 void Run(const GURL& url); | 39 void Run(const GURL& url); |
| 40 ScopedMessagePipeHandle ConnectToServiceByName( | 40 ScopedMessagePipeHandle ConnectToServiceByName( |
| 41 const GURL& application_url, | 41 const GURL& application_url, |
| 42 const std::string& service_name); | 42 const std::string& service_name); |
| 43 | 43 |
| 44 TaskRunners* task_runners() { return task_runners_.get(); } | 44 TaskRunners* task_runners() { return task_runners_.get(); } |
| 45 ApplicationManager* application_manager() { return &application_manager_; } | 45 ApplicationManager* application_manager() { return &application_manager_; } |
| 46 MojoURLResolver* mojo_url_resolver() { return &mojo_url_resolver_; } | 46 MojoURLResolver* mojo_url_resolver() { return &mojo_url_resolver_; } |
| 47 | 47 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 63 base::MessageLoop* ui_loop_; | 63 base::MessageLoop* ui_loop_; |
| 64 #endif // defined(OS_ANDROID) | 64 #endif // defined(OS_ANDROID) |
| 65 | 65 |
| 66 DISALLOW_COPY_AND_ASSIGN(Context); | 66 DISALLOW_COPY_AND_ASSIGN(Context); |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 } // namespace shell | 69 } // namespace shell |
| 70 } // namespace mojo | 70 } // namespace mojo |
| 71 | 71 |
| 72 #endif // MOJO_SHELL_CONTEXT_H_ | 72 #endif // MOJO_SHELL_CONTEXT_H_ |
| OLD | NEW |