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

Side by Side Diff: shell/context.h

Issue 983113002: ApplicationManager: Use callback to get notified on application shutdown. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase after parameters fix Created 5 years, 9 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 | « shell/application_manager/shell_impl.cc ('k') | shell/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 SHELL_CONTEXT_H_ 5 #ifndef SHELL_CONTEXT_H_
6 #define SHELL_CONTEXT_H_ 6 #define SHELL_CONTEXT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 const std::string& service_name); 60 const std::string& service_name);
61 61
62 TaskRunners* task_runners() { return task_runners_.get(); } 62 TaskRunners* task_runners() { return task_runners_.get(); }
63 ApplicationManager* application_manager() { return &application_manager_; } 63 ApplicationManager* application_manager() { return &application_manager_; }
64 URLResolver* url_resolver() { return &url_resolver_; } 64 URLResolver* url_resolver() { return &url_resolver_; }
65 65
66 private: 66 private:
67 class NativeViewportApplicationLoader; 67 class NativeViewportApplicationLoader;
68 68
69 // ApplicationManager::Delegate overrides. 69 // ApplicationManager::Delegate overrides.
70 void OnApplicationError(const GURL& url) override;
71 GURL ResolveURL(const GURL& url) override; 70 GURL ResolveURL(const GURL& url) override;
72 GURL ResolveMappings(const GURL& url) override; 71 GURL ResolveMappings(const GURL& url) override;
73 72
74 // ProcessDelegate implementation. 73 // ProcessDelegate implementation.
75 void OnShutdownComplete() override; 74 void OnShutdownComplete() override;
76 75
76 void OnApplicationEnd(const GURL& url);
77
77 std::set<GURL> app_urls_; 78 std::set<GURL> app_urls_;
78 scoped_ptr<TaskRunners> task_runners_; 79 scoped_ptr<TaskRunners> task_runners_;
79 scoped_ptr<ExternalApplicationListener> listener_; 80 scoped_ptr<ExternalApplicationListener> listener_;
80 ApplicationManager application_manager_; 81 ApplicationManager application_manager_;
81 URLResolver url_resolver_; 82 URLResolver url_resolver_;
82 GURL shell_file_root_; 83 GURL shell_file_root_;
83 GURL command_line_cwd_; 84 GURL command_line_cwd_;
84 85
85 DISALLOW_COPY_AND_ASSIGN(Context); 86 DISALLOW_COPY_AND_ASSIGN(Context);
86 }; 87 };
87 88
88 } // namespace shell 89 } // namespace shell
89 } // namespace mojo 90 } // namespace mojo
90 91
91 #endif // SHELL_CONTEXT_H_ 92 #endif // SHELL_CONTEXT_H_
OLDNEW
« no previous file with comments | « shell/application_manager/shell_impl.cc ('k') | shell/context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698