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

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

Issue 51433002: Enable permission warnings from ManifestHandlers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Working on adding ManifestPermissionSet to PermissionSet. Created 7 years, 1 month 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ 5 #ifndef CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_
6 #define CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ 6 #define CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 13 matching lines...) Expand all
24 #include "third_party/WebKit/public/platform/WebString.h" 24 #include "third_party/WebKit/public/platform/WebString.h"
25 #include "third_party/WebKit/public/platform/WebVector.h" 25 #include "third_party/WebKit/public/platform/WebVector.h"
26 #include "v8/include/v8.h" 26 #include "v8/include/v8.h"
27 27
28 class ChromeRenderViewTest; 28 class ChromeRenderViewTest;
29 class GURL; 29 class GURL;
30 class ModuleSystem; 30 class ModuleSystem;
31 class URLPattern; 31 class URLPattern;
32 struct ExtensionMsg_ExternalConnectionInfo; 32 struct ExtensionMsg_ExternalConnectionInfo;
33 struct ExtensionMsg_Loaded_Params; 33 struct ExtensionMsg_Loaded_Params;
34 struct ExtensionMsg_UpdatePermissions_Params;
34 35
35 namespace WebKit { 36 namespace WebKit {
36 class WebFrame; 37 class WebFrame;
37 class WebSecurityOrigin; 38 class WebSecurityOrigin;
38 } 39 }
39 40
40 namespace base { 41 namespace base {
41 class DictionaryValue; 42 class DictionaryValue;
42 class ListValue; 43 class ListValue;
43 } 44 }
44 45
45 namespace content { 46 namespace content {
46 class RenderThread; 47 class RenderThread;
47 } 48 }
48 49
49 namespace extensions { 50 namespace extensions {
50 class ContentWatcher; 51 class ContentWatcher;
51 class Extension; 52 class Extension;
52 class FilteredEventRouter; 53 class FilteredEventRouter;
54 class ManifestPermissionSet;
53 class RequestSender; 55 class RequestSender;
54 class UserScriptSlave; 56 class UserScriptSlave;
55 struct Message; 57 struct Message;
56 58
57 // Dispatches extension control messages sent to the renderer and stores 59 // Dispatches extension control messages sent to the renderer and stores
58 // renderer extension related state. 60 // renderer extension related state.
59 class Dispatcher : public content::RenderProcessObserver { 61 class Dispatcher : public content::RenderProcessObserver {
60 public: 62 public:
61 Dispatcher(); 63 Dispatcher();
62 virtual ~Dispatcher(); 64 virtual ~Dispatcher();
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 const std::string& font_size); 174 const std::string& font_size);
173 void OnLoaded( 175 void OnLoaded(
174 const std::vector<ExtensionMsg_Loaded_Params>& loaded_extensions); 176 const std::vector<ExtensionMsg_Loaded_Params>& loaded_extensions);
175 void OnLoadedInternal(scoped_refptr<const Extension> extension); 177 void OnLoadedInternal(scoped_refptr<const Extension> extension);
176 void OnUnloaded(const std::string& id); 178 void OnUnloaded(const std::string& id);
177 void OnSetScriptingWhitelist( 179 void OnSetScriptingWhitelist(
178 const ExtensionsClient::ScriptingWhitelist& extension_ids); 180 const ExtensionsClient::ScriptingWhitelist& extension_ids);
179 void OnPageActionsUpdated(const std::string& extension_id, 181 void OnPageActionsUpdated(const std::string& extension_id,
180 const std::vector<std::string>& page_actions); 182 const std::vector<std::string>& page_actions);
181 void OnActivateExtension(const std::string& extension_id); 183 void OnActivateExtension(const std::string& extension_id);
182 void OnUpdatePermissions(int reason_id, 184 void OnUpdatePermissions(const ExtensionMsg_UpdatePermissions_Params& params);
183 const std::string& extension_id,
184 const APIPermissionSet& apis,
185 const URLPatternSet& explicit_hosts,
186 const URLPatternSet& scriptable_hosts);
187 void OnUpdateTabSpecificPermissions(int page_id, 185 void OnUpdateTabSpecificPermissions(int page_id,
188 int tab_id, 186 int tab_id,
189 const std::string& extension_id, 187 const std::string& extension_id,
190 const URLPatternSet& origin_set); 188 const URLPatternSet& origin_set);
191 void OnClearTabSpecificPermissions( 189 void OnClearTabSpecificPermissions(
192 int tab_id, 190 int tab_id,
193 const std::vector<std::string>& extension_ids); 191 const std::vector<std::string>& extension_ids);
194 void OnUpdateUserScripts(base::SharedMemoryHandle table); 192 void OnUpdateUserScripts(base::SharedMemoryHandle table);
195 void OnUsingWebRequestAPI( 193 void OnUsingWebRequestAPI(
196 bool adblock, 194 bool adblock,
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 // The platforms system font family and size; 307 // The platforms system font family and size;
310 std::string system_font_family_; 308 std::string system_font_family_;
311 std::string system_font_size_; 309 std::string system_font_size_;
312 310
313 DISALLOW_COPY_AND_ASSIGN(Dispatcher); 311 DISALLOW_COPY_AND_ASSIGN(Dispatcher);
314 }; 312 };
315 313
316 } // namespace extensions 314 } // namespace extensions
317 315
318 #endif // CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ 316 #endif // CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698