| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/android/preferences/website_preference_bridge.h" | 5 #include "chrome/browser/android/preferences/website_preference_bridge.h" |
| 6 | 6 |
| 7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
| 8 #include "base/android/jni_string.h" | 8 #include "base/android/jni_string.h" |
| 9 #include "base/android/scoped_java_ref.h" | 9 #include "base/android/scoped_java_ref.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
| 12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/macros.h" |
| 13 #include "chrome/browser/browser_process.h" | 14 #include "chrome/browser/browser_process.h" |
| 14 #include "chrome/browser/browsing_data/browsing_data_local_storage_helper.h" | 15 #include "chrome/browser/browsing_data/browsing_data_local_storage_helper.h" |
| 15 #include "chrome/browser/browsing_data/cookies_tree_model.h" | 16 #include "chrome/browser/browsing_data/cookies_tree_model.h" |
| 16 #include "chrome/browser/browsing_data/local_data_container.h" | 17 #include "chrome/browser/browsing_data/local_data_container.h" |
| 17 #include "chrome/browser/content_settings/cookie_settings_factory.h" | 18 #include "chrome/browser/content_settings/cookie_settings_factory.h" |
| 18 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" | 19 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" |
| 19 #include "chrome/browser/content_settings/web_site_settings_uma_util.h" | 20 #include "chrome/browser/content_settings/web_site_settings_uma_util.h" |
| 20 #include "chrome/browser/notifications/desktop_notification_profile_util.h" | 21 #include "chrome/browser/notifications/desktop_notification_profile_util.h" |
| 21 #include "chrome/browser/profiles/profile.h" | 22 #include "chrome/browser/profiles/profile.h" |
| 22 #include "chrome/browser/profiles/profile_manager.h" | 23 #include "chrome/browser/profiles/profile_manager.h" |
| (...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 794 GURL url(ConvertJavaStringToUTF8(env, jorigin)); | 795 GURL url(ConvertJavaStringToUTF8(env, jorigin)); |
| 795 scoped_refptr<SiteDataDeleteHelper> site_data_deleter( | 796 scoped_refptr<SiteDataDeleteHelper> site_data_deleter( |
| 796 new SiteDataDeleteHelper(profile, url)); | 797 new SiteDataDeleteHelper(profile, url)); |
| 797 site_data_deleter->Run(); | 798 site_data_deleter->Run(); |
| 798 } | 799 } |
| 799 | 800 |
| 800 // Register native methods | 801 // Register native methods |
| 801 bool RegisterWebsitePreferenceBridge(JNIEnv* env) { | 802 bool RegisterWebsitePreferenceBridge(JNIEnv* env) { |
| 802 return RegisterNativesImpl(env); | 803 return RegisterNativesImpl(env); |
| 803 } | 804 } |
| OLD | NEW |