Chromium Code Reviews| 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; |
| +} |