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

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

Issue 1231493002: mandoline filesystem: Save cookie data to the mojo:filesystem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT for jam's core services patch. Created 5 years, 5 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
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"
11 #include "mojo/edk/embedder/process_delegate.h" 11 #include "mojo/edk/embedder/process_delegate.h"
12 #include "mojo/runner/scoped_user_data_dir.h"
12 #include "mojo/runner/task_runners.h" 13 #include "mojo/runner/task_runners.h"
13 #include "mojo/runner/url_resolver.h" 14 #include "mojo/runner/url_resolver.h"
14 #include "mojo/shell/application_manager.h" 15 #include "mojo/shell/application_manager.h"
15 16
16 namespace mojo { 17 namespace mojo {
17 namespace runner { 18 namespace runner {
18 19
19 class NativeApplicationLoader; 20 class NativeApplicationLoader;
20 21
21 // The "global" context for the shell's main process. 22 // The "global" context for the shell's main process.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 GURL ResolveMojoURL(const GURL& url) override; 73 GURL ResolveMojoURL(const GURL& url) override;
73 bool CreateFetcher( 74 bool CreateFetcher(
74 const GURL& url, 75 const GURL& url,
75 const shell::Fetcher::FetchCallback& loader_callback) override; 76 const shell::Fetcher::FetchCallback& loader_callback) override;
76 77
77 // ProcessDelegate implementation. 78 // ProcessDelegate implementation.
78 void OnShutdownComplete() override; 79 void OnShutdownComplete() override;
79 80
80 void OnApplicationEnd(const GURL& url); 81 void OnApplicationEnd(const GURL& url);
81 82
83 ScopedUserDataDir scoped_user_data_dir;
82 std::set<GURL> app_urls_; 84 std::set<GURL> app_urls_;
83 scoped_ptr<TaskRunners> task_runners_; 85 scoped_ptr<TaskRunners> task_runners_;
84 shell::ApplicationManager application_manager_; 86 shell::ApplicationManager application_manager_;
85 URLResolver url_resolver_; 87 URLResolver url_resolver_;
86 GURL shell_file_root_; 88 GURL shell_file_root_;
87 GURL command_line_cwd_; 89 GURL command_line_cwd_;
88 90
89 DISALLOW_COPY_AND_ASSIGN(Context); 91 DISALLOW_COPY_AND_ASSIGN(Context);
90 }; 92 };
91 93
92 } // namespace runner 94 } // namespace runner
93 } // namespace mojo 95 } // namespace mojo
94 96
95 #endif // MOJO_RUNNER_CONTEXT_H_ 97 #endif // MOJO_RUNNER_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698