blob: 9693b8077212d050715af7b05fe27de2cc787d30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_HISTORY_TOP_SITES_EXTENSION_API_H_
#define CHROME_BROWSER_HISTORY_TOP_SITES_EXTENSION_API_H_
#pragma once
#include "chrome/browser/extensions/extension_function.h"
#include "chrome/browser/history/history_types.h"
#include "content/browser/cancelable_request.h"
class GetTopSitesFunction : public AsyncExtensionFunction {
public:
GetTopSitesFunction();
virtual ~GetTopSitesFunction();
virtual bool RunImpl() OVERRIDE;
DECLARE_EXTENSION_FUNCTION_NAME("experimental.topSites.get")
private:
void OnMostVisitedURLsAvailable(
const history::MostVisitedURLList& data);
CancelableRequestConsumer topsites_consumer_;
};
#endif // CHROME_BROWSER_HISTORY_TOP_SITES_EXTENSION_API_H_
|