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

Side by Side Diff: chrome/browser/extensions/menu_manager.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_EXTENSIONS_MENU_MANAGER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_MENU_MANAGER_H_
6 #define CHROME_BROWSER_EXTENSIONS_MENU_MANAGER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_MENU_MANAGER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 // content::NotificationObserver implementation. 353 // content::NotificationObserver implementation.
354 void Observe(int type, 354 void Observe(int type,
355 const content::NotificationSource& source, 355 const content::NotificationSource& source,
356 const content::NotificationDetails& details) override; 356 const content::NotificationDetails& details) override;
357 357
358 // ExtensionRegistryObserver implementation. 358 // ExtensionRegistryObserver implementation.
359 void OnExtensionLoaded(content::BrowserContext* browser_context, 359 void OnExtensionLoaded(content::BrowserContext* browser_context,
360 const Extension* extension) override; 360 const Extension* extension) override;
361 void OnExtensionUnloaded(content::BrowserContext* browser_context, 361 void OnExtensionUnloaded(content::BrowserContext* browser_context,
362 const Extension* extension, 362 const Extension* extension,
363 UnloadedExtensionInfo::Reason reason) override; 363 UnloadedExtensionReason reason) override;
364 364
365 // Stores the menu items for the extension in the state storage. 365 // Stores the menu items for the extension in the state storage.
366 void WriteToStorage(const Extension* extension, 366 void WriteToStorage(const Extension* extension,
367 const MenuItem::ExtensionKey& extension_key); 367 const MenuItem::ExtensionKey& extension_key);
368 368
369 // Reads menu items for the extension from the state storage. Any invalid 369 // Reads menu items for the extension from the state storage. Any invalid
370 // items are ignored. 370 // items are ignored.
371 void ReadFromStorage(const std::string& extension_id, 371 void ReadFromStorage(const std::string& extension_id,
372 std::unique_ptr<base::Value> value); 372 std::unique_ptr<base::Value> value);
373 373
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 411
412 // Owned by ExtensionSystem. 412 // Owned by ExtensionSystem.
413 StateStore* store_; 413 StateStore* store_;
414 414
415 DISALLOW_COPY_AND_ASSIGN(MenuManager); 415 DISALLOW_COPY_AND_ASSIGN(MenuManager);
416 }; 416 };
417 417
418 } // namespace extensions 418 } // namespace extensions
419 419
420 #endif // CHROME_BROWSER_EXTENSIONS_MENU_MANAGER_H_ 420 #endif // CHROME_BROWSER_EXTENSIONS_MENU_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/lazy_background_page_apitest.cc ('k') | chrome/browser/extensions/menu_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698