Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(935)

Side by Side Diff: mojo/runner/context.h

Issue 1134713003: Make Android Mojo Runner respect command line apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync and rebase. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/runner/android/main.cc ('k') | mojo/runner/context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « mojo/runner/android/main.cc ('k') | mojo/runner/context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698