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 <set> | 5 #include <set> |
6 #include <string> | 6 #include <string> |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
11 #include "base/memory/scoped_vector.h" | 11 #include "base/memory/scoped_vector.h" |
12 #include "base/synchronization/waitable_event.h" | 12 #include "base/synchronization/waitable_event.h" |
13 #include "chrome/browser/content_settings/host_content_settings_map.h" | 13 #include "chrome/browser/content_settings/host_content_settings_map.h" |
14 #include "chrome/browser/content_settings/tab_specific_content_settings.h" | 14 #include "chrome/browser/content_settings/tab_specific_content_settings.h" |
15 #include "chrome/browser/geolocation/chrome_geolocation_permission_context.h" | 15 #include "chrome/browser/geolocation/chrome_geolocation_permission_context.h" |
16 #include "chrome/browser/geolocation/chrome_geolocation_permission_context_facto
ry.h" | 16 #include "chrome/browser/geolocation/chrome_geolocation_permission_context_facto
ry.h" |
17 #include "chrome/browser/geolocation/geolocation_permission_request_id.h" | 17 #include "chrome/browser/geolocation/geolocation_permission_request_id.h" |
18 #include "chrome/browser/infobars/confirm_infobar_delegate.h" | 18 #include "chrome/browser/infobars/confirm_infobar_delegate.h" |
19 #include "chrome/browser/infobars/infobar.h" | 19 #include "chrome/browser/infobars/infobar.h" |
20 #include "chrome/browser/infobars/infobar_service.h" | 20 #include "chrome/browser/infobars/infobar_service.h" |
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
672 details.entry = web_contents()->GetController().GetLastCommittedEntry(); | 672 details.entry = web_contents()->GetController().GetLastCommittedEntry(); |
673 EXPECT_FALSE(infobar_0->ShouldExpire(details)); | 673 EXPECT_FALSE(infobar_0->ShouldExpire(details)); |
674 // Ensure the infobar will expire when we commit the pending navigation. | 674 // Ensure the infobar will expire when we commit the pending navigation. |
675 details.entry = web_contents()->GetController().GetActiveEntry(); | 675 details.entry = web_contents()->GetController().GetActiveEntry(); |
676 EXPECT_TRUE(infobar_0->ShouldExpire(details)); | 676 EXPECT_TRUE(infobar_0->ShouldExpire(details)); |
677 | 677 |
678 // Delete the tab contents. | 678 // Delete the tab contents. |
679 DeleteContents(); | 679 DeleteContents(); |
680 delete infobar_0; | 680 delete infobar_0; |
681 } | 681 } |
OLD | NEW |