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 #ifndef EXTENSIONS_RENDERER_WEBUI_INJECTION_HOST_H_ | |
6 #define EXTENSIONS_RENDERER_WEBUI_INJECTION_HOST_H_ | |
7 | |
8 #include "extensions/renderer/injection_host.h" | |
9 | |
10 class WebUIInjectionHost : public InjectionHost { | |
11 public: | |
12 WebUIInjectionHost(const HostID& host_id); | |
13 ~WebUIInjectionHost() override; | |
14 | |
15 // InjectionHost: | |
16 std::string GetContentSecurityPolicy() const override; | |
Devlin
2015/02/17 18:56:52
make these private.
Xi Han
2015/02/18 21:11:46
Done.
| |
17 const GURL& url() const override; | |
18 const std::string& name() const override; | |
19 extensions::PermissionsData::AccessType CanExecuteOnFrame( | |
20 const GURL& document_url, | |
21 const GURL& top_frame_url, | |
22 int tab_id, | |
23 bool is_declarative) const override; | |
24 bool IsGone() const override; | |
25 | |
26 private: | |
27 GURL url_; | |
28 | |
29 DISALLOW_COPY_AND_ASSIGN(WebUIInjectionHost); | |
30 }; | |
31 | |
32 #endif // EXTENSIONS_RENDERER_WEBUI_INJECTION_HOST_H_ | |
OLD | NEW |