Home | History | Annotate | Download | only in content_settings
      1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_STUB_SETTINGS_OBSERVER_H_
      6 #define CHROME_BROWSER_CONTENT_SETTINGS_STUB_SETTINGS_OBSERVER_H_
      7 #pragma once
      8 
      9 #include "chrome/browser/content_settings/content_settings_details.h"
     10 #include "content/common/notification_observer.h"
     11 #include "content/common/notification_registrar.h"
     12 #include "content/common/notification_service.h"
     13 
     14 class HostContentSettingsMap;
     15 
     16 class StubSettingsObserver : public NotificationObserver {
     17  public:
     18   StubSettingsObserver();
     19   virtual ~StubSettingsObserver();
     20 
     21   virtual void Observe(NotificationType type,
     22                        const NotificationSource& source,
     23                        const NotificationDetails& details);
     24 
     25   HostContentSettingsMap* last_notifier;
     26   ContentSettingsPattern last_pattern;
     27   bool last_update_all;
     28   bool last_update_all_types;
     29   int counter;
     30   ContentSettingsType last_type;
     31 
     32  private:
     33   NotificationRegistrar registrar_;
     34 };
     35 
     36 #endif  // CHROME_BROWSER_CONTENT_SETTINGS_STUB_SETTINGS_OBSERVER_H_
     37