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

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

Issue 10073011: Fix the optional permissions API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 // 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // The subset of the extension manifest data we send to renderers. 108 // The subset of the extension manifest data we send to renderers.
109 linked_ptr<DictionaryValue> manifest; 109 linked_ptr<DictionaryValue> manifest;
110 110
111 // The location the extension was installed from. 111 // The location the extension was installed from.
112 Extension::Location location; 112 Extension::Location location;
113 113
114 // The path the extension was loaded from. This is used in the renderer only 114 // The path the extension was loaded from. This is used in the renderer only
115 // to generate the extension ID for extensions that are loaded unpacked. 115 // to generate the extension ID for extensions that are loaded unpacked.
116 FilePath path; 116 FilePath path;
117 117
118 // The extension's active permissions.
119 ExtensionAPIPermissionSet apis;
120 URLPatternSet explicit_hosts;
121 URLPatternSet scriptable_hosts;
122
118 // We keep this separate so that it can be used in logging. 123 // We keep this separate so that it can be used in logging.
119 std::string id; 124 std::string id;
120 125
121 // Send creation flags so extension is initialized identically. 126 // Send creation flags so extension is initialized identically.
122 int creation_flags; 127 int creation_flags;
123 }; 128 };
124 129
125 namespace IPC { 130 namespace IPC {
126 131
127 template <> 132 template <>
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 419
415 // Informs the browser there is one less thing keeping the lazy background page 420 // Informs the browser there is one less thing keeping the lazy background page
416 // alive. 421 // alive.
417 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_DecrementLazyKeepaliveCount, 422 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_DecrementLazyKeepaliveCount,
418 std::string /* extension_id */) 423 std::string /* extension_id */)
419 424
420 // Fetches a globally unique ID (for the lifetime of the browser) from the 425 // Fetches a globally unique ID (for the lifetime of the browser) from the
421 // browser process. 426 // browser process.
422 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, 427 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID,
423 int /* unique_id */) 428 int /* unique_id */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698