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

Side by Side Diff: chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.h

Issue 475483003: Wire easy unlock settings UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CHROME_BROWSER_EXTENSIONS_API_EASY_UNLOCK_PRIVATE_EASY_UNLOCK_PRIVATE_AP I_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_EASY_UNLOCK_PRIVATE_EASY_UNLOCK_PRIVATE_AP I_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_EASY_UNLOCK_PRIVATE_EASY_UNLOCK_PRIVATE_AP I_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_EASY_UNLOCK_PRIVATE_EASY_UNLOCK_PRIVATE_AP I_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h"
11 #include "extensions/browser/browser_context_keyed_api_factory.h" 12 #include "extensions/browser/browser_context_keyed_api_factory.h"
12 #include "extensions/browser/extension_function.h" 13 #include "extensions/browser/extension_function.h"
13 14
14 // Implementations for chrome.easyUnlockPrivate API functions. 15 // Implementations for chrome.easyUnlockPrivate API functions.
15 16
16 namespace content { 17 namespace content {
17 class BrowserContext; 18 class BrowserContext;
18 } 19 }
19 20
20 namespace extensions { 21 namespace extensions {
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 174
174 virtual bool RunSync() OVERRIDE; 175 virtual bool RunSync() OVERRIDE;
175 176
176 private: 177 private:
177 DECLARE_EXTENSION_FUNCTION("easyUnlockPrivate.updateScreenlockState", 178 DECLARE_EXTENSION_FUNCTION("easyUnlockPrivate.updateScreenlockState",
178 EASYUNLOCKPRIVATE_UPDATESCREENLOCKSTATE) 179 EASYUNLOCKPRIVATE_UPDATESCREENLOCKSTATE)
179 180
180 DISALLOW_COPY_AND_ASSIGN(EasyUnlockPrivateUpdateScreenlockStateFunction); 181 DISALLOW_COPY_AND_ASSIGN(EasyUnlockPrivateUpdateScreenlockStateFunction);
181 }; 182 };
182 183
184 class EasyUnlockPrivateSetPermitAccessFunction : public SyncExtensionFunction {
185 public:
186 DECLARE_EXTENSION_FUNCTION("easyUnlockPrivate.setPermitAccess",
187 EASYUNLOCKPRIVATE_SETPERMITACCESS)
188 EasyUnlockPrivateSetPermitAccessFunction();
189
190 private:
191 virtual ~EasyUnlockPrivateSetPermitAccessFunction();
192
193 // SyncExtensionFunction:
194 virtual bool RunSync() OVERRIDE;
195
196 DISALLOW_COPY_AND_ASSIGN(EasyUnlockPrivateSetPermitAccessFunction);
197 };
198
199 class EasyUnlockPrivateGetPermitAccessFunction : public SyncExtensionFunction {
200 public:
201 DECLARE_EXTENSION_FUNCTION("easyUnlockPrivate.getPermitAccess",
202 EASYUNLOCKPRIVATE_GETPERMITACCESS)
203 EasyUnlockPrivateGetPermitAccessFunction();
204
205 private:
206 virtual ~EasyUnlockPrivateGetPermitAccessFunction();
207
208 // SyncExtensionFunction:
209 virtual bool RunSync() OVERRIDE;
210
211 DISALLOW_COPY_AND_ASSIGN(EasyUnlockPrivateGetPermitAccessFunction);
212 };
213
214 class EasyUnlockPrivateClearPermitAccessFunction
215 : public SyncExtensionFunction {
216 public:
217 DECLARE_EXTENSION_FUNCTION("easyUnlockPrivate.clearPermitAccess",
218 EASYUNLOCKPRIVATE_CLEARPERMITACCESS)
219 EasyUnlockPrivateClearPermitAccessFunction();
220
221 private:
222 virtual ~EasyUnlockPrivateClearPermitAccessFunction();
223
224 // SyncExtensionFunction:
225 virtual bool RunSync() OVERRIDE;
226
227 DISALLOW_COPY_AND_ASSIGN(EasyUnlockPrivateClearPermitAccessFunction);
228 };
229
230 class EasyUnlockPrivateSetRemoteDevicesFunction : public SyncExtensionFunction {
231 public:
232 DECLARE_EXTENSION_FUNCTION("easyUnlockPrivate.setRemoteDevices",
233 EASYUNLOCKPRIVATE_SETREMOTEDEVICES)
234 EasyUnlockPrivateSetRemoteDevicesFunction();
235
236 private:
237 virtual ~EasyUnlockPrivateSetRemoteDevicesFunction();
238
239 // SyncExtensionFunction:
240 virtual bool RunSync() OVERRIDE;
241
242 DISALLOW_COPY_AND_ASSIGN(EasyUnlockPrivateSetRemoteDevicesFunction);
243 };
244
245 class EasyUnlockPrivateGetRemoteDevicesFunction : public SyncExtensionFunction {
246 public:
247 DECLARE_EXTENSION_FUNCTION("easyUnlockPrivate.getRemoteDevices",
248 EASYUNLOCKPRIVATE_GETREMOTEDEVICES)
249 EasyUnlockPrivateGetRemoteDevicesFunction();
250
251 private:
252 virtual ~EasyUnlockPrivateGetRemoteDevicesFunction();
253
254 // SyncExtensionFunction:
255 virtual bool RunSync() OVERRIDE;
256
257 DISALLOW_COPY_AND_ASSIGN(EasyUnlockPrivateGetRemoteDevicesFunction);
258 };
259
183 } // namespace api 260 } // namespace api
184 } // namespace extensions 261 } // namespace extensions
185 262
186 #endif // CHROME_BROWSER_EXTENSIONS_API_EASY_UNLOCK_PRIVATE_EASY_UNLOCK_PRIVATE _API_H_ 263 #endif // CHROME_BROWSER_EXTENSIONS_API_EASY_UNLOCK_PRIVATE_EASY_UNLOCK_PRIVATE _API_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698