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

Side by Side Diff: extensions/browser/extension_prefs.h

Issue 1025613003: Fix for ERROR:url_pattern_set.cc(240)] Invalid url pattern: chrome://print/* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes as per review comments. Created 5 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_PREFS_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ 6 #define EXTENSIONS_BROWSER_EXTENSION_PREFS_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 void SetInstallParam(const std::string& extension_id, 530 void SetInstallParam(const std::string& extension_id,
531 const std::string& install_parameter); 531 const std::string& install_parameter);
532 532
533 // The total number of times we've disabled an extension due to corrupted 533 // The total number of times we've disabled an extension due to corrupted
534 // contents. 534 // contents.
535 int GetCorruptedDisableCount(); 535 int GetCorruptedDisableCount();
536 void IncrementCorruptedDisableCount(); 536 void IncrementCorruptedDisableCount();
537 537
538 private: 538 private:
539 friend class ExtensionPrefsBlacklistedExtensions; // Unit test. 539 friend class ExtensionPrefsBlacklistedExtensions; // Unit test.
540 friend class ExtensionPrefsComponentExtension; // Unit test.
540 friend class ExtensionPrefsUninstallExtension; // Unit test. 541 friend class ExtensionPrefsUninstallExtension; // Unit test.
541 542
542 enum DisableReasonChange { 543 enum DisableReasonChange {
543 DISABLE_REASON_ADD, 544 DISABLE_REASON_ADD,
544 DISABLE_REASON_REMOVE, 545 DISABLE_REASON_REMOVE,
545 DISABLE_REASON_CLEAR 546 DISABLE_REASON_CLEAR
546 }; 547 };
547 548
548 // See the Create methods. 549 // See the Create methods.
549 ExtensionPrefs(PrefService* prefs, 550 ExtensionPrefs(PrefService* prefs,
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 bool extensions_disabled_; 687 bool extensions_disabled_;
687 688
688 ObserverList<ExtensionPrefsObserver> observer_list_; 689 ObserverList<ExtensionPrefsObserver> observer_list_;
689 690
690 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 691 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
691 }; 692 };
692 693
693 } // namespace extensions 694 } // namespace extensions
694 695
695 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ 696 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/test_extension_prefs.cc ('k') | extensions/browser/extension_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698