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

Side by Side Diff: chrome/browser/password_manager/password_store_consumer.h

Issue 6994005: Fix password automation hooks to get pyauto test testSavePassword working. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Modified PYAUTO_TESTS. Created 9 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_PASSWORD_MANAGER_PASSWORD_STORE_CONSUMER_H_ 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_CONSUMER_H_
6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_CONSUMER_H_ 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_CONSUMER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "content/browser/cancelable_request.h" 9 #include "content/browser/cancelable_request.h"
10 10
11 namespace webkit_glue { 11 namespace webkit_glue {
12 struct PasswordForm; 12 struct PasswordForm;
13 }; 13 };
14 14
15 // Reads from the PasswordStore are done asynchrously on a separate 15 // Reads from the PasswordStore are done asynchronously on a separate
16 // thread. PasswordStoreConsumer provides the virtual callback method, which is 16 // thread. PasswordStoreConsumer provides the virtual callback method, which is
17 // guaranteed to be executed on this (the UI) thread. It also provides the 17 // guaranteed to be executed on this (the UI) thread. It also provides the
18 // CancelableRequestConsumer member, which cancels any outstanding requests upon 18 // CancelableRequestConsumer member, which cancels any outstanding requests upon
19 // destruction. 19 // destruction.
20 class PasswordStoreConsumer { 20 class PasswordStoreConsumer {
21 public: 21 public:
22 PasswordStoreConsumer(); 22 PasswordStoreConsumer();
23 23
24 // Call this when the request is finished. If there are no results, call it 24 // Call this when the request is finished. If there are no results, call it
25 // anyway with an empty vector. 25 // anyway with an empty vector.
(...skipping 10 matching lines...) Expand all
36 } 36 }
37 37
38 protected: 38 protected:
39 virtual ~PasswordStoreConsumer(); 39 virtual ~PasswordStoreConsumer();
40 40
41 private: 41 private:
42 CancelableRequestConsumer cancelable_consumer_; 42 CancelableRequestConsumer cancelable_consumer_;
43 }; 43 };
44 44
45 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_CONSUMER_H_ 45 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_CONSUMER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698