| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/guestview/webview/webview_guest.h" | 5 #include "chrome/browser/guestview/webview/webview_guest.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
| 9 #include "chrome/browser/extensions/api/web_request/web_request_api.h" | 9 #include "chrome/browser/extensions/api/web_request/web_request_api.h" |
| 10 #include "chrome/browser/extensions/extension_renderer_state.h" | 10 #include "chrome/browser/extensions/extension_renderer_state.h" |
| (...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 uint32 removal_mask, | 432 uint32 removal_mask, |
| 433 const base::Closure& callback) { | 433 const base::Closure& callback) { |
| 434 content::StoragePartition* partition = | 434 content::StoragePartition* partition = |
| 435 content::BrowserContext::GetStoragePartition( | 435 content::BrowserContext::GetStoragePartition( |
| 436 web_contents()->GetBrowserContext(), | 436 web_contents()->GetBrowserContext(), |
| 437 web_contents()->GetSiteInstance()); | 437 web_contents()->GetSiteInstance()); |
| 438 | 438 |
| 439 if (!partition) | 439 if (!partition) |
| 440 return false; | 440 return false; |
| 441 | 441 |
| 442 partition->ClearDataForRange( | 442 partition->ClearData( |
| 443 removal_mask, | 443 removal_mask, |
| 444 content::StoragePartition::QUOTA_MANAGED_STORAGE_MASK_ALL, | 444 content::StoragePartition::QUOTA_MANAGED_STORAGE_MASK_ALL, |
| 445 NULL, |
| 446 content::StoragePartition::OriginMatcherFunction(), |
| 445 remove_since, | 447 remove_since, |
| 446 base::Time::Now(), | 448 base::Time::Now(), |
| 447 callback); | 449 callback); |
| 448 return true; | 450 return true; |
| 449 } | 451 } |
| 450 | 452 |
| 451 WebViewGuest::~WebViewGuest() { | 453 WebViewGuest::~WebViewGuest() { |
| 452 } | 454 } |
| 453 | 455 |
| 454 void WebViewGuest::DidCommitProvisionalLoadForFrame( | 456 void WebViewGuest::DidCommitProvisionalLoadForFrame( |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 | 589 |
| 588 WebViewGuest::PermissionResponseInfo::PermissionResponseInfo( | 590 WebViewGuest::PermissionResponseInfo::PermissionResponseInfo( |
| 589 const PermissionResponseCallback& callback, | 591 const PermissionResponseCallback& callback, |
| 590 bool allowed_by_default) | 592 bool allowed_by_default) |
| 591 : callback(callback), | 593 : callback(callback), |
| 592 allowed_by_default(allowed_by_default) { | 594 allowed_by_default(allowed_by_default) { |
| 593 } | 595 } |
| 594 | 596 |
| 595 WebViewGuest::PermissionResponseInfo::~PermissionResponseInfo() { | 597 WebViewGuest::PermissionResponseInfo::~PermissionResponseInfo() { |
| 596 } | 598 } |
| OLD | NEW |