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

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

Issue 1811413002: [Extensions] Update generated code to support move operations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile fix Created 4 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
« 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 <set> 8 #include <set>
9 9
10 #include "base/files/file.h" 10 #include "base/files/file.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 // Handles a profile preferance change. 125 // Handles a profile preferance change.
126 void OnProfilePrefChanged(); 126 void OnProfilePrefChanged();
127 127
128 // Broadcasts an event to all listeners. 128 // Broadcasts an event to all listeners.
129 void BroadcastItemStateChanged(api::developer_private::EventType event_type, 129 void BroadcastItemStateChanged(api::developer_private::EventType event_type,
130 const std::string& id); 130 const std::string& id);
131 void BroadcastItemStateChangedHelper( 131 void BroadcastItemStateChangedHelper(
132 api::developer_private::EventType event_type, 132 api::developer_private::EventType event_type,
133 const std::string& extension_id, 133 const std::string& extension_id,
134 scoped_ptr<ExtensionInfoGenerator> info_generator, 134 scoped_ptr<ExtensionInfoGenerator> info_generator,
135 const std::vector<linked_ptr<api::developer_private::ExtensionInfo>>& 135 std::vector<api::developer_private::ExtensionInfo> infos);
136 infos);
137 136
138 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> 137 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver>
139 extension_registry_observer_; 138 extension_registry_observer_;
140 ScopedObserver<ErrorConsole, ErrorConsole::Observer> error_console_observer_; 139 ScopedObserver<ErrorConsole, ErrorConsole::Observer> error_console_observer_;
141 ScopedObserver<ProcessManager, ProcessManagerObserver> 140 ScopedObserver<ProcessManager, ProcessManagerObserver>
142 process_manager_observer_; 141 process_manager_observer_;
143 ScopedObserver<AppWindowRegistry, AppWindowRegistry::Observer> 142 ScopedObserver<AppWindowRegistry, AppWindowRegistry::Observer>
144 app_window_registry_observer_; 143 app_window_registry_observer_;
145 ScopedObserver<ExtensionActionAPI, ExtensionActionAPI::Observer> 144 ScopedObserver<ExtensionActionAPI, ExtensionActionAPI::Observer>
146 extension_action_api_observer_; 145 extension_action_api_observer_;
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 public: 253 public:
255 DECLARE_EXTENSION_FUNCTION("developerPrivate.getItemsInfo", 254 DECLARE_EXTENSION_FUNCTION("developerPrivate.getItemsInfo",
256 DEVELOPERPRIVATE_GETITEMSINFO) 255 DEVELOPERPRIVATE_GETITEMSINFO)
257 DeveloperPrivateGetItemsInfoFunction(); 256 DeveloperPrivateGetItemsInfoFunction();
258 257
259 private: 258 private:
260 ~DeveloperPrivateGetItemsInfoFunction() override; 259 ~DeveloperPrivateGetItemsInfoFunction() override;
261 ResponseAction Run() override; 260 ResponseAction Run() override;
262 261
263 void OnInfosGenerated( 262 void OnInfosGenerated(
264 const std::vector<linked_ptr<api::developer_private::ExtensionInfo>>& 263 std::vector<api::developer_private::ExtensionInfo> infos);
265 infos);
266 264
267 scoped_ptr<ExtensionInfoGenerator> info_generator_; 265 scoped_ptr<ExtensionInfoGenerator> info_generator_;
268 266
269 DISALLOW_COPY_AND_ASSIGN(DeveloperPrivateGetItemsInfoFunction); 267 DISALLOW_COPY_AND_ASSIGN(DeveloperPrivateGetItemsInfoFunction);
270 }; 268 };
271 269
272 class DeveloperPrivateGetExtensionsInfoFunction 270 class DeveloperPrivateGetExtensionsInfoFunction
273 : public DeveloperPrivateAPIFunction { 271 : public DeveloperPrivateAPIFunction {
274 public: 272 public:
275 DeveloperPrivateGetExtensionsInfoFunction(); 273 DeveloperPrivateGetExtensionsInfoFunction();
276 DECLARE_EXTENSION_FUNCTION("developerPrivate.getExtensionsInfo", 274 DECLARE_EXTENSION_FUNCTION("developerPrivate.getExtensionsInfo",
277 DEVELOPERPRIVATE_GETEXTENSIONSINFO); 275 DEVELOPERPRIVATE_GETEXTENSIONSINFO);
278 276
279 private: 277 private:
280 ~DeveloperPrivateGetExtensionsInfoFunction() override; 278 ~DeveloperPrivateGetExtensionsInfoFunction() override;
281 ResponseAction Run() override; 279 ResponseAction Run() override;
282 280
283 void OnInfosGenerated( 281 void OnInfosGenerated(
284 const std::vector<linked_ptr<api::developer_private::ExtensionInfo>>& 282 std::vector<api::developer_private::ExtensionInfo> infos);
285 infos);
286 283
287 scoped_ptr<ExtensionInfoGenerator> info_generator_; 284 scoped_ptr<ExtensionInfoGenerator> info_generator_;
288 285
289 DISALLOW_COPY_AND_ASSIGN(DeveloperPrivateGetExtensionsInfoFunction); 286 DISALLOW_COPY_AND_ASSIGN(DeveloperPrivateGetExtensionsInfoFunction);
290 }; 287 };
291 288
292 class DeveloperPrivateGetExtensionInfoFunction 289 class DeveloperPrivateGetExtensionInfoFunction
293 : public DeveloperPrivateAPIFunction { 290 : public DeveloperPrivateAPIFunction {
294 public: 291 public:
295 DeveloperPrivateGetExtensionInfoFunction(); 292 DeveloperPrivateGetExtensionInfoFunction();
296 DECLARE_EXTENSION_FUNCTION("developerPrivate.getExtensionInfo", 293 DECLARE_EXTENSION_FUNCTION("developerPrivate.getExtensionInfo",
297 DEVELOPERPRIVATE_GETEXTENSIONINFO); 294 DEVELOPERPRIVATE_GETEXTENSIONINFO);
298 295
299 private: 296 private:
300 ~DeveloperPrivateGetExtensionInfoFunction() override; 297 ~DeveloperPrivateGetExtensionInfoFunction() override;
301 ResponseAction Run() override; 298 ResponseAction Run() override;
302 299
303 void OnInfosGenerated( 300 void OnInfosGenerated(
304 const std::vector<linked_ptr<api::developer_private::ExtensionInfo>>& 301 std::vector<api::developer_private::ExtensionInfo> infos);
305 infos);
306 302
307 scoped_ptr<ExtensionInfoGenerator> info_generator_; 303 scoped_ptr<ExtensionInfoGenerator> info_generator_;
308 304
309 DISALLOW_COPY_AND_ASSIGN(DeveloperPrivateGetExtensionInfoFunction); 305 DISALLOW_COPY_AND_ASSIGN(DeveloperPrivateGetExtensionInfoFunction);
310 }; 306 };
311 307
312 class DeveloperPrivateGetProfileConfigurationFunction 308 class DeveloperPrivateGetProfileConfigurationFunction
313 : public DeveloperPrivateAPIFunction { 309 : public DeveloperPrivateAPIFunction {
314 public: 310 public:
315 DECLARE_EXTENSION_FUNCTION("developerPrivate.getProfileConfiguration", 311 DECLARE_EXTENSION_FUNCTION("developerPrivate.getProfileConfiguration",
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 protected: 608 protected:
613 ~DeveloperPrivateUpdateExtensionCommandFunction() override; 609 ~DeveloperPrivateUpdateExtensionCommandFunction() override;
614 ResponseAction Run() override; 610 ResponseAction Run() override;
615 }; 611 };
616 612
617 } // namespace api 613 } // namespace api
618 614
619 } // namespace extensions 615 } // namespace extensions
620 616
621 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API _H_ 617 #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