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

Side by Side Diff: chrome/browser/extensions/extension_tab_helper.h

Issue 10703142: Move WebstoreInstaller, WebstoreInlineInstaller, related in extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Latest merge with master for cq Created 8 years, 5 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_EXTENSION_TAB_HELPER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_HELPER_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_HELPER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_HELPER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 20 matching lines...) Expand all
31 class LocationBarController; 31 class LocationBarController;
32 class ScriptBadgeController; 32 class ScriptBadgeController;
33 class ScriptExecutor; 33 class ScriptExecutor;
34 } 34 }
35 35
36 // Per-tab extension helper. Also handles non-extension apps. 36 // Per-tab extension helper. Also handles non-extension apps.
37 class ExtensionTabHelper 37 class ExtensionTabHelper
38 : public content::WebContentsObserver, 38 : public content::WebContentsObserver,
39 public ExtensionFunctionDispatcher::Delegate, 39 public ExtensionFunctionDispatcher::Delegate,
40 public ImageLoadingTracker::Observer, 40 public ImageLoadingTracker::Observer,
41 public WebstoreInlineInstaller::Delegate, 41 public extensions::WebstoreInlineInstaller::Delegate,
42 public AppNotifyChannelSetup::Delegate, 42 public AppNotifyChannelSetup::Delegate,
43 public base::SupportsWeakPtr<ExtensionTabHelper>, 43 public base::SupportsWeakPtr<ExtensionTabHelper>,
44 public content::NotificationObserver { 44 public content::NotificationObserver {
45 public: 45 public:
46 // Different types of action when web app info is available. 46 // Different types of action when web app info is available.
47 // OnDidGetApplicationInfo uses this to dispatch calls. 47 // OnDidGetApplicationInfo uses this to dispatch calls.
48 enum WebAppAction { 48 enum WebAppAction {
49 NONE, // No action at all. 49 NONE, // No action at all.
50 CREATE_SHORTCUT, // Bring up create application shortcut dialog. 50 CREATE_SHORTCUT, // Bring up create application shortcut dialog.
51 UPDATE_SHORTCUT // Update icon for app shortcut. 51 UPDATE_SHORTCUT // Update icon for app shortcut.
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 void UpdateExtensionAppIcon(const extensions::Extension* extension); 163 void UpdateExtensionAppIcon(const extensions::Extension* extension);
164 164
165 const extensions::Extension* GetExtension( 165 const extensions::Extension* GetExtension(
166 const std::string& extension_app_id); 166 const std::string& extension_app_id);
167 167
168 // ImageLoadingTracker::Observer. 168 // ImageLoadingTracker::Observer.
169 virtual void OnImageLoaded(const gfx::Image& image, 169 virtual void OnImageLoaded(const gfx::Image& image,
170 const std::string& extension_id, 170 const std::string& extension_id,
171 int index) OVERRIDE; 171 int index) OVERRIDE;
172 172
173 // WebstoreInlineInstaller::Delegate. 173 // extensions::WebstoreInlineInstaller::Delegate.
174 virtual void OnInlineInstallSuccess(int install_id, 174 virtual void OnInlineInstallSuccess(int install_id,
175 int return_route_id) OVERRIDE; 175 int return_route_id) OVERRIDE;
176 virtual void OnInlineInstallFailure(int install_id, 176 virtual void OnInlineInstallFailure(int install_id,
177 int return_route_id, 177 int return_route_id,
178 const std::string& error) OVERRIDE; 178 const std::string& error) OVERRIDE;
179 179
180 // AppNotifyChannelSetup::Delegate. 180 // AppNotifyChannelSetup::Delegate.
181 virtual void AppNotifyChannelSetupComplete( 181 virtual void AppNotifyChannelSetupComplete(
182 const std::string& channel_id, 182 const std::string& channel_id,
183 const std::string& error, 183 const std::string& error,
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 scoped_ptr<extensions::ScriptExecutor> script_executor_; 227 scoped_ptr<extensions::ScriptExecutor> script_executor_;
228 228
229 scoped_ptr<extensions::LocationBarController> location_bar_controller_; 229 scoped_ptr<extensions::LocationBarController> location_bar_controller_;
230 230
231 extensions::ActiveTabPermissionManager active_tab_permission_manager_; 231 extensions::ActiveTabPermissionManager active_tab_permission_manager_;
232 232
233 DISALLOW_COPY_AND_ASSIGN(ExtensionTabHelper); 233 DISALLOW_COPY_AND_ASSIGN(ExtensionTabHelper);
234 }; 234 };
235 235
236 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_HELPER_H_ 236 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/crx_installer_browsertest.cc ('k') | chrome/browser/extensions/extension_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698