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

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

Issue 10559052: Split mode incognito extension can get misleading pref changed events from regular mode (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 6 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_PREFS_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 bool CanExtensionControlPref(const std::string& extension_id, 380 bool CanExtensionControlPref(const std::string& extension_id,
381 const std::string& pref_key, 381 const std::string& pref_key,
382 bool incognito); 382 bool incognito);
383 383
384 // Returns true if extension |extension_id| currently controls the 384 // Returns true if extension |extension_id| currently controls the
385 // preference. 385 // preference.
386 bool DoesExtensionControlPref(const std::string& extension_id, 386 bool DoesExtensionControlPref(const std::string& extension_id,
387 const std::string& pref_key, 387 const std::string& pref_key,
388 bool incognito); 388 bool incognito);
389 389
390 // Returns true if extension |extension_id| currently controls the
391 // preference, *and* it is specific to incognito mode.
392 bool DoesExtensionControlIncognitoPref(const std::string& extension_id,
393 const std::string& pref_key);
394
390 // Returns true if there is an extension which controls the preference value 395 // Returns true if there is an extension which controls the preference value
391 // for |pref_key| *and* it is specific to incognito mode. 396 // for |pref_key| *and* it is specific to incognito mode.
392 bool HasIncognitoPrefValue(const std::string& pref_key); 397 bool HasIncognitoPrefValue(const std::string& pref_key);
393 398
394 // Clears incognito session-only content settings for all extensions. 399 // Clears incognito session-only content settings for all extensions.
395 void ClearIncognitoSessionOnlyContentSettings(); 400 void ClearIncognitoSessionOnlyContentSettings();
396 401
397 // Returns true if the extension was installed from the Chrome Web Store. 402 // Returns true if the extension was installed from the Chrome Web Store.
398 bool IsFromWebStore(const std::string& extension_id) const; 403 bool IsFromWebStore(const std::string& extension_id) const;
399 404
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 // Contains all the logic for handling the order for various extension 547 // Contains all the logic for handling the order for various extension
543 // properties. 548 // properties.
544 scoped_ptr<ExtensionSorting> extension_sorting_; 549 scoped_ptr<ExtensionSorting> extension_sorting_;
545 550
546 scoped_refptr<extensions::ContentSettingsStore> content_settings_store_; 551 scoped_refptr<extensions::ContentSettingsStore> content_settings_store_;
547 552
548 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 553 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
549 }; 554 };
550 555
551 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 556 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698