Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Side by Side Diff: chrome/browser/extensions/webstore_data_fetcher_delegate.h

Issue 59663002: Switch the WebstoreDataFetcherDelegate::OnWebstoreResponseParseSuccess interface to scoped_ptr. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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_WEBSTORE_DATA_FETCHER_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_WEBSTORE_DATA_FETCHER_DELEGATE_H_
6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_DATA_FETCHER_DELEGATE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_DATA_FETCHER_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h"
11
10 namespace base { 12 namespace base {
11 class DictionaryValue; 13 class DictionaryValue;
12 } 14 }
13 15
14 namespace extensions { 16 namespace extensions {
15 17
16 class WebstoreDataFetcherDelegate { 18 class WebstoreDataFetcherDelegate {
17 public: 19 public:
18 // Invoked when the web store data request failed. 20 // Invoked when the web store data request failed.
19 virtual void OnWebstoreRequestFailure() = 0; 21 virtual void OnWebstoreRequestFailure() = 0;
20 22
21 // Invoked when the web store response parsing is successful. Delegate takes 23 // Invoked when the web store response parsing is successful. Delegate takes
22 // ownership of |webstore_data|. 24 // ownership of |webstore_data|.
23 virtual void OnWebstoreResponseParseSuccess( 25 virtual void OnWebstoreResponseParseSuccess(
24 base::DictionaryValue* webstore_data) = 0; 26 scoped_ptr<base::DictionaryValue> webstore_data) = 0;
25 27
26 // Invoked when the web store response parsing is failed. 28 // Invoked when the web store response parsing is failed.
27 virtual void OnWebstoreResponseParseFailure(const std::string& error) = 0; 29 virtual void OnWebstoreResponseParseFailure(const std::string& error) = 0;
28 30
29 protected: 31 protected:
30 virtual ~WebstoreDataFetcherDelegate() {} 32 virtual ~WebstoreDataFetcherDelegate() {}
31 }; 33 };
32 34
33 } // namespace extensions 35 } // namespace extensions
34 36
35 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_DATA_FETCHER_DELEGATE_H_ 37 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_DATA_FETCHER_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/webstore_data_fetcher.cc ('k') | chrome/browser/extensions/webstore_standalone_installer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698