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

Unified Diff: chrome/browser/content_settings/mock_settings_observer.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
Index: chrome/browser/content_settings/mock_settings_observer.h
diff --git a/chrome/browser/content_settings/mock_settings_observer.h b/chrome/browser/content_settings/mock_settings_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..082a7198c8db65c1e8291cd231d9a5434477134d
--- /dev/null
+++ b/chrome/browser/content_settings/mock_settings_observer.h
@@ -0,0 +1,37 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_CONTENT_SETTINGS_MOCK_SETTINGS_OBSERVER_H_
+#define CHROME_BROWSER_CONTENT_SETTINGS_MOCK_SETTINGS_OBSERVER_H_
+#pragma once
+
+#include "chrome/common/content_settings_types.h"
+#include "content/common/notification_observer.h"
+#include "content/common/notification_registrar.h"
+#include "testing/gmock/include/gmock/gmock.h"
+
+class ContentSettingsPattern;
+class HostContentSettingsMap;
+
+class MockSettingsObserver : public NotificationObserver {
+ public:
+ MockSettingsObserver();
+ virtual ~MockSettingsObserver();
+
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
+
+ MOCK_METHOD5(OnContentSettingsChanged,
+ void(HostContentSettingsMap*,
+ ContentSettingsType,
+ bool,
+ const ContentSettingsPattern&,
+ bool));
+
+ private:
+ NotificationRegistrar registrar_;
+};
+
+#endif // CHROME_BROWSER_CONTENT_SETTINGS_MOCK_SETTINGS_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698