Chromium Code Reviews| 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_ |