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

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

Issue 5168004: Revert 66646 - Add "open as window" menu item to NTP app menu.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_EXTENSIONS_SERVICE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 } 374 }
375 375
376 Profile* profile() { return profile_; } 376 Profile* profile() { return profile_; }
377 377
378 // Profile calls this when it is being destroyed so that we know not to call 378 // Profile calls this when it is being destroyed so that we know not to call
379 // it. 379 // it.
380 void DestroyingProfile(); 380 void DestroyingProfile();
381 381
382 ExtensionPrefs* extension_prefs() { return extension_prefs_.get(); } 382 ExtensionPrefs* extension_prefs() { return extension_prefs_.get(); }
383 383
384 // Whether the extension service is ready.
385 bool is_ready() { return ready_; }
386
384 // Note that this may return NULL if autoupdate is not turned on. 387 // Note that this may return NULL if autoupdate is not turned on.
385 ExtensionUpdater* updater() { return updater_.get(); } 388 ExtensionUpdater* updater() { return updater_.get(); }
386 389
387 ExtensionToolbarModel* toolbar_model() { return &toolbar_model_; } 390 ExtensionToolbarModel* toolbar_model() { return &toolbar_model_; }
388 391
389 ExtensionsQuotaService* quota_service() { return &quota_service_; } 392 ExtensionsQuotaService* quota_service() { return &quota_service_; }
390 393
391 ExtensionMenuManager* menu_manager() { return &menu_manager_; } 394 ExtensionMenuManager* menu_manager() { return &menu_manager_; }
392 395
393 const std::map<GURL, int>& protected_storage_map() const { 396 const std::map<GURL, int>& protected_storage_map() const {
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 501
499 // Whether to notify users when they attempt to install an extension. 502 // Whether to notify users when they attempt to install an extension.
500 bool show_extensions_prompts_; 503 bool show_extensions_prompts_;
501 504
502 // The backend that will do IO on behalf of this instance. 505 // The backend that will do IO on behalf of this instance.
503 scoped_refptr<ExtensionsServiceBackend> backend_; 506 scoped_refptr<ExtensionsServiceBackend> backend_;
504 507
505 // Used by dispatchers to limit API quota for individual extensions. 508 // Used by dispatchers to limit API quota for individual extensions.
506 ExtensionsQuotaService quota_service_; 509 ExtensionsQuotaService quota_service_;
507 510
508 // Record that Init() has been called. 511 // Is the service ready to go?
509 bool init_done_; 512 bool ready_;
510 513
511 // Our extension updater, if updates are turned on. 514 // Our extension updater, if updates are turned on.
512 scoped_refptr<ExtensionUpdater> updater_; 515 scoped_refptr<ExtensionUpdater> updater_;
513 516
514 // The model that tracks extensions with BrowserAction buttons. 517 // The model that tracks extensions with BrowserAction buttons.
515 ExtensionToolbarModel toolbar_model_; 518 ExtensionToolbarModel toolbar_model_;
516 519
517 // Map unloaded extensions' ids to their paths. When a temporarily loaded 520 // Map unloaded extensions' ids to their paths. When a temporarily loaded
518 // extension is unloaded, we lose the infomation about it and don't have 521 // extension is unloaded, we lose the infomation about it and don't have
519 // any in the extension preferences file. 522 // any in the extension preferences file.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 FRIEND_TEST_ALL_PREFIXES(ExtensionsServiceTest, 570 FRIEND_TEST_ALL_PREFIXES(ExtensionsServiceTest,
568 UpdatePendingExtensionAlreadyInstalled); 571 UpdatePendingExtensionAlreadyInstalled);
569 FRIEND_TEST_ALL_PREFIXES(ExtensionsServiceTest, 572 FRIEND_TEST_ALL_PREFIXES(ExtensionsServiceTest,
570 InstallAppsWithUnlimtedStorage); 573 InstallAppsWithUnlimtedStorage);
571 FRIEND_TEST_ALL_PREFIXES(ExtensionsServiceTest, 574 FRIEND_TEST_ALL_PREFIXES(ExtensionsServiceTest,
572 InstallAppsAndCheckStorageProtection); 575 InstallAppsAndCheckStorageProtection);
573 DISALLOW_COPY_AND_ASSIGN(ExtensionsService); 576 DISALLOW_COPY_AND_ASSIGN(ExtensionsService);
574 }; 577 };
575 578
576 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ 579 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_toolbar_model.cc ('k') | chrome/browser/extensions/extensions_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698