| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 COMPONENTS_WEBDATA_COMMON_WEB_DATA_RESULTS_H_ | 5 #ifndef COMPONENTS_WEBDATA_COMMON_WEB_DATA_RESULTS_H_ |
| 6 #define COMPONENTS_WEBDATA_COMMON_WEB_DATA_RESULTS_H_ | 6 #define COMPONENTS_WEBDATA_COMMON_WEB_DATA_RESULTS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 #include "components/webdata/common/webdata_export.h" | 13 #include "components/webdata/common/webdata_export.h" |
| 14 | 14 |
| 15 class WDTypedResult; | 15 class WDTypedResult; |
| 16 | 16 |
| 17 // | 17 // |
| 18 // Result types for WebDataService. | 18 // Result types for WebDataService. |
| 19 // | 19 // |
| 20 typedef enum { | 20 typedef enum { |
| 21 BOOL_RESULT = 1, // WDResult<bool> | 21 BOOL_RESULT = 1, // WDResult<bool> |
| 22 KEYWORDS_RESULT, // WDResult<WDKeywordsResult> | 22 KEYWORDS_RESULT, // WDResult<WDKeywordsResult> |
| 23 INT64_RESULT, // WDResult<int64_t> | 23 INT64_RESULT, // WDResult<int64_t> |
| 24 #if defined(OS_WIN) // | 24 #if defined(OS_WIN) // |
| 25 PASSWORD_IE7_RESULT, // WDResult<IE7PasswordInfo> | 25 PASSWORD_IE7_RESULT, // WDResult<IE7PasswordInfo> |
| 26 #endif // | 26 #endif // |
| 27 WEB_APP_IMAGES, // WDResult<WDAppImagesResult> | 27 WEB_APP_IMAGES, // WDResult<WDAppImagesResult> |
| 28 TOKEN_RESULT, // WDResult<std::vector<std::string>> | 28 TOKEN_RESULT, // WDResult<TokenResult> |
| 29 AUTOFILL_VALUE_RESULT, // WDResult<std::vector<base::string16>> | 29 AUTOFILL_VALUE_RESULT, // WDResult<std::vector<base::string16>> |
| 30 AUTOFILL_CHANGES, // WDResult<std::vector<AutofillChange>> | 30 AUTOFILL_CHANGES, // WDResult<std::vector<AutofillChange>> |
| 31 AUTOFILL_PROFILE_RESULT, // WDResult<AutofillProfile> | 31 AUTOFILL_PROFILE_RESULT, // WDResult<AutofillProfile> |
| 32 AUTOFILL_PROFILES_RESULT, // WDResult<std::vector< | 32 AUTOFILL_PROFILES_RESULT, // WDResult<std::vector< |
| 33 // std::unique_ptr<AutofillProfile>>> | 33 // std::unique_ptr<AutofillProfile>>> |
| 34 AUTOFILL_CREDITCARD_RESULT, // WDResult<CreditCard> | 34 AUTOFILL_CREDITCARD_RESULT, // WDResult<CreditCard> |
| 35 AUTOFILL_CREDITCARDS_RESULT, // WDResult<std::vector< | 35 AUTOFILL_CREDITCARDS_RESULT, // WDResult<std::vector< |
| 36 // std::unique_ptr<CreditCard>>> | 36 // std::unique_ptr<CreditCard>>> |
| 37 } WDResultType; | 37 } WDResultType; |
| 38 | 38 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 const T& GetValue() const { return value_; } | 72 const T& GetValue() const { return value_; } |
| 73 T GetValue() { return std::move(value_); } | 73 T GetValue() { return std::move(value_); } |
| 74 | 74 |
| 75 private: | 75 private: |
| 76 T value_; | 76 T value_; |
| 77 | 77 |
| 78 DISALLOW_COPY_AND_ASSIGN(WDResult); | 78 DISALLOW_COPY_AND_ASSIGN(WDResult); |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 #endif // COMPONENTS_WEBDATA_COMMON_WEB_DATA_RESULTS_H_ | 81 #endif // COMPONENTS_WEBDATA_COMMON_WEB_DATA_RESULTS_H_ |
| OLD | NEW |