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

Unified Diff: content/renderer/mojo_main_runner.cc

Issue 1468903002: Rename some WebUI Mojo concepts to be more generic (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/mojo_main_runner.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/mojo_main_runner.cc
diff --git a/content/renderer/web_ui_runner.cc b/content/renderer/mojo_main_runner.cc
similarity index 66%
rename from content/renderer/web_ui_runner.cc
rename to content/renderer/mojo_main_runner.cc
index f1d0cce17c19beda4141e41dab4c3b1614b0e02e..eb62b69febe522d9541b1f929c0b3d3774adbea5 100644
--- a/content/renderer/web_ui_runner.cc
+++ b/content/renderer/mojo_main_runner.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/renderer/web_ui_runner.h"
+#include "content/renderer/mojo_main_runner.h"
#include "content/public/renderer/render_frame.h"
#include "gin/modules/module_registry.h"
@@ -20,8 +20,8 @@ using v8::Script;
namespace content {
-WebUIRunner::WebUIRunner(blink::WebFrame* frame,
- gin::ContextHolder* context_holder)
+MojoMainRunner::MojoMainRunner(blink::WebFrame* frame,
+ gin::ContextHolder* context_holder)
: frame_(frame),
context_holder_(context_holder) {
DCHECK(frame_);
@@ -32,24 +32,24 @@ WebUIRunner::WebUIRunner(blink::WebFrame* frame,
gin::PerContextData::From(context_holder->context())->set_runner(this);
}
-WebUIRunner::~WebUIRunner() {
+MojoMainRunner::~MojoMainRunner() {
}
-void WebUIRunner::Run(const std::string& source,
- const std::string& resource_name) {
+void MojoMainRunner::Run(const std::string& source,
+ const std::string& resource_name) {
frame_->executeScript(
blink::WebScriptSource(blink::WebString::fromUTF8(source)));
}
-v8::Local<v8::Value> WebUIRunner::Call(v8::Local<v8::Function> function,
- v8::Local<v8::Value> receiver,
- int argc,
- v8::Local<v8::Value> argv[]) {
+v8::Local<v8::Value> MojoMainRunner::Call(v8::Local<v8::Function> function,
+ v8::Local<v8::Value> receiver,
+ int argc,
+ v8::Local<v8::Value> argv[]) {
return frame_->callFunctionEvenIfScriptDisabled(function, receiver, argc,
argv);
}
-gin::ContextHolder* WebUIRunner::GetContextHolder() {
+gin::ContextHolder* MojoMainRunner::GetContextHolder() {
return context_holder_;
}
« no previous file with comments | « content/renderer/mojo_main_runner.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698