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

Unified Diff: chrome/browser/content_settings/content_settings_details.h

Issue 7088017: Split incognito extension content settings in session-only and persistent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/content_settings/content_settings_details.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/content_settings/content_settings_details.h
diff --git a/chrome/browser/content_settings/content_settings_details.h b/chrome/browser/content_settings/content_settings_details.h
index 857a82a3afc5b7641080f33a73bd6ab6671bc781..a277efff28ba146c647d2cf83f8c0526f83aa054 100644
--- a/chrome/browser/content_settings/content_settings_details.h
+++ b/chrome/browser/content_settings/content_settings_details.h
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// The details send with notifications about content setting changes.
-
#ifndef CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_DETAILS_H_
#define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_DETAILS_H_
#pragma once
@@ -22,16 +20,13 @@ class ContentSettingsDetails {
// Update the setting that matches this pattern/content type/resource.
ContentSettingsDetails(const ContentSettingsPattern& pattern,
ContentSettingsType type,
- const std::string& resource_identifier)
- : pattern_(pattern),
- type_(type),
- resource_identifier_(resource_identifier) {}
+ const std::string& resource_identifier);
// The pattern whose settings have changed.
const ContentSettingsPattern& pattern() const { return pattern_; }
// True if all settings should be updated for the given type.
- bool update_all() const { return pattern_.ToString().empty(); }
+ bool update_all() const { return !pattern_.IsValid(); }
// The type of the pattern whose settings have changed.
ContentSettingsType type() const { return type_; }
@@ -51,6 +46,8 @@ class ContentSettingsDetails {
ContentSettingsPattern pattern_;
ContentSettingsType type_;
std::string resource_identifier_;
+
+ DISALLOW_COPY_AND_ASSIGN(ContentSettingsDetails);
};
#endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_DETAILS_H_
« no previous file with comments | « no previous file | chrome/browser/content_settings/content_settings_details.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698