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

Side by Side Diff: components/password_manager/content/browser/content_credential_manager_dispatcher.h

Issue 615483002: Credential Manager: Extract browser-side IPC to a stand-alone dispatcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments. Created 6 years, 2 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_CREDENTIAL_MANAGER_D ISPATCHER_H_
6 #define COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_CREDENTIAL_MANAGER_D ISPATCHER_H_
7
8 #include "base/macros.h"
9 #include "components/password_manager/core/browser/credential_manager_dispatcher .h"
10 #include "content/public/browser/web_contents_observer.h"
11
12 class GURL;
13
14 namespace content {
15 class WebContents;
16 }
17
18 namespace password_manager {
19
20 class PasswordManagerClient;
21 struct CredentialInfo;
22
23 class ContentCredentialManagerDispatcher : public CredentialManagerDispatcher,
24 public content::WebContentsObserver {
25 public:
26 // |client| isn't yet used by this class, but is necessary for the next step:
27 // wiring this up as a subclass of PasswordStoreConsumer.
28 ContentCredentialManagerDispatcher(content::WebContents* web_contents,
29 PasswordManagerClient* client);
30 virtual ~ContentCredentialManagerDispatcher();
31
32 // CredentialManagerDispatcher implementation.
33 virtual void OnNotifyFailedSignIn(
34 int request_id,
35 const password_manager::CredentialInfo&) OVERRIDE;
36 virtual void OnNotifySignedIn(
37 int request_id,
38 const password_manager::CredentialInfo&) OVERRIDE;
39 virtual void OnNotifySignedOut(int request_id) OVERRIDE;
40 virtual void OnRequestCredential(
41 int request_id,
42 bool zero_click_only,
43 const std::vector<GURL>& federations) OVERRIDE;
44
45 // content::WebContentsObserver overrides.
46 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
47
48 private:
49 PasswordManagerClient* client_;
50
51 DISALLOW_COPY_AND_ASSIGN(ContentCredentialManagerDispatcher);
52 };
53
54 } // namespace password_manager
55
56 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_CREDENTIAL_MANAGE R_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698