Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: extensions/renderer/extension_injection_host.h

Issue 1150683007: [Extensions] Use document url (not top url) for tab-specific permissions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef EXTENSIONS_RENDERER_EXTENSION_INJECTION_HOST_H_ 5 #ifndef EXTENSIONS_RENDERER_EXTENSION_INJECTION_HOST_H_
6 #define EXTENSIONS_RENDERER_EXTENSION_INJECTION_HOST_H_ 6 #define EXTENSIONS_RENDERER_EXTENSION_INJECTION_HOST_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "extensions/common/extension.h" 9 #include "extensions/common/extension.h"
10 #include "extensions/renderer/injection_host.h" 10 #include "extensions/renderer/injection_host.h"
(...skipping 15 matching lines...) Expand all
26 static scoped_ptr<const InjectionHost> Create(const std::string& extension_id, 26 static scoped_ptr<const InjectionHost> Create(const std::string& extension_id,
27 const ExtensionSet* extensions); 27 const ExtensionSet* extensions);
28 28
29 private: 29 private:
30 // InjectionHost: 30 // InjectionHost:
31 std::string GetContentSecurityPolicy() const override; 31 std::string GetContentSecurityPolicy() const override;
32 const GURL& url() const override; 32 const GURL& url() const override;
33 const std::string& name() const override; 33 const std::string& name() const override;
34 PermissionsData::AccessType CanExecuteOnFrame( 34 PermissionsData::AccessType CanExecuteOnFrame(
35 const GURL& document_url, 35 const GURL& document_url,
36 const GURL& top_frame_url, 36 content::RenderFrame* render_frame,
37 int tab_id, 37 int tab_id,
38 bool is_declarative) const override; 38 bool is_declarative) const override;
39 bool ShouldNotifyBrowserOfInjection() const override; 39 bool ShouldNotifyBrowserOfInjection() const override;
40 40
41 const Extension* extension_; 41 const Extension* extension_;
42 42
43 DISALLOW_COPY_AND_ASSIGN(ExtensionInjectionHost); 43 DISALLOW_COPY_AND_ASSIGN(ExtensionInjectionHost);
44 }; 44 };
45 45
46 } // namespace extesions 46 } // namespace extesions
47 47
48 #endif // EXTENSIONS_RENDERER_EXTENSION_INJECTION_HOST_H_ 48 #endif // EXTENSIONS_RENDERER_EXTENSION_INJECTION_HOST_H_
OLDNEW
« no previous file with comments | « extensions/renderer/extension_frame_helper.cc ('k') | extensions/renderer/extension_injection_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698