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

Side by Side Diff: components/password_manager/core/browser/affiliated_match_helper.h

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 4 years, 11 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_PASSWORD_MANAGER_CORE_BROWSER_AFFILIATED_MATCH_HELPER_H_ 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_AFFILIATED_MATCH_HELPER_H_
6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_AFFILIATED_MATCH_HELPER_H_ 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_AFFILIATED_MATCH_HELPER_H_
7 7
8 #include <stdint.h>
9
8 #include <string> 10 #include <string>
9 #include <vector> 11 #include <vector>
10 12
11 #include "base/callback_forward.h" 13 #include "base/callback_forward.h"
12 #include "base/macros.h" 14 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/scoped_vector.h" 17 #include "base/memory/scoped_vector.h"
16 #include "components/password_manager/core/browser/affiliation_utils.h" 18 #include "components/password_manager/core/browser/affiliation_utils.h"
17 #include "components/password_manager/core/browser/password_store.h" 19 #include "components/password_manager/core/browser/password_store.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // Sets the task runner to be used to delay I/O heavy initialization. Should 94 // Sets the task runner to be used to delay I/O heavy initialization. Should
93 // be called before Initialize(). Used only for testing. 95 // be called before Initialize(). Used only for testing.
94 void SetTaskRunnerUsedForWaitingForTesting( 96 void SetTaskRunnerUsedForWaitingForTesting(
95 const scoped_refptr<base::SingleThreadTaskRunner> task_runner); 97 const scoped_refptr<base::SingleThreadTaskRunner> task_runner);
96 98
97 // I/O heavy initialization on start-up will be delayed by this long. 99 // I/O heavy initialization on start-up will be delayed by this long.
98 // This should be high enough not to exacerbate start-up I/O contention too 100 // This should be high enough not to exacerbate start-up I/O contention too
99 // much, but also low enough that the user be able log-in shortly after 101 // much, but also low enough that the user be able log-in shortly after
100 // browser start-up into web sites using Android credentials. 102 // browser start-up into web sites using Android credentials.
101 // TODO(engedy): See if we can tie this instead to some meaningful event. 103 // TODO(engedy): See if we can tie this instead to some meaningful event.
102 static const int64 kInitializationDelayOnStartupInSeconds = 8; 104 static const int64_t kInitializationDelayOnStartupInSeconds = 8;
103 105
104 private: 106 private:
105 // Reads all autofillable credentials from the password store and starts 107 // Reads all autofillable credentials from the password store and starts
106 // observing the store for future changes. 108 // observing the store for future changes.
107 void DoDeferredInitialization(); 109 void DoDeferredInitialization();
108 110
109 // Called back by AffiliationService to supply the list of facets affiliated 111 // Called back by AffiliationService to supply the list of facets affiliated
110 // with |original_facet_uri| so that a GetAffiliatedAndroidRealms() call can 112 // with |original_facet_uri| so that a GetAffiliatedAndroidRealms() call can
111 // be completed. 113 // be completed.
112 void CompleteGetAffiliatedAndroidRealms( 114 void CompleteGetAffiliatedAndroidRealms(
(...skipping 24 matching lines...) Expand all
137 scoped_ptr<AffiliationService> affiliation_service_; 139 scoped_ptr<AffiliationService> affiliation_service_;
138 140
139 base::WeakPtrFactory<AffiliatedMatchHelper> weak_ptr_factory_; 141 base::WeakPtrFactory<AffiliatedMatchHelper> weak_ptr_factory_;
140 142
141 DISALLOW_COPY_AND_ASSIGN(AffiliatedMatchHelper); 143 DISALLOW_COPY_AND_ASSIGN(AffiliatedMatchHelper);
142 }; 144 };
143 145
144 } // namespace password_manager 146 } // namespace password_manager
145 147
146 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_AFFILIATED_MATCH_HELPER_H_ 148 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_AFFILIATED_MATCH_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698