| OLD | NEW |
| 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 #include "chrome/browser/ui/content_settings/content_setting_bubble_model.h" | 5 #include "chrome/browser/ui/content_settings/content_setting_bubble_model.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "chrome/browser/chrome_notification_types.h" | 10 #include "chrome/browser/chrome_notification_types.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 #include "chrome/common/render_messages.h" | 28 #include "chrome/common/render_messages.h" |
| 29 #include "content/public/browser/notification_service.h" | 29 #include "content/public/browser/notification_service.h" |
| 30 #include "content/public/browser/render_frame_host.h" | 30 #include "content/public/browser/render_frame_host.h" |
| 31 #include "content/public/browser/render_process_host.h" | 31 #include "content/public/browser/render_process_host.h" |
| 32 #include "content/public/browser/render_view_host.h" | 32 #include "content/public/browser/render_view_host.h" |
| 33 #include "content/public/browser/user_metrics.h" | 33 #include "content/public/browser/user_metrics.h" |
| 34 #include "content/public/browser/web_contents.h" | 34 #include "content/public/browser/web_contents.h" |
| 35 #include "content/public/browser/web_contents_delegate.h" | 35 #include "content/public/browser/web_contents_delegate.h" |
| 36 #include "grit/generated_resources.h" | 36 #include "grit/generated_resources.h" |
| 37 #include "grit/theme_resources.h" | 37 #include "grit/theme_resources.h" |
| 38 #include "grit/ui_resources.h" | |
| 39 #include "net/base/net_util.h" | 38 #include "net/base/net_util.h" |
| 40 #include "ui/base/l10n/l10n_util.h" | 39 #include "ui/base/l10n/l10n_util.h" |
| 41 #include "ui/base/resource/resource_bundle.h" | 40 #include "ui/base/resource/resource_bundle.h" |
| 41 #include "ui/resources/grit/ui_resources.h" |
| 42 | 42 |
| 43 using base::UserMetricsAction; | 43 using base::UserMetricsAction; |
| 44 using content::WebContents; | 44 using content::WebContents; |
| 45 using content_settings::SettingInfo; | 45 using content_settings::SettingInfo; |
| 46 using content_settings::SettingSource; | 46 using content_settings::SettingSource; |
| 47 using content_settings::SETTING_SOURCE_USER; | 47 using content_settings::SETTING_SOURCE_USER; |
| 48 using content_settings::SETTING_SOURCE_NONE; | 48 using content_settings::SETTING_SOURCE_NONE; |
| 49 | 49 |
| 50 namespace { | 50 namespace { |
| 51 | 51 |
| (...skipping 1271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1323 if (type == content::NOTIFICATION_WEB_CONTENTS_DESTROYED) { | 1323 if (type == content::NOTIFICATION_WEB_CONTENTS_DESTROYED) { |
| 1324 DCHECK_EQ(web_contents_, | 1324 DCHECK_EQ(web_contents_, |
| 1325 content::Source<WebContents>(source).ptr()); | 1325 content::Source<WebContents>(source).ptr()); |
| 1326 web_contents_ = NULL; | 1326 web_contents_ = NULL; |
| 1327 } else { | 1327 } else { |
| 1328 DCHECK_EQ(chrome::NOTIFICATION_PROFILE_DESTROYED, type); | 1328 DCHECK_EQ(chrome::NOTIFICATION_PROFILE_DESTROYED, type); |
| 1329 DCHECK_EQ(profile_, content::Source<Profile>(source).ptr()); | 1329 DCHECK_EQ(profile_, content::Source<Profile>(source).ptr()); |
| 1330 profile_ = NULL; | 1330 profile_ = NULL; |
| 1331 } | 1331 } |
| 1332 } | 1332 } |
| OLD | NEW |