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

Side by Side Diff: chrome/browser/ui/toolbar/toolbar_actions_model.h

Issue 2839373003: struct UnloadedExtensionInfo -> enum UnloadedExtensionInfoReason (Closed)
Patch Set: Rebase Created 3 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_UI_TOOLBAR_TOOLBAR_ACTIONS_MODEL_H_ 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_MODEL_H_
6 #define CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_MODEL_H_ 6 #define CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_MODEL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 void SetMockActionsFactoryForTest( 206 void SetMockActionsFactoryForTest(
207 std::unique_ptr<ComponentToolbarActionsFactory> mock_factory); 207 std::unique_ptr<ComponentToolbarActionsFactory> mock_factory);
208 208
209 private: 209 private:
210 // Callback when actions are ready. 210 // Callback when actions are ready.
211 void OnReady(); 211 void OnReady();
212 212
213 // ExtensionRegistryObserver: 213 // ExtensionRegistryObserver:
214 void OnExtensionLoaded(content::BrowserContext* browser_context, 214 void OnExtensionLoaded(content::BrowserContext* browser_context,
215 const extensions::Extension* extension) override; 215 const extensions::Extension* extension) override;
216 void OnExtensionUnloaded( 216 void OnExtensionUnloaded(content::BrowserContext* browser_context,
217 content::BrowserContext* browser_context, 217 const extensions::Extension* extension,
218 const extensions::Extension* extension, 218 extensions::UnloadedExtensionReason reason) override;
219 extensions::UnloadedExtensionInfo::Reason reason) override;
220 void OnExtensionUninstalled(content::BrowserContext* browser_context, 219 void OnExtensionUninstalled(content::BrowserContext* browser_context,
221 const extensions::Extension* extension, 220 const extensions::Extension* extension,
222 extensions::UninstallReason reason) override; 221 extensions::UninstallReason reason) override;
223 222
224 // ExtensionActionAPI::Observer: 223 // ExtensionActionAPI::Observer:
225 void OnExtensionActionUpdated( 224 void OnExtensionActionUpdated(
226 ExtensionAction* extension_action, 225 ExtensionAction* extension_action,
227 content::WebContents* web_contents, 226 content::WebContents* web_contents,
228 content::BrowserContext* browser_context) override; 227 content::BrowserContext* browser_context) override;
229 void OnExtensionActionVisibilityChanged(const std::string& extension_id, 228 void OnExtensionActionVisibilityChanged(const std::string& extension_id,
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 // For observing change of toolbar order preference by external entity (sync). 339 // For observing change of toolbar order preference by external entity (sync).
341 PrefChangeRegistrar pref_change_registrar_; 340 PrefChangeRegistrar pref_change_registrar_;
342 base::Closure pref_change_callback_; 341 base::Closure pref_change_callback_;
343 342
344 base::WeakPtrFactory<ToolbarActionsModel> weak_ptr_factory_; 343 base::WeakPtrFactory<ToolbarActionsModel> weak_ptr_factory_;
345 344
346 DISALLOW_COPY_AND_ASSIGN(ToolbarActionsModel); 345 DISALLOW_COPY_AND_ASSIGN(ToolbarActionsModel);
347 }; 346 };
348 347
349 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_MODEL_H_ 348 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/toolbar/component_toolbar_actions_factory.cc ('k') | chrome/browser/ui/toolbar/toolbar_actions_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698