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

Unified Diff: extensions/renderer/web_ui_injection_host.cc

Issue 934763003: Refactoring: de-couple Extensions from "script injection System" [render side]:3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@decouple_brower_isolated_world_routingid_user_script_1
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: extensions/renderer/web_ui_injection_host.cc
diff --git a/extensions/renderer/web_ui_injection_host.cc b/extensions/renderer/web_ui_injection_host.cc
new file mode 100644
index 0000000000000000000000000000000000000000..8f7ebab8a7ad342fb540f606f5a337b6e6b244b0
--- /dev/null
+++ b/extensions/renderer/web_ui_injection_host.cc
@@ -0,0 +1,38 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "extensions/renderer/web_ui_injection_host.h"
+
+WebUIInjectionHost::WebUIInjectionHost(const HostID& host_id)
+ : InjectionHost(host_id),
+ url_(host_id.id()) {
+}
+
+WebUIInjectionHost::~WebUIInjectionHost() {
+}
+
+
+std::string WebUIInjectionHost::GetContentSecurityPolicy() const {
+ return std::string();
+}
+
+const GURL& WebUIInjectionHost::url() const {
+ return url_;
+}
+
+const std::string& WebUIInjectionHost::name() const {
+ return id().id();
+}
+
+extensions::PermissionsData::AccessType WebUIInjectionHost::CanExecuteOnFrame(
+ const GURL& document_url,
+ const GURL& top_frame_url,
+ int tab_id,
+ bool is_declarative) const {
+ return extensions::PermissionsData::AccessType::ACCESS_ALLOWED;
Devlin 2015/02/17 18:56:52 comment why this is okay.
Xi Han 2015/02/18 21:11:46 Added.
+}
+
+bool WebUIInjectionHost::IsGone() const {
+ return false;
+}
« extensions/renderer/web_ui_injection_host.h ('K') | « extensions/renderer/web_ui_injection_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698