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

Side by Side Diff: chrome/browser/extensions/api/commands/extension_command_service.h

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 years, 7 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 (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_BROWSER_EXTENSIONS_API_COMMANDS_EXTENSION_COMMAND_SERVICE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_COMMANDS_EXTENSION_COMMAND_SERVICE_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_COMMANDS_EXTENSION_COMMAND_SERVICE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_COMMANDS_EXTENSION_COMMAND_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 virtual void Observe(int type, 81 virtual void Observe(int type,
82 const content::NotificationSource& source, 82 const content::NotificationSource& source,
83 const content::NotificationDetails& details) OVERRIDE; 83 const content::NotificationDetails& details) OVERRIDE;
84 84
85 private: 85 private:
86 // Assigns initial keybinding for a given |extension|'s page action, browser 86 // Assigns initial keybinding for a given |extension|'s page action, browser
87 // action and named commands. In each case, if the suggested keybinding is 87 // action and named commands. In each case, if the suggested keybinding is
88 // free, it will be taken by this extension. If not, that keybinding request 88 // free, it will be taken by this extension. If not, that keybinding request
89 // is ignored. |user_pref| is the PrefService used to record the new 89 // is ignored. |user_pref| is the PrefService used to record the new
90 // keybinding assignment. 90 // keybinding assignment.
91 void AssignInitialKeybindings(const Extension* extension); 91 void AssignInitialKeybindings(const extensions::Extension* extension);
92 92
93 // Removes all keybindings for a given extension by its |extension_id|. 93 // Removes all keybindings for a given extension by its |extension_id|.
94 void RemoveKeybindingPrefs(std::string extension_id); 94 void RemoveKeybindingPrefs(std::string extension_id);
95 95
96 // The content notification registrar for listening to extension events. 96 // The content notification registrar for listening to extension events.
97 content::NotificationRegistrar registrar_; 97 content::NotificationRegistrar registrar_;
98 98
99 // A weak pointer to the profile we are associated with. Not owned by us. 99 // A weak pointer to the profile we are associated with. Not owned by us.
100 Profile* profile_; 100 Profile* profile_;
101 101
102 DISALLOW_COPY_AND_ASSIGN(ExtensionCommandService); 102 DISALLOW_COPY_AND_ASSIGN(ExtensionCommandService);
103 }; 103 };
104 104
105 #endif // CHROME_BROWSER_EXTENSIONS_API_COMMANDS_EXTENSION_COMMAND_SERVICE_H_ 105 #endif // CHROME_BROWSER_EXTENSIONS_API_COMMANDS_EXTENSION_COMMAND_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/app/app_api.h ('k') | chrome/browser/extensions/api/commands/extension_command_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698