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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "components/webdata/common/webdata_export.h" | 10 #include "components/webdata/common/webdata_export.h" |
11 | 11 |
12 class WDTypedResult; | 12 class WDTypedResult; |
13 | 13 |
14 // | 14 // |
15 // Result types for WebDataService. | 15 // Result types for WebDataService. |
16 // | 16 // |
17 typedef enum { | 17 typedef enum { |
18 BOOL_RESULT = 1, // WDResult<bool> | 18 BOOL_RESULT = 1, // WDResult<bool> |
19 KEYWORDS_RESULT, // WDResult<WDKeywordsResult> | 19 KEYWORDS_RESULT, // WDResult<WDKeywordsResult> |
20 INT64_RESULT, // WDResult<int64> | 20 INT64_RESULT, // WDResult<int64> |
21 #if defined(OS_WIN) | 21 #if defined(OS_WIN) |
22 PASSWORD_IE7_RESULT, // WDResult<IE7PasswordInfo> | 22 PASSWORD_IE7_RESULT, // WDResult<IE7PasswordInfo> |
23 #endif | 23 #endif |
24 WEB_APP_IMAGES, // WDResult<WDAppImagesResult> | 24 WEB_APP_IMAGES, // WDResult<WDAppImagesResult> |
25 TOKEN_RESULT, // WDResult<std::vector<std::string>> | 25 TOKEN_RESULT, // WDResult<std::vector<std::string>> |
26 AUTOFILL_VALUE_RESULT, // WDResult<std::vector<string16>> | 26 AUTOFILL_VALUE_RESULT, // WDResult<std::vector<base::string16>> |
27 AUTOFILL_CHANGES, // WDResult<std::vector<AutofillChange>> | 27 AUTOFILL_CHANGES, // WDResult<std::vector<AutofillChange>> |
28 AUTOFILL_PROFILE_RESULT, // WDResult<AutofillProfile> | 28 AUTOFILL_PROFILE_RESULT, // WDResult<AutofillProfile> |
29 AUTOFILL_PROFILES_RESULT, // WDResult<std::vector<AutofillProfile*>> | 29 AUTOFILL_PROFILES_RESULT, // WDResult<std::vector<AutofillProfile*>> |
30 AUTOFILL_CREDITCARD_RESULT, // WDResult<CreditCard> | 30 AUTOFILL_CREDITCARD_RESULT, // WDResult<CreditCard> |
31 AUTOFILL_CREDITCARDS_RESULT, // WDResult<std::vector<CreditCard*>> | 31 AUTOFILL_CREDITCARDS_RESULT, // WDResult<std::vector<CreditCard*>> |
32 WEB_INTENTS_RESULT, // WDResult<std::vector<WebIntentServiceData>> | 32 WEB_INTENTS_RESULT, // WDResult<std::vector<WebIntentServiceData>> |
33 WEB_INTENTS_DEFAULTS_RESULT, // WDResult<std::vector<DefaultWebIntentService>> | 33 WEB_INTENTS_DEFAULTS_RESULT, // WDResult<std::vector<DefaultWebIntentService>> |
34 } WDResultType; | 34 } WDResultType; |
35 | 35 |
36 | 36 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 return &value_; | 126 return &value_; |
127 } | 127 } |
128 | 128 |
129 private: | 129 private: |
130 // mutable to keep GetValue() const. | 130 // mutable to keep GetValue() const. |
131 mutable T value_; | 131 mutable T value_; |
132 DISALLOW_COPY_AND_ASSIGN(WDObjectResult); | 132 DISALLOW_COPY_AND_ASSIGN(WDObjectResult); |
133 }; | 133 }; |
134 | 134 |
135 #endif // COMPONENTS_WEBDATA_COMMON_WEB_DATA_RESULTS_H_ | 135 #endif // COMPONENTS_WEBDATA_COMMON_WEB_DATA_RESULTS_H_ |
OLD | NEW |