OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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_READING_LIST_PRIVATE_READING_LIST_PRIVATE_
API_H_ | 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_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_READING_LIST_PRIVATE_READING_LIST_PRIVATE_
API_H_ |
7 | 7 |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "chrome/browser/extensions/chrome_extension_function.h" | 9 #include "chrome/browser/extensions/chrome_extension_function.h" |
10 #include "chrome/common/extensions/api/reading_list_private.h" | 10 #include "chrome/common/extensions/api/reading_list_private.h" |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 class WebContents; | 13 class WebContents; |
14 } | 14 } |
15 | 15 |
16 namespace extensions { | 16 namespace extensions { |
17 | 17 |
18 class ReadingListPrivateAddEntryFunction : public ChromeAsyncExtensionFunction { | 18 class ReadingListPrivateAddEntryFunction : public ChromeAsyncExtensionFunction { |
19 public: | 19 public: |
20 DECLARE_EXTENSION_FUNCTION("readingListPrivate.addEntry", | 20 DECLARE_EXTENSION_FUNCTION("readingListPrivate.addEntry", |
21 READINGLISTPRIVATE_ADDENTRY) | 21 READINGLISTPRIVATE_ADDENTRY) |
22 | 22 |
23 protected: | 23 protected: |
24 virtual ~ReadingListPrivateAddEntryFunction() {} | 24 virtual ~ReadingListPrivateAddEntryFunction() {} |
25 | 25 |
26 // ExtensionFunction: | 26 // ExtensionFunction: |
27 virtual bool RunAsync() OVERRIDE; | 27 virtual bool RunAsync() override; |
28 }; | 28 }; |
29 | 29 |
30 class ReadingListPrivateRemoveEntryFunction | 30 class ReadingListPrivateRemoveEntryFunction |
31 : public ChromeSyncExtensionFunction { | 31 : public ChromeSyncExtensionFunction { |
32 public: | 32 public: |
33 DECLARE_EXTENSION_FUNCTION("readingListPrivate.removeEntry", | 33 DECLARE_EXTENSION_FUNCTION("readingListPrivate.removeEntry", |
34 READINGLISTPRIVATE_REMOVEENTRY) | 34 READINGLISTPRIVATE_REMOVEENTRY) |
35 | 35 |
36 protected: | 36 protected: |
37 virtual ~ReadingListPrivateRemoveEntryFunction() {} | 37 virtual ~ReadingListPrivateRemoveEntryFunction() {} |
38 | 38 |
39 // ExtensionFunction: | 39 // ExtensionFunction: |
40 virtual bool RunSync() OVERRIDE; | 40 virtual bool RunSync() override; |
41 }; | 41 }; |
42 | 42 |
43 class ReadingListPrivateGetEntriesFunction | 43 class ReadingListPrivateGetEntriesFunction |
44 : public ChromeSyncExtensionFunction { | 44 : public ChromeSyncExtensionFunction { |
45 public: | 45 public: |
46 DECLARE_EXTENSION_FUNCTION("readingListPrivate.getEntries", | 46 DECLARE_EXTENSION_FUNCTION("readingListPrivate.getEntries", |
47 READINGLISTPRIVATE_GETENTRIES) | 47 READINGLISTPRIVATE_GETENTRIES) |
48 | 48 |
49 protected: | 49 protected: |
50 virtual ~ReadingListPrivateGetEntriesFunction() {} | 50 virtual ~ReadingListPrivateGetEntriesFunction() {} |
51 | 51 |
52 // ExtensionFunction: | 52 // ExtensionFunction: |
53 virtual bool RunSync() OVERRIDE; | 53 virtual bool RunSync() override; |
54 }; | 54 }; |
55 | 55 |
56 } // namespace extensions | 56 } // namespace extensions |
57 | 57 |
58 #endif // CHROME_BROWSER_EXTENSIONS_API_READING_LIST_PRIVATE_READING_LIST_PRIVA
TE_API_H_ | 58 #endif // CHROME_BROWSER_EXTENSIONS_API_READING_LIST_PRIVATE_READING_LIST_PRIVA
TE_API_H_ |
OLD | NEW |