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 <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/android/callback_android.h" | 11 #include "base/android/callback_android.h" |
12 #include "base/android/jni_android.h" | 12 #include "base/android/jni_android.h" |
13 #include "base/android/jni_string.h" | 13 #include "base/android/jni_string.h" |
14 #include "base/android/scoped_java_ref.h" | 14 #include "base/android/scoped_java_ref.h" |
15 #include "base/bind.h" | 15 #include "base/bind.h" |
16 #include "base/bind_helpers.h" | 16 #include "base/bind_helpers.h" |
17 #include "base/json/json_reader.h" | 17 #include "base/json/json_reader.h" |
18 #include "base/json/json_writer.h" | 18 #include "base/json/json_writer.h" |
19 #include "base/logging.h" | 19 #include "base/logging.h" |
20 #include "base/macros.h" | 20 #include "base/macros.h" |
21 #include "chrome/browser/android/preferences/important_sites_util.h" | |
22 #include "chrome/browser/browsing_data/browsing_data_flash_lso_helper.h" | 21 #include "chrome/browser/browsing_data/browsing_data_flash_lso_helper.h" |
23 #include "chrome/browser/browsing_data/browsing_data_local_storage_helper.h" | 22 #include "chrome/browser/browsing_data/browsing_data_local_storage_helper.h" |
24 #include "chrome/browser/browsing_data/browsing_data_quota_helper.h" | 23 #include "chrome/browser/browsing_data/browsing_data_quota_helper.h" |
25 #include "chrome/browser/browsing_data/cookies_tree_model.h" | 24 #include "chrome/browser/browsing_data/cookies_tree_model.h" |
26 #include "chrome/browser/browsing_data/local_data_container.h" | 25 #include "chrome/browser/browsing_data/local_data_container.h" |
27 #include "chrome/browser/content_settings/cookie_settings_factory.h" | 26 #include "chrome/browser/content_settings/cookie_settings_factory.h" |
28 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" | 27 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" |
29 #include "chrome/browser/content_settings/tab_specific_content_settings.h" | 28 #include "chrome/browser/content_settings/tab_specific_content_settings.h" |
30 #include "chrome/browser/content_settings/web_site_settings_uma_util.h" | 29 #include "chrome/browser/content_settings/web_site_settings_uma_util.h" |
| 30 #include "chrome/browser/engagement/important_sites_util.h" |
31 #include "chrome/browser/notifications/desktop_notification_profile_util.h" | 31 #include "chrome/browser/notifications/desktop_notification_profile_util.h" |
32 #include "chrome/browser/permissions/permission_uma_util.h" | 32 #include "chrome/browser/permissions/permission_uma_util.h" |
33 #include "chrome/browser/permissions/permission_util.h" | 33 #include "chrome/browser/permissions/permission_util.h" |
34 #include "chrome/browser/profiles/profile.h" | 34 #include "chrome/browser/profiles/profile.h" |
35 #include "chrome/browser/profiles/profile_manager.h" | 35 #include "chrome/browser/profiles/profile_manager.h" |
36 #include "chrome/browser/storage/storage_info_fetcher.h" | 36 #include "chrome/browser/storage/storage_info_fetcher.h" |
37 #include "chrome/browser/usb/usb_chooser_context.h" | 37 #include "chrome/browser/usb/usb_chooser_context.h" |
38 #include "chrome/browser/usb/usb_chooser_context_factory.h" | 38 #include "chrome/browser/usb/usb_chooser_context_factory.h" |
39 #include "components/content_settings/core/browser/cookie_settings.h" | 39 #include "components/content_settings/core/browser/cookie_settings.h" |
40 #include "components/content_settings/core/browser/host_content_settings_map.h" | 40 #include "components/content_settings/core/browser/host_content_settings_map.h" |
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
792 GURL url(ConvertJavaStringToUTF8(env, jorigin)); | 792 GURL url(ConvertJavaStringToUTF8(env, jorigin)); |
793 scoped_refptr<SiteDataDeleteHelper> site_data_deleter( | 793 scoped_refptr<SiteDataDeleteHelper> site_data_deleter( |
794 new SiteDataDeleteHelper(profile, url)); | 794 new SiteDataDeleteHelper(profile, url)); |
795 site_data_deleter->Run(); | 795 site_data_deleter->Run(); |
796 } | 796 } |
797 | 797 |
798 // Register native methods | 798 // Register native methods |
799 bool RegisterWebsitePreferenceBridge(JNIEnv* env) { | 799 bool RegisterWebsitePreferenceBridge(JNIEnv* env) { |
800 return RegisterNativesImpl(env); | 800 return RegisterNativesImpl(env); |
801 } | 801 } |
OLD | NEW |