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

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

Issue 989843002: [Extensions] Make chrome://extensions use developerPrivate for inspect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 #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 <set> 8 #include <set>
9 9
10 #include "base/files/file.h" 10 #include "base/files/file.h"
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 ItemInspectViewList* result); 217 ItemInspectViewList* result);
218 218
219 linked_ptr<developer::ItemInspectView> constructInspectView( 219 linked_ptr<developer::ItemInspectView> constructInspectView(
220 const GURL& url, 220 const GURL& url,
221 int render_process_id, 221 int render_process_id,
222 int render_view_id, 222 int render_view_id,
223 bool incognito, 223 bool incognito,
224 bool generated_background_page); 224 bool generated_background_page);
225 }; 225 };
226 226
227 class DeveloperPrivateInspectFunction : public ChromeSyncExtensionFunction { 227 class DeveloperPrivateInspectFunction : public UIThreadExtensionFunction {
228 public: 228 public:
229 DECLARE_EXTENSION_FUNCTION("developerPrivate.inspect", 229 DECLARE_EXTENSION_FUNCTION("developerPrivate.inspect",
230 DEVELOPERPRIVATE_INSPECT) 230 DEVELOPERPRIVATE_INSPECT)
231 231
232 protected: 232 protected:
233 ~DeveloperPrivateInspectFunction() override; 233 ~DeveloperPrivateInspectFunction() override;
234 234
235 // ExtensionFunction: 235 // ExtensionFunction:
236 bool RunSync() override; 236 ResponseAction Run() override;
237 }; 237 };
238 238
239 class DeveloperPrivateAllowFileAccessFunction 239 class DeveloperPrivateAllowFileAccessFunction
240 : public DeveloperPrivateAPIFunction { 240 : public DeveloperPrivateAPIFunction {
241 public: 241 public:
242 DECLARE_EXTENSION_FUNCTION("developerPrivate.allowFileAccess", 242 DECLARE_EXTENSION_FUNCTION("developerPrivate.allowFileAccess",
243 DEVELOPERPRIVATE_ALLOWFILEACCESS); 243 DEVELOPERPRIVATE_ALLOWFILEACCESS);
244 244
245 protected: 245 protected:
246 ~DeveloperPrivateAllowFileAccessFunction() override; 246 ~DeveloperPrivateAllowFileAccessFunction() override;
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 473
474 // ExtensionFunction: 474 // ExtensionFunction:
475 bool RunAsync() override; 475 bool RunAsync() override;
476 }; 476 };
477 477
478 } // namespace api 478 } // namespace api
479 479
480 } // namespace extensions 480 } // namespace extensions
481 481
482 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API _H_ 482 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698