OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CHROME_BROWSER_PERMISSIONS_PERMISSION_CONTEXT_BASE_H_ | 5 #ifndef CHROME_BROWSER_PERMISSIONS_PERMISSION_CONTEXT_BASE_H_ |
6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_CONTEXT_BASE_H_ | 6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_CONTEXT_BASE_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/containers/scoped_ptr_hash_map.h" | 9 #include "base/containers/scoped_ptr_hash_map.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/scoped_ptr.h" |
11 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
12 #include "build/build_config.h" | 13 #include "build/build_config.h" |
13 #include "chrome/browser/ui/website_settings/permission_bubble_request.h" | 14 #include "chrome/browser/ui/website_settings/permission_bubble_request.h" |
14 #include "components/content_settings/core/common/content_settings.h" | 15 #include "components/content_settings/core/common/content_settings.h" |
15 #include "components/content_settings/core/common/content_settings_types.h" | 16 #include "components/content_settings/core/common/content_settings_types.h" |
16 #include "components/keyed_service/core/keyed_service.h" | 17 #include "components/keyed_service/core/keyed_service.h" |
17 #include "content/public/browser/permission_type.h" | 18 #include "content/public/browser/permission_type.h" |
18 #include "url/gurl.h" | 19 #include "url/gurl.h" |
19 | 20 |
20 #if defined(OS_ANDROID) | 21 #if defined(OS_ANDROID) |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 #endif | 165 #endif |
165 base::ScopedPtrHashMap<std::string, scoped_ptr<PermissionBubbleRequest>> | 166 base::ScopedPtrHashMap<std::string, scoped_ptr<PermissionBubbleRequest>> |
166 pending_bubbles_; | 167 pending_bubbles_; |
167 | 168 |
168 // Must be the last member, to ensure that it will be | 169 // Must be the last member, to ensure that it will be |
169 // destroyed first, which will invalidate weak pointers | 170 // destroyed first, which will invalidate weak pointers |
170 base::WeakPtrFactory<PermissionContextBase> weak_factory_; | 171 base::WeakPtrFactory<PermissionContextBase> weak_factory_; |
171 }; | 172 }; |
172 | 173 |
173 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_CONTEXT_BASE_H_ | 174 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_CONTEXT_BASE_H_ |
OLD | NEW |