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

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

Issue 622343002: replace OVERRIDE and FINAL with override and final in extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 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 <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 V8SchemaRegistry* v8_schema_registry); 149 V8SchemaRegistry* v8_schema_registry);
150 150
151 bool WasWebRequestUsedBySomeExtensions() const { return webrequest_used_; } 151 bool WasWebRequestUsedBySomeExtensions() const { return webrequest_used_; }
152 152
153 private: 153 private:
154 friend class ::ChromeRenderViewTest; 154 friend class ::ChromeRenderViewTest;
155 FRIEND_TEST_ALL_PREFIXES(RendererPermissionsPolicyDelegateTest, 155 FRIEND_TEST_ALL_PREFIXES(RendererPermissionsPolicyDelegateTest,
156 CannotScriptWebstore); 156 CannotScriptWebstore);
157 157
158 // RenderProcessObserver implementation: 158 // RenderProcessObserver implementation:
159 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; 159 virtual bool OnControlMessageReceived(const IPC::Message& message) override;
160 virtual void WebKitInitialized() OVERRIDE; 160 virtual void WebKitInitialized() override;
161 virtual void IdleNotification() OVERRIDE; 161 virtual void IdleNotification() override;
162 virtual void OnRenderProcessShutdown() OVERRIDE; 162 virtual void OnRenderProcessShutdown() override;
163 163
164 void OnActivateExtension(const std::string& extension_id); 164 void OnActivateExtension(const std::string& extension_id);
165 void OnCancelSuspend(const std::string& extension_id); 165 void OnCancelSuspend(const std::string& extension_id);
166 void OnClearTabSpecificPermissions( 166 void OnClearTabSpecificPermissions(
167 int tab_id, 167 int tab_id,
168 const std::vector<std::string>& extension_ids); 168 const std::vector<std::string>& extension_ids);
169 void OnDeliverMessage(int target_port_id, const Message& message); 169 void OnDeliverMessage(int target_port_id, const Message& message);
170 void OnDispatchOnConnect(int target_port_id, 170 void OnDispatchOnConnect(int target_port_id,
171 const std::string& channel_name, 171 const std::string& channel_name,
172 const base::DictionaryValue& source_tab, 172 const base::DictionaryValue& source_tab,
(...skipping 21 matching lines...) Expand all
194 void OnUpdatePermissions(const ExtensionMsg_UpdatePermissions_Params& params); 194 void OnUpdatePermissions(const ExtensionMsg_UpdatePermissions_Params& params);
195 void OnUpdateTabSpecificPermissions(const GURL& url, 195 void OnUpdateTabSpecificPermissions(const GURL& url,
196 int tab_id, 196 int tab_id,
197 const std::string& extension_id, 197 const std::string& extension_id,
198 const URLPatternSet& origin_set); 198 const URLPatternSet& origin_set);
199 void OnUsingWebRequestAPI(bool webrequest_used); 199 void OnUsingWebRequestAPI(bool webrequest_used);
200 200
201 // UserScriptSetManager::Observer implementation. 201 // UserScriptSetManager::Observer implementation.
202 virtual void OnUserScriptsUpdated( 202 virtual void OnUserScriptsUpdated(
203 const std::set<std::string>& changed_extensions, 203 const std::set<std::string>& changed_extensions,
204 const std::vector<UserScript*>& scripts) OVERRIDE; 204 const std::vector<UserScript*>& scripts) override;
205 205
206 void UpdateActiveExtensions(); 206 void UpdateActiveExtensions();
207 207
208 // Sets up the host permissions for |extension|. 208 // Sets up the host permissions for |extension|.
209 void InitOriginPermissions(const Extension* extension); 209 void InitOriginPermissions(const Extension* extension);
210 210
211 // Updates the host permissions for extension to include only those in 211 // Updates the host permissions for extension to include only those in
212 // |new_patterns|, and remove from |old_patterns| that are no longer allowed. 212 // |new_patterns|, and remove from |old_patterns| that are no longer allowed.
213 void UpdateOriginPermissions(const Extension* extension, 213 void UpdateOriginPermissions(const Extension* extension,
214 const URLPatternSet& old_patterns, 214 const URLPatternSet& old_patterns,
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 315
316 // Status of webrequest usage. 316 // Status of webrequest usage.
317 bool webrequest_used_; 317 bool webrequest_used_;
318 318
319 DISALLOW_COPY_AND_ASSIGN(Dispatcher); 319 DISALLOW_COPY_AND_ASSIGN(Dispatcher);
320 }; 320 };
321 321
322 } // namespace extensions 322 } // namespace extensions
323 323
324 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ 324 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_
OLDNEW
« no previous file with comments | « extensions/renderer/default_dispatcher_delegate.h ('k') | extensions/renderer/dom_activity_logger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698