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

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

Issue 708713003: Don't crash when granting permissions to active tab. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change for with iterators to a foreach. Created 6 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
« no previous file with comments | « extensions/renderer/dispatcher.cc ('k') | extensions/renderer/extension_helper.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 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_DELEGATE_H_ 5 #ifndef EXTENSIONS_RENDERER_DISPATCHER_DELEGATE_H_
6 #define EXTENSIONS_RENDERER_DISPATCHER_DELEGATE_H_ 6 #define EXTENSIONS_RENDERER_DISPATCHER_DELEGATE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 // Allows the delegate to respond to an updated set of active extensions in 59 // Allows the delegate to respond to an updated set of active extensions in
60 // the Dispatcher. 60 // the Dispatcher.
61 virtual void OnActiveExtensionsUpdated( 61 virtual void OnActiveExtensionsUpdated(
62 const std::set<std::string>& extension_ids) {} 62 const std::set<std::string>& extension_ids) {}
63 63
64 // Sets the current Chrome channel. 64 // Sets the current Chrome channel.
65 // TODO(rockot): This doesn't belong in a generic extensions system interface. 65 // TODO(rockot): This doesn't belong in a generic extensions system interface.
66 // See http://crbug.com/368431. 66 // See http://crbug.com/368431.
67 virtual void SetChannel(int channel) {} 67 virtual void SetChannel(int channel) {}
68
69 // Clears extension permissions specific to a given tab.
70 // TODO(rockot): This doesn't belong in a generic extensions system interface.
71 // See http://crbug.com/368431.
72 virtual void ClearTabSpecificPermissions(
73 const extensions::Dispatcher* dispatcher,
74 int tab_id,
75 const std::vector<std::string>& extension_ids) {}
76
77 // Updates extension permissions specific to a given tab.
78 // TODO(rockot): This doesn't belong in a generic extensions system interface.
79 // See http://crbug.com/368431.
80 virtual void UpdateTabSpecificPermissions(
81 const extensions::Dispatcher* dispatcher,
82 const GURL& url,
83 int tab_id,
84 const std::string& extension_id,
85 const extensions::URLPatternSet& origin_set) {}
86 }; 68 };
87 69
88 } // namespace extensions 70 } // namespace extensions
89 71
90 #endif // EXTENSIONS_RENDERER_DISPATCHER_DELEGATE_H_ 72 #endif // EXTENSIONS_RENDERER_DISPATCHER_DELEGATE_H_
OLDNEW
« no previous file with comments | « extensions/renderer/dispatcher.cc ('k') | extensions/renderer/extension_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698