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

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

Issue 2074263002: [Experimental] Fool around with exposing extension bindings via blink Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 10 matching lines...) Expand all
21 #include "chrome/browser/extensions/extension_uninstall_dialog.h" 21 #include "chrome/browser/extensions/extension_uninstall_dialog.h"
22 #include "chrome/browser/extensions/pack_extension_job.h" 22 #include "chrome/browser/extensions/pack_extension_job.h"
23 #include "chrome/common/extensions/api/developer_private.h" 23 #include "chrome/common/extensions/api/developer_private.h"
24 #include "chrome/common/extensions/webstore_install_result.h" 24 #include "chrome/common/extensions/webstore_install_result.h"
25 #include "components/prefs/pref_change_registrar.h" 25 #include "components/prefs/pref_change_registrar.h"
26 #include "extensions/browser/app_window/app_window_registry.h" 26 #include "extensions/browser/app_window/app_window_registry.h"
27 #include "extensions/browser/browser_context_keyed_api_factory.h" 27 #include "extensions/browser/browser_context_keyed_api_factory.h"
28 #include "extensions/browser/event_router.h" 28 #include "extensions/browser/event_router.h"
29 #include "extensions/browser/extension_prefs_observer.h" 29 #include "extensions/browser/extension_prefs_observer.h"
30 #include "extensions/browser/extension_registry_observer.h" 30 #include "extensions/browser/extension_registry_observer.h"
31 #include "extensions/browser/mojo_extension_function.h"
31 #include "extensions/browser/process_manager_observer.h" 32 #include "extensions/browser/process_manager_observer.h"
32 #include "extensions/browser/warning_service.h" 33 #include "extensions/browser/warning_service.h"
34 #include "extensions/common/api/mojo/developer_private.mojom.h"
33 #include "storage/browser/fileapi/file_system_context.h" 35 #include "storage/browser/fileapi/file_system_context.h"
34 #include "storage/browser/fileapi/file_system_operation.h" 36 #include "storage/browser/fileapi/file_system_operation.h"
35 #include "ui/shell_dialogs/select_file_dialog.h" 37 #include "ui/shell_dialogs/select_file_dialog.h"
36 38
37 class Profile; 39 class Profile;
38 40
39 namespace extensions { 41 namespace extensions {
40 42
41 class EventRouter; 43 class EventRouter;
42 class ExtensionError; 44 class ExtensionError;
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 : public DeveloperPrivateAPIFunction { 322 : public DeveloperPrivateAPIFunction {
321 public: 323 public:
322 DECLARE_EXTENSION_FUNCTION("developerPrivate.updateProfileConfiguration", 324 DECLARE_EXTENSION_FUNCTION("developerPrivate.updateProfileConfiguration",
323 DEVELOPERPRIVATE_UPDATEPROFILECONFIGURATION); 325 DEVELOPERPRIVATE_UPDATEPROFILECONFIGURATION);
324 326
325 private: 327 private:
326 ~DeveloperPrivateUpdateProfileConfigurationFunction() override; 328 ~DeveloperPrivateUpdateProfileConfigurationFunction() override;
327 ResponseAction Run() override; 329 ResponseAction Run() override;
328 }; 330 };
329 331
330 class DeveloperPrivateUpdateExtensionConfigurationFunction 332 class DeveloperPrivateUpdateExtensionConfigurationFunction
Ken Rockot(use gerrit already) 2016/06/20 17:19:24 Why does this even still need to exist?
Devlin 2016/06/20 17:49:23 A few reasons. - If you look at the delta in the c
Ken Rockot(use gerrit already) 2016/06/20 18:34:54 - check permissions, log call and performance hist
Devlin 2016/06/20 18:58:41 Renderer-side lifetime management has caused a ton
Ken Rockot(use gerrit already) 2016/06/20 19:54:20 Hmm. I'm not sure I understand the problem. Is it
Devlin 2016/06/20 21:35:25 Yes, it is more reliable, because we don't have to
Ken Rockot(use gerrit already) 2016/06/20 22:36:34 If the keepalive is only used to keep the process
331 : public DeveloperPrivateAPIFunction { 333 : public MojoExtensionFunction<
334 void,
335 mojom::UpdateExtensionConfigurationParamsPtr> {
332 public: 336 public:
333 DECLARE_EXTENSION_FUNCTION("developerPrivate.updateExtensionConfiguration", 337 DeveloperPrivateUpdateExtensionConfigurationFunction(
334 DEVELOPERPRIVATE_UPDATEEXTENSIONCONFIGURATION); 338 const mojo::Callback<void()>& callback);
339 RunResult Run(mojom::UpdateExtensionConfigurationParamsPtr) override;
335 340
336 protected: 341 protected:
337 ~DeveloperPrivateUpdateExtensionConfigurationFunction() override; 342 ~DeveloperPrivateUpdateExtensionConfigurationFunction() override;
338 ResponseAction Run() override;
339 }; 343 };
340 344
341 class DeveloperPrivateReloadFunction : public DeveloperPrivateAPIFunction { 345 class DeveloperPrivateReloadFunction : public DeveloperPrivateAPIFunction {
342 public: 346 public:
343 DECLARE_EXTENSION_FUNCTION("developerPrivate.reload", 347 DECLARE_EXTENSION_FUNCTION("developerPrivate.reload",
344 DEVELOPERPRIVATE_RELOAD); 348 DEVELOPERPRIVATE_RELOAD);
345 349
346 protected: 350 protected:
347 ~DeveloperPrivateReloadFunction() override; 351 ~DeveloperPrivateReloadFunction() override;
348 352
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 protected: 612 protected:
609 ~DeveloperPrivateUpdateExtensionCommandFunction() override; 613 ~DeveloperPrivateUpdateExtensionCommandFunction() override;
610 ResponseAction Run() override; 614 ResponseAction Run() override;
611 }; 615 };
612 616
613 } // namespace api 617 } // namespace api
614 618
615 } // namespace extensions 619 } // namespace extensions
616 620
617 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API _H_ 621 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698