1 // Copyright 2013 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_WEBSTORE_DATA_FETCHER_DELEGATE_H_
6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_DATA_FETCHER_DELEGATE_H_
10 #include "base/memory/scoped_ptr.h"
13 class DictionaryValue
;
16 namespace extensions
{
18 class WebstoreDataFetcherDelegate
{
20 // Invoked when the web store data request failed.
21 virtual void OnWebstoreRequestFailure() = 0;
23 // Invoked when the web store response parsing is successful. Delegate takes
24 // ownership of |webstore_data|.
25 virtual void OnWebstoreResponseParseSuccess(
26 scoped_ptr
<base::DictionaryValue
> webstore_data
) = 0;
28 // Invoked when the web store response parsing is failed.
29 virtual void OnWebstoreResponseParseFailure(const std::string
& error
) = 0;
32 virtual ~WebstoreDataFetcherDelegate() {}
35 } // namespace extensions
37 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_DATA_FETCHER_DELEGATE_H_