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

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

Issue 2833843004: Reland: Communicate ExtensionSettings policy to renderers (Closed)
Patch Set: Removed unused URLPatternSet parameters in ExtensionMsg_PermissionSetStruct which was causing MSAN … Created 3 years, 8 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/common/url_pattern_unittest.cc ('k') | extensions/renderer/dispatcher.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_DISPATCHER_H_ 5 #ifndef EXTENSIONS_RENDERER_DISPATCHER_H_
6 #define EXTENSIONS_RENDERER_DISPATCHER_H_ 6 #define EXTENSIONS_RENDERER_DISPATCHER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 24 matching lines...) Expand all
35 #include "v8/include/v8.h" 35 #include "v8/include/v8.h"
36 36
37 class ChromeRenderViewTest; 37 class ChromeRenderViewTest;
38 class GURL; 38 class GURL;
39 class ModuleSystem; 39 class ModuleSystem;
40 struct ExtensionMsg_DispatchEvent_Params; 40 struct ExtensionMsg_DispatchEvent_Params;
41 struct ExtensionMsg_ExternalConnectionInfo; 41 struct ExtensionMsg_ExternalConnectionInfo;
42 struct ExtensionMsg_Loaded_Params; 42 struct ExtensionMsg_Loaded_Params;
43 struct ExtensionMsg_TabConnectionInfo; 43 struct ExtensionMsg_TabConnectionInfo;
44 struct ExtensionMsg_UpdatePermissions_Params; 44 struct ExtensionMsg_UpdatePermissions_Params;
45 struct ExtensionMsg_UpdateDefaultPolicyHostRestrictions_Params;
45 46
46 namespace blink { 47 namespace blink {
47 class WebLocalFrame; 48 class WebLocalFrame;
48 } 49 }
49 50
50 namespace base { 51 namespace base {
51 class ListValue; 52 class ListValue;
52 } 53 }
53 54
54 namespace extensions { 55 namespace extensions {
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 void OnSetScriptingWhitelist( 177 void OnSetScriptingWhitelist(
177 const ExtensionsClient::ScriptingWhitelist& extension_ids); 178 const ExtensionsClient::ScriptingWhitelist& extension_ids);
178 void OnSetSystemFont(const std::string& font_family, 179 void OnSetSystemFont(const std::string& font_family,
179 const std::string& font_size); 180 const std::string& font_size);
180 void OnSetWebViewPartitionID(const std::string& partition_id); 181 void OnSetWebViewPartitionID(const std::string& partition_id);
181 void OnShouldSuspend(const std::string& extension_id, uint64_t sequence_id); 182 void OnShouldSuspend(const std::string& extension_id, uint64_t sequence_id);
182 void OnSuspend(const std::string& extension_id); 183 void OnSuspend(const std::string& extension_id);
183 void OnTransferBlobs(const std::vector<std::string>& blob_uuids); 184 void OnTransferBlobs(const std::vector<std::string>& blob_uuids);
184 void OnUnloaded(const std::string& id); 185 void OnUnloaded(const std::string& id);
185 void OnUpdatePermissions(const ExtensionMsg_UpdatePermissions_Params& params); 186 void OnUpdatePermissions(const ExtensionMsg_UpdatePermissions_Params& params);
187 void OnUpdateDefaultPolicyHostRestrictions(
188 const ExtensionMsg_UpdateDefaultPolicyHostRestrictions_Params& params);
186 void OnUpdateTabSpecificPermissions(const GURL& visible_url, 189 void OnUpdateTabSpecificPermissions(const GURL& visible_url,
187 const std::string& extension_id, 190 const std::string& extension_id,
188 const URLPatternSet& new_hosts, 191 const URLPatternSet& new_hosts,
189 bool update_origin_whitelist, 192 bool update_origin_whitelist,
190 int tab_id); 193 int tab_id);
191 void OnClearTabSpecificPermissions( 194 void OnClearTabSpecificPermissions(
192 const std::vector<std::string>& extension_ids, 195 const std::vector<std::string>& extension_ids,
193 bool update_origin_whitelist, 196 bool update_origin_whitelist,
194 int tab_id); 197 int tab_id);
195 198
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 // if this renderer is a WebView guest render process. Otherwise, this will be 292 // if this renderer is a WebView guest render process. Otherwise, this will be
290 // empty. 293 // empty.
291 std::string webview_partition_id_; 294 std::string webview_partition_id_;
292 295
293 DISALLOW_COPY_AND_ASSIGN(Dispatcher); 296 DISALLOW_COPY_AND_ASSIGN(Dispatcher);
294 }; 297 };
295 298
296 } // namespace extensions 299 } // namespace extensions
297 300
298 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ 301 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_
OLDNEW
« no previous file with comments | « extensions/common/url_pattern_unittest.cc ('k') | extensions/renderer/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698