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

Side by Side Diff: chrome/common/extensions/api/developer_private.idl

Issue 12317036: Add API in developerPrivate to allow/ disallow incognito mode. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: comments Created 7 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
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 // developerPrivate API. 5 // developerPrivate API.
6 // This is a private API exposing developing and debugging functionalities for 6 // This is a private API exposing developing and debugging functionalities for
7 // apps and extensions. 7 // apps and extensions.
8 8
9 namespace developerPrivate { 9 namespace developerPrivate {
10 10
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // Unpacked items's path. 91 // Unpacked items's path.
92 DOMString item_path; 92 DOMString item_path;
93 93
94 // Permanent key path. 94 // Permanent key path.
95 DOMString pem_path; 95 DOMString pem_path;
96 96
97 long override_flags; 97 long override_flags;
98 PackStatus status; 98 PackStatus status;
99 }; 99 };
100 100
101 callback VoidCallback = void ();
101 callback BooleanCallback = void (boolean result); 102 callback BooleanCallback = void (boolean result);
102 callback ItemsInfoCallback = void (ItemInfo[] result); 103 callback ItemsInfoCallback = void (ItemInfo[] result);
103 callback GetStringsCallback = void (object result); 104 callback GetStringsCallback = void (object result);
104 callback PathCallback = void (DOMString path); 105 callback PathCallback = void (DOMString path);
105 callback PackCallback = void (PackDirectoryResponse response); 106 callback PackCallback = void (PackDirectoryResponse response);
106 107
107 interface Functions { 108 interface Functions {
108 // Runs auto update for extensions and apps immediately. 109 // Runs auto update for extensions and apps immediately.
109 // |callback| : Called with the boolean result, true if autoUpdate is 110 // |callback| : Called with the boolean result, true if autoUpdate is
110 // successful. 111 // successful.
(...skipping 17 matching lines...) Expand all
128 BooleanCallback callback); 129 BooleanCallback callback);
129 130
130 // Reloads a given item with |itemId|. 131 // Reloads a given item with |itemId|.
131 static void reload(DOMString itemId, BooleanCallback callback); 132 static void reload(DOMString itemId, BooleanCallback callback);
132 133
133 // Enable / Disable a given item with id |itemId|. 134 // Enable / Disable a given item with id |itemId|.
134 static void enable(DOMString itemId, 135 static void enable(DOMString itemId,
135 boolean enable, 136 boolean enable,
136 BooleanCallback callback); 137 BooleanCallback callback);
137 138
139 // Allow / Disallow item with |item_id| in incognito mode.
140 static void allowIncognito(DOMString item_id,
141 boolean allow,
142 VoidCallback callback);
143
138 // Load a user selected unpacked item 144 // Load a user selected unpacked item
139 static void loadUnpacked(BooleanCallback callback); 145 static void loadUnpacked(BooleanCallback callback);
140 146
141 // Open Dialog to browse to an entry. 147 // Open Dialog to browse to an entry.
142 // |select_type| : Select a file or a folder. 148 // |select_type| : Select a file or a folder.
143 // |file_type| : Required file type. For Example pem type is for private 149 // |file_type| : Required file type. For Example pem type is for private
144 // key and load type is for an unpacked item. 150 // key and load type is for an unpacked item.
145 // |callback| : called with selected item's path. 151 // |callback| : called with selected item's path.
146 static void choosePath(SelectType select_type, 152 static void choosePath(SelectType select_type,
147 FileType file_type, 153 FileType file_type,
148 PathCallback callback); 154 PathCallback callback);
149 155
150 // Pack an item with given |path| and |private_key_path| 156 // Pack an item with given |path| and |private_key_path|
151 // |callback| : called with the success result string. 157 // |callback| : called with the success result string.
152 static void packDirectory(DOMString path, 158 static void packDirectory(DOMString path,
153 DOMString private_key_path, 159 DOMString private_key_path,
154 long flags, 160 long flags,
155 PackCallback callback); 161 PackCallback callback);
156 162
157 // Gets localized translated strings for apps_debugger. It returns the 163 // Gets localized translated strings for apps_debugger. It returns the
158 // strings as a dictionary mapping from string identifier to the 164 // strings as a dictionary mapping from string identifier to the
159 // translated string to use in the apps_debugger app UI. 165 // translated string to use in the apps_debugger app UI.
160 static void getStrings(GetStringsCallback callback); 166 static void getStrings(GetStringsCallback callback);
161 }; 167 };
162 168
163 }; 169 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698