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

Side by Side Diff: chrome/browser/extensions/api/activity_log_private/activity_log_private_api.h

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header Created 4 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // This extension API provides access to the Activity Log, which is a 5 // This extension API provides access to the Activity Log, which is a
6 // monitoring framework for extension behavior. Only specific Google-produced 6 // monitoring framework for extension behavior. Only specific Google-produced
7 // extensions should have access to it. 7 // extensions should have access to it.
8 8
9 #ifndef CHROME_BROWSER_EXTENSIONS_API_ACTIVITY_LOG_PRIVATE_ACTIVITY_LOG_PRIVATE_ API_H_ 9 #ifndef CHROME_BROWSER_EXTENSIONS_API_ACTIVITY_LOG_PRIVATE_ACTIVITY_LOG_PRIVATE_ API_H_
10 #define CHROME_BROWSER_EXTENSIONS_API_ACTIVITY_LOG_PRIVATE_ACTIVITY_LOG_PRIVATE_ API_H_ 10 #define CHROME_BROWSER_EXTENSIONS_API_ACTIVITY_LOG_PRIVATE_ACTIVITY_LOG_PRIVATE_ API_H_
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 ACTIVITYLOGPRIVATE_GETEXTENSIONACTIVITIES) 69 ACTIVITYLOGPRIVATE_GETEXTENSIONACTIVITIES)
70 70
71 protected: 71 protected:
72 ~ActivityLogPrivateGetExtensionActivitiesFunction() override {} 72 ~ActivityLogPrivateGetExtensionActivitiesFunction() override {}
73 73
74 // ExtensionFunction: 74 // ExtensionFunction:
75 bool RunAsync() override; 75 bool RunAsync() override;
76 76
77 private: 77 private:
78 void OnLookupCompleted( 78 void OnLookupCompleted(
79 scoped_ptr<std::vector<scoped_refptr<Action> > > activities); 79 std::unique_ptr<std::vector<scoped_refptr<Action>>> activities);
80 }; 80 };
81 81
82 // The implementation of activityLogPrivate.deleteActivities 82 // The implementation of activityLogPrivate.deleteActivities
83 class ActivityLogPrivateDeleteActivitiesFunction 83 class ActivityLogPrivateDeleteActivitiesFunction
84 : public ChromeAsyncExtensionFunction { 84 : public ChromeAsyncExtensionFunction {
85 public: 85 public:
86 DECLARE_EXTENSION_FUNCTION("activityLogPrivate.deleteActivities", 86 DECLARE_EXTENSION_FUNCTION("activityLogPrivate.deleteActivities",
87 ACTIVITYLOGPRIVATE_DELETEACTIVITIES) 87 ACTIVITYLOGPRIVATE_DELETEACTIVITIES)
88 88
89 protected: 89 protected:
(...skipping 27 matching lines...) Expand all
117 protected: 117 protected:
118 ~ActivityLogPrivateDeleteUrlsFunction() override {} 118 ~ActivityLogPrivateDeleteUrlsFunction() override {}
119 119
120 // ExtensionFunction: 120 // ExtensionFunction:
121 bool RunAsync() override; 121 bool RunAsync() override;
122 }; 122 };
123 123
124 } // namespace extensions 124 } // namespace extensions
125 125
126 #endif // CHROME_BROWSER_EXTENSIONS_API_ACTIVITY_LOG_PRIVATE_ACTIVITY_LOG_PRIVA TE_API_H_ 126 #endif // CHROME_BROWSER_EXTENSIONS_API_ACTIVITY_LOG_PRIVATE_ACTIVITY_LOG_PRIVA TE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698