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

Side by Side Diff: chrome/browser/extensions/api/developer_private/developer_private_api.h

Issue 12317036: Add API in developerPrivate to allow/ disallow incognito mode. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 7 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/developer_private/developer_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 (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 #ifndef CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API_H_
7 7
8 #include "chrome/browser/extensions/api/developer_private/entry_picker.h" 8 #include "chrome/browser/extensions/api/developer_private/entry_picker.h"
9 #include "chrome/browser/extensions/api/file_system/file_system_api.h" 9 #include "chrome/browser/extensions/api/file_system/file_system_api.h"
10 #include "chrome/browser/extensions/extension_function.h" 10 #include "chrome/browser/extensions/extension_function.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 DECLARE_EXTENSION_FUNCTION("developerPrivate.allowFileAccess", 156 DECLARE_EXTENSION_FUNCTION("developerPrivate.allowFileAccess",
157 DEVELOPERPRIVATE_ALLOWFILEACCESS); 157 DEVELOPERPRIVATE_ALLOWFILEACCESS);
158 158
159 protected: 159 protected:
160 virtual ~DeveloperPrivateAllowFileAccessFunction(); 160 virtual ~DeveloperPrivateAllowFileAccessFunction();
161 161
162 // ExtensionFunction: 162 // ExtensionFunction:
163 virtual bool RunImpl() OVERRIDE; 163 virtual bool RunImpl() OVERRIDE;
164 }; 164 };
165 165
166 class DeveloperPrivateAllowIncognitoFunction : public SyncExtensionFunction {
167 public:
168 DECLARE_EXTENSION_FUNCTION("developerPrivate.allowIncognito",
169 DEVELOPERPRIVATE_ALLOWINCOGNITO);
170
171 protected:
172 virtual ~DeveloperPrivateAllowIncognitoFunction();
173
174 // ExtensionFunction:
175 virtual bool RunImpl() OVERRIDE;
176 };
177
166 class DeveloperPrivateReloadFunction : public SyncExtensionFunction { 178 class DeveloperPrivateReloadFunction : public SyncExtensionFunction {
167 public: 179 public:
168 DECLARE_EXTENSION_FUNCTION("developerPrivate.reload", 180 DECLARE_EXTENSION_FUNCTION("developerPrivate.reload",
169 DEVELOPERPRIVATE_RELOAD); 181 DEVELOPERPRIVATE_RELOAD);
170 182
171 protected: 183 protected:
172 virtual ~DeveloperPrivateReloadFunction(); 184 virtual ~DeveloperPrivateReloadFunction();
173 185
174 // ExtensionFunction: 186 // ExtensionFunction:
175 virtual bool RunImpl() OVERRIDE; 187 virtual bool RunImpl() OVERRIDE;
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 305
294 // ExtensionFunction 306 // ExtensionFunction
295 virtual bool RunImpl() OVERRIDE; 307 virtual bool RunImpl() OVERRIDE;
296 }; 308 };
297 309
298 } // namespace api 310 } // namespace api
299 311
300 } // namespace extensions 312 } // namespace extensions
301 313
302 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API _H_ 314 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API _H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/developer_private/developer_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698