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 <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 ChromeQuotaPermissionContext* context, | 47 ChromeQuotaPermissionContext* context, |
48 const GURL& origin_url, | 48 const GURL& origin_url, |
49 int64 requested_quota, | 49 int64 requested_quota, |
50 const std::string& display_languages, | 50 const std::string& display_languages, |
51 const content::QuotaPermissionContext::PermissionCallback& callback); | 51 const content::QuotaPermissionContext::PermissionCallback& callback); |
52 virtual ~RequestQuotaInfoBarDelegate(); | 52 virtual ~RequestQuotaInfoBarDelegate(); |
53 | 53 |
54 // ConfirmInfoBarDelegate: | 54 // ConfirmInfoBarDelegate: |
55 virtual bool ShouldExpireInternal( | 55 virtual bool ShouldExpireInternal( |
56 const content::LoadCommittedDetails& details) const OVERRIDE; | 56 const content::LoadCommittedDetails& details) const OVERRIDE; |
57 virtual string16 GetMessageText() const OVERRIDE; | 57 virtual base::string16 GetMessageText() const OVERRIDE; |
58 virtual bool Accept() OVERRIDE; | 58 virtual bool Accept() OVERRIDE; |
59 virtual bool Cancel() OVERRIDE; | 59 virtual bool Cancel() OVERRIDE; |
60 | 60 |
61 scoped_refptr<ChromeQuotaPermissionContext> context_; | 61 scoped_refptr<ChromeQuotaPermissionContext> context_; |
62 GURL origin_url_; | 62 GURL origin_url_; |
63 std::string display_languages_; | 63 std::string display_languages_; |
64 int64 requested_quota_; | 64 int64 requested_quota_; |
65 content::QuotaPermissionContext::PermissionCallback callback_; | 65 content::QuotaPermissionContext::PermissionCallback callback_; |
66 | 66 |
67 DISALLOW_COPY_AND_ASSIGN(RequestQuotaInfoBarDelegate); | 67 DISALLOW_COPY_AND_ASSIGN(RequestQuotaInfoBarDelegate); |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 content::BrowserThread::IO, FROM_HERE, | 201 content::BrowserThread::IO, FROM_HERE, |
202 base::Bind(&ChromeQuotaPermissionContext::DispatchCallbackOnIOThread, | 202 base::Bind(&ChromeQuotaPermissionContext::DispatchCallbackOnIOThread, |
203 this, callback, response)); | 203 this, callback, response)); |
204 return; | 204 return; |
205 } | 205 } |
206 | 206 |
207 callback.Run(response); | 207 callback.Run(response); |
208 } | 208 } |
209 | 209 |
210 ChromeQuotaPermissionContext::~ChromeQuotaPermissionContext() {} | 210 ChromeQuotaPermissionContext::~ChromeQuotaPermissionContext() {} |
OLD | NEW |