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

Side by Side Diff: chrome/browser/content_settings/mock_settings_observer.cc

Issue 18640003: Updates some includes of chrome_notification_types.h (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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 #include "chrome/browser/content_settings/mock_settings_observer.h" 5 #include "chrome/browser/content_settings/mock_settings_observer.h"
6 6
7 #include "chrome/browser/chrome_notification_types.h"
7 #include "chrome/browser/content_settings/content_settings_details.h" 8 #include "chrome/browser/content_settings/content_settings_details.h"
8 #include "chrome/browser/content_settings/host_content_settings_map.h" 9 #include "chrome/browser/content_settings/host_content_settings_map.h"
9 #include "chrome/common/chrome_notification_types.h"
10 #include "content/public/browser/notification_service.h" 10 #include "content/public/browser/notification_service.h"
11 #include "content/public/browser/notification_source.h" 11 #include "content/public/browser/notification_source.h"
12 #include "url/gurl.h" 12 #include "url/gurl.h"
13 13
14 MockSettingsObserver::MockSettingsObserver() { 14 MockSettingsObserver::MockSettingsObserver() {
15 registrar_.Add(this, chrome::NOTIFICATION_CONTENT_SETTINGS_CHANGED, 15 registrar_.Add(this, chrome::NOTIFICATION_CONTENT_SETTINGS_CHANGED,
16 content::NotificationService::AllSources()); 16 content::NotificationService::AllSources());
17 } 17 }
18 18
19 MockSettingsObserver::~MockSettingsObserver() {} 19 MockSettingsObserver::~MockSettingsObserver() {}
(...skipping 10 matching lines...) Expand all
30 settings_details->type(), 30 settings_details->type(),
31 settings_details->update_all_types(), 31 settings_details->update_all_types(),
32 settings_details->primary_pattern(), 32 settings_details->primary_pattern(),
33 settings_details->secondary_pattern(), 33 settings_details->secondary_pattern(),
34 settings_details->update_all()); 34 settings_details->update_all());
35 // This checks that calling a Get function from an observer doesn't 35 // This checks that calling a Get function from an observer doesn't
36 // deadlock. 36 // deadlock.
37 GURL url("http://random-hostname.com/"); 37 GURL url("http://random-hostname.com/");
38 map->GetContentSetting(url, url, CONTENT_SETTINGS_TYPE_IMAGES, std::string()); 38 map->GetContentSetting(url, url, CONTENT_SETTINGS_TYPE_IMAGES, std::string());
39 } 39 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698