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

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

Issue 922403002: [Extensions] Adjust script injection reporting to the browser side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « extensions/renderer/extension_injection_host.cc ('k') | extensions/renderer/script_injection.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_INJECTION_HOST_H 5 #ifndef EXTENSIONS_RENDERER_INJECTION_HOST_H
6 #define EXTENSIONS_RENDERER_INJECTION_HOST_H 6 #define EXTENSIONS_RENDERER_INJECTION_HOST_H
7 7
8 #include "extensions/common/host_id.h" 8 #include "extensions/common/host_id.h"
9 #include "extensions/common/permissions/permissions_data.h" 9 #include "extensions/common/permissions/permissions_data.h"
10 #include "url/gurl.h" 10 #include "url/gurl.h"
(...skipping 12 matching lines...) Expand all
23 // The human-readable name of the host. 23 // The human-readable name of the host.
24 virtual const std::string& name() const = 0; 24 virtual const std::string& name() const = 0;
25 25
26 // Returns true if the script should execute. 26 // Returns true if the script should execute.
27 virtual extensions::PermissionsData::AccessType CanExecuteOnFrame( 27 virtual extensions::PermissionsData::AccessType CanExecuteOnFrame(
28 const GURL& document_url, 28 const GURL& document_url,
29 const GURL& top_frame_url, 29 const GURL& top_frame_url,
30 int tab_id, 30 int tab_id,
31 bool is_declarative) const = 0; 31 bool is_declarative) const = 0;
32 32
33 // Returns true if the browser should be notified of any injections the host
34 // performs.
35 virtual bool ShouldNotifyBrowserOfInjection() const = 0;
36
33 const HostID& id() const { return id_; } 37 const HostID& id() const { return id_; }
34 private: 38 private:
35 // The ID of the host. 39 // The ID of the host.
36 HostID id_; 40 HostID id_;
37 41
38 DISALLOW_COPY_AND_ASSIGN(InjectionHost); 42 DISALLOW_COPY_AND_ASSIGN(InjectionHost);
39 }; 43 };
40 44
41 #endif // EXTENSIONS_RENDERER_INJECTION_HOST_H 45 #endif // EXTENSIONS_RENDERER_INJECTION_HOST_H
OLDNEW
« no previous file with comments | « extensions/renderer/extension_injection_host.cc ('k') | extensions/renderer/script_injection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698