Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / extensions / renderer / web_ui_injection_host.h
blobfab33f2644cbe0f470aa1cf09f98d1d8b5b121fd
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.
5 #ifndef EXTENSIONS_RENDERER_WEBUI_INJECTION_HOST_H_
6 #define EXTENSIONS_RENDERER_WEBUI_INJECTION_HOST_H_
8 #include "extensions/renderer/injection_host.h"
10 class WebUIInjectionHost : public InjectionHost {
11 public:
12 WebUIInjectionHost(const HostID& host_id);
13 ~WebUIInjectionHost() override;
15 private:
16 // InjectionHost:
17 std::string GetContentSecurityPolicy() const override;
18 const GURL& url() const override;
19 const std::string& name() const override;
20 extensions::PermissionsData::AccessType CanExecuteOnFrame(
21 const GURL& document_url,
22 content::RenderFrame* render_frame,
23 int tab_id,
24 bool is_declarative) const override;
25 bool ShouldNotifyBrowserOfInjection() const override;
27 private:
28 GURL url_;
30 DISALLOW_COPY_AND_ASSIGN(WebUIInjectionHost);
33 #endif // EXTENSIONS_RENDERER_WEBUI_INJECTION_HOST_H_