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

Side by Side Diff: components/webdata_services/web_data_service_wrapper.h

Issue 2107493002: Offer user to send feedback from profile error dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sky's comments and some improvements to the code. Created 4 years, 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SERVICES_WEB_DATA_SERVICE_WRAPPER_H_ 5 #ifndef COMPONENTS_WEBDATA_SERVICES_WEB_DATA_SERVICE_WRAPPER_H_
6 #define COMPONENTS_WEBDATA_SERVICES_WEB_DATA_SERVICE_WRAPPER_H_ 6 #define COMPONENTS_WEBDATA_SERVICES_WEB_DATA_SERVICE_WRAPPER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 27 matching lines...) Expand all
38 class WebDataServiceWrapper : public KeyedService { 38 class WebDataServiceWrapper : public KeyedService {
39 public: 39 public:
40 // ErrorType indicates which service encountered an error loading its data. 40 // ErrorType indicates which service encountered an error loading its data.
41 enum ErrorType { 41 enum ErrorType {
42 ERROR_LOADING_AUTOFILL, 42 ERROR_LOADING_AUTOFILL,
43 ERROR_LOADING_KEYWORD, 43 ERROR_LOADING_KEYWORD,
44 ERROR_LOADING_TOKEN, 44 ERROR_LOADING_TOKEN,
45 ERROR_LOADING_PASSWORD, 45 ERROR_LOADING_PASSWORD,
46 }; 46 };
47 47
48 // Shows an error message if a loading error occurs. 48 // Shows an error message if a loading error occurs.
sky 2016/08/02 13:27:21 Again, document parameters.
afakhry 2016/08/02 23:58:25 Done. This is a different one than the previous co
49 using ShowErrorCallback = void (*)(ErrorType, sql::InitStatus); 49 using ShowErrorCallback = void (*)(ErrorType,
50 sql::InitStatus,
51 const std::string&);
50 52
51 // Constructor for WebDataServiceWrapper that initializes the different 53 // Constructor for WebDataServiceWrapper that initializes the different
52 // WebDataServices and starts the synchronization services using |flare|. 54 // WebDataServices and starts the synchronization services using |flare|.
53 // Since |flare| will be copied and called multiple times, it cannot bind 55 // Since |flare| will be copied and called multiple times, it cannot bind
54 // values using base::Owned nor base::Passed; it should only bind simple or 56 // values using base::Owned nor base::Passed; it should only bind simple or
55 // refcounted types. 57 // refcounted types.
56 WebDataServiceWrapper( 58 WebDataServiceWrapper(
57 const base::FilePath& context_path, 59 const base::FilePath& context_path,
58 const std::string& application_locale, 60 const std::string& application_locale,
59 const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread, 61 const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread,
(...skipping 26 matching lines...) Expand all
86 scoped_refptr<TokenWebData> token_web_data_; 88 scoped_refptr<TokenWebData> token_web_data_;
87 89
88 #if defined(OS_WIN) 90 #if defined(OS_WIN)
89 scoped_refptr<PasswordWebDataService> password_web_data_; 91 scoped_refptr<PasswordWebDataService> password_web_data_;
90 #endif 92 #endif
91 93
92 DISALLOW_COPY_AND_ASSIGN(WebDataServiceWrapper); 94 DISALLOW_COPY_AND_ASSIGN(WebDataServiceWrapper);
93 }; 95 };
94 96
95 #endif // COMPONENTS_WEBDATA_SERVICES_WEB_DATA_SERVICE_WRAPPER_H_ 97 #endif // COMPONENTS_WEBDATA_SERVICES_WEB_DATA_SERVICE_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698