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

Side by Side Diff: chrome/browser/android/preferences/website_preference_bridge.cc

Issue 1701883006: Clean up some of the includes following my refactoring patch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/storage/storage_info_fetcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
13 #include "base/macros.h" 12 #include "base/macros.h"
14 #include "chrome/browser/browser_process.h"
15 #include "chrome/browser/browsing_data/browsing_data_local_storage_helper.h" 13 #include "chrome/browser/browsing_data/browsing_data_local_storage_helper.h"
14 #include "chrome/browser/browsing_data/browsing_data_quota_helper.h"
16 #include "chrome/browser/browsing_data/cookies_tree_model.h" 15 #include "chrome/browser/browsing_data/cookies_tree_model.h"
17 #include "chrome/browser/browsing_data/local_data_container.h" 16 #include "chrome/browser/browsing_data/local_data_container.h"
18 #include "chrome/browser/content_settings/cookie_settings_factory.h" 17 #include "chrome/browser/content_settings/cookie_settings_factory.h"
19 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" 18 #include "chrome/browser/content_settings/host_content_settings_map_factory.h"
20 #include "chrome/browser/content_settings/tab_specific_content_settings.h" 19 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
21 #include "chrome/browser/content_settings/web_site_settings_uma_util.h" 20 #include "chrome/browser/content_settings/web_site_settings_uma_util.h"
22 #include "chrome/browser/notifications/desktop_notification_profile_util.h" 21 #include "chrome/browser/notifications/desktop_notification_profile_util.h"
23 #include "chrome/browser/profiles/profile.h" 22 #include "chrome/browser/profiles/profile.h"
24 #include "chrome/browser/profiles/profile_manager.h" 23 #include "chrome/browser/profiles/profile_manager.h"
25 #include "chrome/browser/storage/storage_info_fetcher.h" 24 #include "chrome/browser/storage/storage_info_fetcher.h"
26 #include "components/content_settings/core/browser/cookie_settings.h" 25 #include "components/content_settings/core/browser/cookie_settings.h"
27 #include "components/content_settings/core/browser/host_content_settings_map.h" 26 #include "components/content_settings/core/browser/host_content_settings_map.h"
28 #include "content/public/browser/browser_thread.h" 27 #include "content/public/browser/browser_thread.h"
29 #include "content/public/browser/storage_partition.h" 28 #include "content/public/browser/storage_partition.h"
30 #include "jni/WebsitePreferenceBridge_jni.h" 29 #include "jni/WebsitePreferenceBridge_jni.h"
31 #include "storage/browser/quota/quota_client.h"
32 #include "storage/browser/quota/quota_manager.h" 30 #include "storage/browser/quota/quota_manager.h"
31 #include "storage/common/quota/quota_status_code.h"
33 #include "url/url_constants.h" 32 #include "url/url_constants.h"
34 33
35 using base::android::ConvertJavaStringToUTF8; 34 using base::android::ConvertJavaStringToUTF8;
36 using base::android::ConvertUTF8ToJavaString; 35 using base::android::ConvertUTF8ToJavaString;
37 using base::android::JavaRef; 36 using base::android::JavaRef;
38 using base::android::ScopedJavaGlobalRef; 37 using base::android::ScopedJavaGlobalRef;
39 using base::android::ScopedJavaLocalRef; 38 using base::android::ScopedJavaLocalRef;
40 using content::BrowserThread; 39 using content::BrowserThread;
41 40
42 namespace { 41 namespace {
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 GURL url(ConvertJavaStringToUTF8(env, jorigin)); 765 GURL url(ConvertJavaStringToUTF8(env, jorigin));
767 scoped_refptr<SiteDataDeleteHelper> site_data_deleter( 766 scoped_refptr<SiteDataDeleteHelper> site_data_deleter(
768 new SiteDataDeleteHelper(profile, url)); 767 new SiteDataDeleteHelper(profile, url));
769 site_data_deleter->Run(); 768 site_data_deleter->Run();
770 } 769 }
771 770
772 // Register native methods 771 // Register native methods
773 bool RegisterWebsitePreferenceBridge(JNIEnv* env) { 772 bool RegisterWebsitePreferenceBridge(JNIEnv* env) {
774 return RegisterNativesImpl(env); 773 return RegisterNativesImpl(env);
775 } 774 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/storage/storage_info_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698