OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "extensions/renderer/web_ui_injection_host.h" | |
6 | |
7 WebUIInjectionHost::WebUIInjectionHost(const HostID& host_id) | |
8 : InjectionHost(host_id), | |
9 url_(host_id.id()) { | |
10 } | |
11 | |
12 WebUIInjectionHost::~WebUIInjectionHost() { | |
13 } | |
14 | |
15 | |
16 std::string WebUIInjectionHost::GetContentSecurityPolicy() const { | |
17 return std::string(); | |
18 } | |
19 | |
20 const GURL& WebUIInjectionHost::url() const { | |
21 return url_; | |
22 } | |
23 | |
24 const std::string& WebUIInjectionHost::name() const { | |
25 return id().id(); | |
26 } | |
27 | |
28 extensions::PermissionsData::AccessType WebUIInjectionHost::CanExecuteOnFrame( | |
29 const GURL& document_url, | |
30 const GURL& top_frame_url, | |
31 int tab_id, | |
32 bool is_declarative) const { | |
33 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.
| |
34 } | |
35 | |
36 bool WebUIInjectionHost::IsGone() const { | |
37 return false; | |
38 } | |
OLD | NEW |