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

Unified Diff: extensions/renderer/web_ui_injection_host.h

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.h
diff --git a/extensions/renderer/web_ui_injection_host.h b/extensions/renderer/web_ui_injection_host.h
new file mode 100644
index 0000000000000000000000000000000000000000..616dca48002349947d248e231ef83b529aef9351
--- /dev/null
+++ b/extensions/renderer/web_ui_injection_host.h
@@ -0,0 +1,32 @@
+// 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.
+
+#ifndef EXTENSIONS_RENDERER_WEBUI_INJECTION_HOST_H_
+#define EXTENSIONS_RENDERER_WEBUI_INJECTION_HOST_H_
+
+#include "extensions/renderer/injection_host.h"
+
+class WebUIInjectionHost : public InjectionHost {
+ public:
+ WebUIInjectionHost(const HostID& host_id);
+ ~WebUIInjectionHost() override;
+
+ // InjectionHost:
+ std::string GetContentSecurityPolicy() const override;
Devlin 2015/02/17 18:56:52 make these private.
Xi Han 2015/02/18 21:11:46 Done.
+ const GURL& url() const override;
+ const std::string& name() const override;
+ extensions::PermissionsData::AccessType CanExecuteOnFrame(
+ const GURL& document_url,
+ const GURL& top_frame_url,
+ int tab_id,
+ bool is_declarative) const override;
+ bool IsGone() const override;
+
+ private:
+ GURL url_;
+
+ DISALLOW_COPY_AND_ASSIGN(WebUIInjectionHost);
+};
+
+#endif // EXTENSIONS_RENDERER_WEBUI_INJECTION_HOST_H_

Powered by Google App Engine
This is Rietveld 408576698