1 // Copyright (c) 2018 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.
4 
5 #include <vector>
6 
7 #include "chromecast/browser/extensions/api/history/history_api.h"
8 
9 namespace extensions {
10 namespace cast {
11 namespace api {
12 
13 using HistoryItemList = std::vector<api::history::HistoryItem>;
14 using VisitItemList = std::vector<api::history::VisitItem>;
15 
Run()16 ExtensionFunction::ResponseAction HistoryGetVisitsFunction::Run() {
17   return RespondNow(
18       ArgumentList(history::GetVisits::Results::Create(VisitItemList())));
19 }
20 
Run()21 ExtensionFunction::ResponseAction HistorySearchFunction::Run() {
22   return RespondNow(
23       ArgumentList(history::Search::Results::Create(HistoryItemList())));
24 }
25 
Run()26 ExtensionFunction::ResponseAction HistoryAddUrlFunction::Run() {
27   return RespondNow(NoArguments());
28 }
29 
Run()30 ExtensionFunction::ResponseAction HistoryDeleteUrlFunction::Run() {
31   return RespondNow(NoArguments());
32 }
33 
Run()34 ExtensionFunction::ResponseAction HistoryDeleteRangeFunction::Run() {
35   return RespondNow(NoArguments());
36 }
37 
Run()38 ExtensionFunction::ResponseAction HistoryDeleteAllFunction::Run() {
39   return RespondNow(NoArguments());
40 }
41 
42 }  // namespace api
43 }  // namespace cast
44 }  // namespace extensions
45