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

Side by Side Diff: chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.h

Issue 257333002: Drive extension functions from ExtensionFunction::Run. The (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: appshell Created 6 years, 7 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 | Annotate | Revision Log
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_BOOKMARK_MANAGER_PRIVATE_BOOKMARK_MANAGER_ PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_BOOKMARK_MANAGER_PRIVATE_BOOKMARK_MANAGER_ PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_BOOKMARK_MANAGER_PRIVATE_BOOKMARK_MANAGER_ PRIVATE_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_BOOKMARK_MANAGER_PRIVATE_BOOKMARK_MANAGER_ PRIVATE_API_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/extensions/api/bookmarks/bookmarks_api.h" 10 #include "chrome/browser/extensions/api/bookmarks/bookmarks_api.h"
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 190
191 class BookmarkManagerPrivateGetStringsFunction : public AsyncExtensionFunction { 191 class BookmarkManagerPrivateGetStringsFunction : public AsyncExtensionFunction {
192 public: 192 public:
193 DECLARE_EXTENSION_FUNCTION("bookmarkManagerPrivate.getStrings", 193 DECLARE_EXTENSION_FUNCTION("bookmarkManagerPrivate.getStrings",
194 BOOKMARKMANAGERPRIVATE_GETSTRINGS) 194 BOOKMARKMANAGERPRIVATE_GETSTRINGS)
195 195
196 protected: 196 protected:
197 virtual ~BookmarkManagerPrivateGetStringsFunction() {} 197 virtual ~BookmarkManagerPrivateGetStringsFunction() {}
198 198
199 // ExtensionFunction: 199 // ExtensionFunction:
200 virtual bool RunImpl() OVERRIDE; 200 virtual bool RunAsync() OVERRIDE;
201 }; 201 };
202 202
203 class BookmarkManagerPrivateStartDragFunction 203 class BookmarkManagerPrivateStartDragFunction
204 : public extensions::BookmarksFunction { 204 : public extensions::BookmarksFunction {
205 public: 205 public:
206 DECLARE_EXTENSION_FUNCTION("bookmarkManagerPrivate.startDrag", 206 DECLARE_EXTENSION_FUNCTION("bookmarkManagerPrivate.startDrag",
207 BOOKMARKMANAGERPRIVATE_STARTDRAG) 207 BOOKMARKMANAGERPRIVATE_STARTDRAG)
208 208
209 protected: 209 protected:
210 virtual ~BookmarkManagerPrivateStartDragFunction() {} 210 virtual ~BookmarkManagerPrivateStartDragFunction() {}
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 protected: 391 protected:
392 virtual ~BookmarkManagerPrivateGetRedoInfoFunction() {} 392 virtual ~BookmarkManagerPrivateGetRedoInfoFunction() {}
393 393
394 // ExtensionFunction: 394 // ExtensionFunction:
395 virtual bool RunOnReady() OVERRIDE; 395 virtual bool RunOnReady() OVERRIDE;
396 }; 396 };
397 397
398 } // namespace extensions 398 } // namespace extensions
399 399
400 #endif // CHROME_BROWSER_EXTENSIONS_API_BOOKMARK_MANAGER_PRIVATE_BOOKMARK_MANAG ER_PRIVATE_API_H_ 400 #endif // CHROME_BROWSER_EXTENSIONS_API_BOOKMARK_MANAGER_PRIVATE_BOOKMARK_MANAG ER_PRIVATE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698