1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_READING_LIST_PRIVATE_READING_LIST_PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_READING_LIST_PRIVATE_READING_LIST_PRIVATE_API_H_
8 #include "base/values.h"
9 #include "chrome/browser/extensions/chrome_extension_function.h"
10 #include "chrome/common/extensions/api/reading_list_private.h"
16 namespace extensions {
18 class ReadingListPrivateAddEntryFunction : public ChromeAsyncExtensionFunction {
20 DECLARE_EXTENSION_FUNCTION("readingListPrivate.addEntry",
21 READINGLISTPRIVATE_ADDENTRY)
24 virtual ~ReadingListPrivateAddEntryFunction() {}
27 virtual bool RunImpl() OVERRIDE;
30 class ReadingListPrivateRemoveEntryFunction
31 : public ChromeSyncExtensionFunction {
33 DECLARE_EXTENSION_FUNCTION("readingListPrivate.removeEntry",
34 READINGLISTPRIVATE_REMOVEENTRY)
37 virtual ~ReadingListPrivateRemoveEntryFunction() {}
40 virtual bool RunImpl() OVERRIDE;
43 class ReadingListPrivateGetEntriesFunction
44 : public ChromeSyncExtensionFunction {
46 DECLARE_EXTENSION_FUNCTION("readingListPrivate.getEntries",
47 READINGLISTPRIVATE_GETENTRIES)
50 virtual ~ReadingListPrivateGetEntriesFunction() {}
53 virtual bool RunImpl() OVERRIDE;
56 } // namespace extensions
58 #endif // CHROME_BROWSER_EXTENSIONS_API_READING_LIST_PRIVATE_READING_LIST_PRIVATE_API_H_