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

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

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header Created 4 years, 8 months 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
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 <memory>
8 #include <string> 9 #include <string>
9 10
10 #include "base/memory/scoped_ptr.h"
11 11
12 namespace base { 12 namespace base {
13 class DictionaryValue; 13 class DictionaryValue;
14 } 14 }
15 15
16 namespace extensions { 16 namespace extensions {
17 17
18 class WebstoreDataFetcherDelegate { 18 class WebstoreDataFetcherDelegate {
19 public: 19 public:
20 // Invoked when the web store data request failed. 20 // Invoked when the web store data request failed.
21 virtual void OnWebstoreRequestFailure() = 0; 21 virtual void OnWebstoreRequestFailure() = 0;
22 22
23 // Invoked when the web store response parsing is successful. Delegate takes 23 // Invoked when the web store response parsing is successful. Delegate takes
24 // ownership of |webstore_data|. 24 // ownership of |webstore_data|.
25 virtual void OnWebstoreResponseParseSuccess( 25 virtual void OnWebstoreResponseParseSuccess(
26 scoped_ptr<base::DictionaryValue> webstore_data) = 0; 26 std::unique_ptr<base::DictionaryValue> webstore_data) = 0;
27 27
28 // Invoked when the web store response parsing is failed. 28 // Invoked when the web store response parsing is failed.
29 virtual void OnWebstoreResponseParseFailure(const std::string& error) = 0; 29 virtual void OnWebstoreResponseParseFailure(const std::string& error) = 0;
30 30
31 // Keys for indexing the returned webstore data. 31 // Keys for indexing the returned webstore data.
32 static const char kAverageRatingKey[]; 32 static const char kAverageRatingKey[];
33 static const char kIconUrlKey[]; 33 static const char kIconUrlKey[];
34 static const char kIdKey[]; 34 static const char kIdKey[];
35 static const char kInlineInstallNotSupportedKey[]; 35 static const char kInlineInstallNotSupportedKey[];
36 static const char kLocalizedDescriptionKey[]; 36 static const char kLocalizedDescriptionKey[];
37 static const char kLocalizedNameKey[]; 37 static const char kLocalizedNameKey[];
38 static const char kManifestKey[]; 38 static const char kManifestKey[];
39 static const char kRatingCountKey[]; 39 static const char kRatingCountKey[];
40 static const char kRedirectUrlKey[]; 40 static const char kRedirectUrlKey[];
41 static const char kShowUserCountKey[]; 41 static const char kShowUserCountKey[];
42 static const char kUsersKey[]; 42 static const char kUsersKey[];
43 static const char kVerifiedSiteKey[]; 43 static const char kVerifiedSiteKey[];
44 static const char kVerifiedSitesKey[]; 44 static const char kVerifiedSitesKey[];
45 45
46 protected: 46 protected:
47 virtual ~WebstoreDataFetcherDelegate() {} 47 virtual ~WebstoreDataFetcherDelegate() {}
48 }; 48 };
49 49
50 } // namespace extensions 50 } // namespace extensions
51 51
52 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_DATA_FETCHER_DELEGATE_H_ 52 #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_inline_installer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698