Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: chrome/browser/extensions/permissions_updater.cc

Issue 194333002: Move extension_messages.h to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge again Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/permissions_updater.h" 5 #include "chrome/browser/extensions/permissions_updater.h"
6 6
7 #include "base/json/json_writer.h" 7 #include "base/json/json_writer.h"
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/chrome_notification_types.h" 10 #include "chrome/browser/chrome_notification_types.h"
11 #include "chrome/browser/extensions/api/permissions/permissions_api_helpers.h" 11 #include "chrome/browser/extensions/api/permissions/permissions_api_helpers.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/common/extensions/api/permissions.h" 13 #include "chrome/common/extensions/api/permissions.h"
14 #include "chrome/common/extensions/extension_messages.h"
15 #include "content/public/browser/notification_observer.h" 14 #include "content/public/browser/notification_observer.h"
16 #include "content/public/browser/notification_registrar.h" 15 #include "content/public/browser/notification_registrar.h"
17 #include "content/public/browser/notification_service.h" 16 #include "content/public/browser/notification_service.h"
18 #include "content/public/browser/render_process_host.h" 17 #include "content/public/browser/render_process_host.h"
19 #include "extensions/browser/event_router.h" 18 #include "extensions/browser/event_router.h"
20 #include "extensions/browser/extension_prefs.h" 19 #include "extensions/browser/extension_prefs.h"
21 #include "extensions/browser/extension_system.h" 20 #include "extensions/browser/extension_system.h"
22 #include "extensions/common/extension.h" 21 #include "extensions/common/extension.h"
22 #include "extensions/common/extension_messages.h"
23 #include "extensions/common/permissions/permissions_data.h" 23 #include "extensions/common/permissions/permissions_data.h"
24 24
25 using content::RenderProcessHost; 25 using content::RenderProcessHost;
26 using extensions::permissions_api_helpers::PackPermissionSet; 26 using extensions::permissions_api_helpers::PackPermissionSet;
27 27
28 namespace extensions { 28 namespace extensions {
29 29
30 namespace permissions = api::permissions; 30 namespace permissions = api::permissions;
31 31
32 PermissionsUpdater::PermissionsUpdater(Profile* profile) 32 PermissionsUpdater::PermissionsUpdater(Profile* profile)
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 info.scriptable_hosts = changed->scriptable_hosts(); 148 info.scriptable_hosts = changed->scriptable_hosts();
149 host->Send(new ExtensionMsg_UpdatePermissions(info)); 149 host->Send(new ExtensionMsg_UpdatePermissions(info));
150 } 150 }
151 } 151 }
152 152
153 // Trigger the onAdded and onRemoved events in the extension. 153 // Trigger the onAdded and onRemoved events in the extension.
154 DispatchEvent(extension->id(), event_name, changed); 154 DispatchEvent(extension->id(), event_name, changed);
155 } 155 }
156 156
157 } // namespace extensions 157 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_web_contents_observer.cc ('k') | chrome/browser/extensions/script_executor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698