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/chrome_quota_permission_context.h" | 5 #include "chrome/browser/chrome_quota_permission_context.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/prefs/pref_service.h" | |
14 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
15 #include "build/build_config.h" | 14 #include "build/build_config.h" |
16 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
17 #include "chrome/browser/tab_contents/tab_util.h" | 16 #include "chrome/browser/tab_contents/tab_util.h" |
18 #include "chrome/browser/ui/website_settings/permission_bubble_request.h" | 17 #include "chrome/browser/ui/website_settings/permission_bubble_request.h" |
19 #include "chrome/common/pref_names.h" | 18 #include "chrome/common/pref_names.h" |
20 #include "chrome/grit/generated_resources.h" | 19 #include "chrome/grit/generated_resources.h" |
21 #include "chrome/grit/locale_settings.h" | 20 #include "chrome/grit/locale_settings.h" |
| 21 #include "components/prefs/pref_service.h" |
22 #include "components/url_formatter/elide_url.h" | 22 #include "components/url_formatter/elide_url.h" |
23 #include "content/public/browser/browser_thread.h" | 23 #include "content/public/browser/browser_thread.h" |
24 #include "content/public/browser/navigation_details.h" | 24 #include "content/public/browser/navigation_details.h" |
25 #include "content/public/browser/web_contents.h" | 25 #include "content/public/browser/web_contents.h" |
26 #include "grit/theme_resources.h" | 26 #include "grit/theme_resources.h" |
27 #include "storage/common/quota/quota_types.h" | 27 #include "storage/common/quota/quota_types.h" |
28 #include "ui/base/l10n/l10n_util.h" | 28 #include "ui/base/l10n/l10n_util.h" |
29 #include "url/gurl.h" | 29 #include "url/gurl.h" |
30 | 30 |
31 #if defined(OS_ANDROID) | 31 #if defined(OS_ANDROID) |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 content::BrowserThread::IO, FROM_HERE, | 330 content::BrowserThread::IO, FROM_HERE, |
331 base::Bind(&ChromeQuotaPermissionContext::DispatchCallbackOnIOThread, | 331 base::Bind(&ChromeQuotaPermissionContext::DispatchCallbackOnIOThread, |
332 this, callback, response)); | 332 this, callback, response)); |
333 return; | 333 return; |
334 } | 334 } |
335 | 335 |
336 callback.Run(response); | 336 callback.Run(response); |
337 } | 337 } |
338 | 338 |
339 ChromeQuotaPermissionContext::~ChromeQuotaPermissionContext() {} | 339 ChromeQuotaPermissionContext::~ChromeQuotaPermissionContext() {} |
OLD | NEW |