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/extensions/active_tab_permission_granter.h" | 5 #include "chrome/browser/extensions/active_tab_permission_granter.h" |
6 | 6 |
| 7 #include "chrome/browser/chrome_notification_types.h" |
7 #include "chrome/browser/extensions/extension_service.h" | 8 #include "chrome/browser/extensions/extension_service.h" |
8 #include "chrome/browser/extensions/extension_system.h" | 9 #include "chrome/browser/extensions/extension_system.h" |
9 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
10 #include "chrome/browser/sessions/session_id.h" | 11 #include "chrome/browser/sessions/session_id.h" |
11 #include "chrome/common/chrome_notification_types.h" | |
12 #include "chrome/common/extensions/extension.h" | 12 #include "chrome/common/extensions/extension.h" |
13 #include "chrome/common/extensions/extension_messages.h" | 13 #include "chrome/common/extensions/extension_messages.h" |
14 #include "chrome/common/extensions/permissions/permission_set.h" | 14 #include "chrome/common/extensions/permissions/permission_set.h" |
15 #include "chrome/common/extensions/permissions/permissions_data.h" | 15 #include "chrome/common/extensions/permissions/permissions_data.h" |
16 #include "chrome/common/extensions/user_script.h" | 16 #include "chrome/common/extensions/user_script.h" |
17 #include "content/public/browser/navigation_entry.h" | 17 #include "content/public/browser/navigation_entry.h" |
18 #include "content/public/browser/navigation_details.h" | 18 #include "content/public/browser/navigation_details.h" |
19 #include "content/public/browser/notification_service.h" | 19 #include "content/public/browser/notification_service.h" |
20 #include "content/public/browser/notification_source.h" | 20 #include "content/public/browser/notification_source.h" |
21 #include "content/public/browser/render_process_host.h" | 21 #include "content/public/browser/render_process_host.h" |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 | 113 |
114 Send(new ExtensionMsg_ClearTabSpecificPermissions(tab_id_, extension_ids)); | 114 Send(new ExtensionMsg_ClearTabSpecificPermissions(tab_id_, extension_ids)); |
115 granted_extensions_.Clear(); | 115 granted_extensions_.Clear(); |
116 } | 116 } |
117 | 117 |
118 int32 ActiveTabPermissionGranter::GetPageID() { | 118 int32 ActiveTabPermissionGranter::GetPageID() { |
119 return web_contents()->GetController().GetActiveEntry()->GetPageID(); | 119 return web_contents()->GetController().GetActiveEntry()->GetPageID(); |
120 } | 120 } |
121 | 121 |
122 } // namespace extensions | 122 } // namespace extensions |
OLD | NEW |