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

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

Issue 1130353005: Makes content handlers see requestor url (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge to trunk 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 | « no previous file | 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 return &application_manager_; 60 return &application_manager_;
61 } 61 }
62 URLResolver* url_resolver() { return &url_resolver_; } 62 URLResolver* url_resolver() { return &url_resolver_; }
63 63
64 private: 64 private:
65 class NativeViewportApplicationLoader; 65 class NativeViewportApplicationLoader;
66 66
67 // ApplicationManager::Delegate overrides. 67 // ApplicationManager::Delegate overrides.
68 GURL ResolveMappings(const GURL& url) override; 68 GURL ResolveMappings(const GURL& url) override;
69 GURL ResolveMojoURL(const GURL& url) override; 69 GURL ResolveMojoURL(const GURL& url) override;
70 bool CreateFetcher(
71 const GURL& url,
72 const shell::Fetcher::FetchCallback& loader_callback) override;
70 73
71 // ProcessDelegate implementation. 74 // ProcessDelegate implementation.
72 void OnShutdownComplete() override; 75 void OnShutdownComplete() override;
73 76
74 void OnApplicationEnd(const GURL& url); 77 void OnApplicationEnd(const GURL& url);
75 78
76 std::set<GURL> app_urls_; 79 std::set<GURL> app_urls_;
77 scoped_ptr<TaskRunners> task_runners_; 80 scoped_ptr<TaskRunners> task_runners_;
78 shell::ApplicationManager application_manager_; 81 shell::ApplicationManager application_manager_;
79 URLResolver url_resolver_; 82 URLResolver url_resolver_;
80 GURL shell_file_root_; 83 GURL shell_file_root_;
81 GURL command_line_cwd_; 84 GURL command_line_cwd_;
82 85
83 DISALLOW_COPY_AND_ASSIGN(Context); 86 DISALLOW_COPY_AND_ASSIGN(Context);
84 }; 87 };
85 88
86 } // namespace runner 89 } // namespace runner
87 } // namespace mojo 90 } // namespace mojo
88 91
89 #endif // MOJO_RUNNER_CONTEXT_H_ 92 #endif // MOJO_RUNNER_CONTEXT_H_
OLDNEW
« no previous file with comments | « no previous file | mojo/runner/context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698