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

Side by Side Diff: chrome/common/extensions/extension_messages.h

Issue 7508029: Add origin permissions to the extension permissions API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix dcheck Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // IPC messages for extensions. 5 // IPC messages for extensions.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "base/shared_memory.h" 8 #include "base/shared_memory.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/common/extensions/extension.h" 10 #include "chrome/common/extensions/extension.h"
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 // Requests application info for the page. The renderer responds back with 227 // Requests application info for the page. The renderer responds back with
228 // ExtensionHostMsg_DidGetApplicationInfo. 228 // ExtensionHostMsg_DidGetApplicationInfo.
229 IPC_MESSAGE_ROUTED1(ExtensionMsg_GetApplicationInfo, 229 IPC_MESSAGE_ROUTED1(ExtensionMsg_GetApplicationInfo,
230 int32 /*page_id*/) 230 int32 /*page_id*/)
231 231
232 // Tell the renderer which browser window it's being attached to. 232 // Tell the renderer which browser window it's being attached to.
233 IPC_MESSAGE_ROUTED1(ExtensionMsg_UpdateBrowserWindowId, 233 IPC_MESSAGE_ROUTED1(ExtensionMsg_UpdateBrowserWindowId,
234 int /* id of browser window */) 234 int /* id of browser window */)
235 235
236 // Tell the renderer to update an extension's permission set. 236 // Tell the renderer to update an extension's permission set.
237 IPC_MESSAGE_CONTROL4(ExtensionMsg_UpdatePermissions, 237 IPC_MESSAGE_CONTROL5(ExtensionMsg_UpdatePermissions,
238 int /* UpdateExtensionPermissionsInfo::REASON */,
238 std::string /* extension_id*/, 239 std::string /* extension_id*/,
239 ExtensionAPIPermissionSet, 240 ExtensionAPIPermissionSet /* permissions */,
240 URLPatternSet, 241 URLPatternSet /* explicit_hosts */,
241 URLPatternSet) 242 URLPatternSet /* scriptable_hosts */)
242 243
243 // Tell the renderer which type this view is. 244 // Tell the renderer which type this view is.
244 IPC_MESSAGE_ROUTED1(ExtensionMsg_NotifyRenderViewType, 245 IPC_MESSAGE_ROUTED1(ExtensionMsg_NotifyRenderViewType,
245 ViewType::Type /* view_type */) 246 ViewType::Type /* view_type */)
246 247
247 // Messages sent from the renderer to the browser. 248 // Messages sent from the renderer to the browser.
248 249
249 // A renderer sends this message when an extension process starts an API 250 // A renderer sends this message when an extension process starts an API
250 // request. The browser will always respond with a ExtensionMsg_Response. 251 // request. The browser will always respond with a ExtensionMsg_Response.
251 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_Request, 252 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_Request,
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 bool /* whether the script ran successfully */, 311 bool /* whether the script ran successfully */,
311 std::string /* error message */) 312 std::string /* error message */)
312 313
313 IPC_MESSAGE_ROUTED2(ExtensionHostMsg_DidGetApplicationInfo, 314 IPC_MESSAGE_ROUTED2(ExtensionHostMsg_DidGetApplicationInfo,
314 int32 /* page_id */, 315 int32 /* page_id */,
315 WebApplicationInfo) 316 WebApplicationInfo)
316 317
317 // Sent by the renderer to implement chrome.app.installApplication(). 318 // Sent by the renderer to implement chrome.app.installApplication().
318 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_InstallApplication, 319 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_InstallApplication,
319 WebApplicationInfo) 320 WebApplicationInfo)
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/experimental.permissions.html ('k') | chrome/renderer/extensions/extension_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698