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

Side by Side Diff: content/renderer/mojo_context_state.h

Issue 1457623004: Serve mojo WebUI resources from the same origin as the WebUI itself. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years 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 | « content/public/browser/web_ui_data_source.h ('k') | content/renderer/mojo_context_state.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CONTENT_RENDERER_MOJO_CONTEXT_STATE_H_ 5 #ifndef CONTENT_RENDERER_MOJO_CONTEXT_STATE_H_
6 #define CONTENT_RENDERER_MOJO_CONTEXT_STATE_H_ 6 #define CONTENT_RENDERER_MOJO_CONTEXT_STATE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 // Executes the script from gin. 70 // Executes the script from gin.
71 scoped_ptr<MojoMainRunner> runner_; 71 scoped_ptr<MojoMainRunner> runner_;
72 72
73 // Set of fetchers we're waiting on to download script. 73 // Set of fetchers we're waiting on to download script.
74 ScopedVector<ResourceFetcher> module_fetchers_; 74 ScopedVector<ResourceFetcher> module_fetchers_;
75 75
76 // Set of modules we've fetched script from. 76 // Set of modules we've fetched script from.
77 std::set<std::string> fetched_modules_; 77 std::set<std::string> fetched_modules_;
78 78
79 // The prefix to use for all module requests.
80 const std::string module_prefix_;
81
79 DISALLOW_COPY_AND_ASSIGN(MojoContextState); 82 DISALLOW_COPY_AND_ASSIGN(MojoContextState);
80 }; 83 };
81 84
82 } // namespace content 85 } // namespace content
83 86
84 #endif // CONTENT_RENDERER_MOJO_CONTEXT_STATE_H_ 87 #endif // CONTENT_RENDERER_MOJO_CONTEXT_STATE_H_
OLDNEW
« no previous file with comments | « content/public/browser/web_ui_data_source.h ('k') | content/renderer/mojo_context_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698