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

Side by Side Diff: components/password_manager/content/renderer/credential_manager_client.h

Issue 666133002: Standardize usage of virtual/override/final in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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_PASSWORD_MANAGER_CONTENT_RENDERER_CREDENTIAL_MANAGER_CLIENT_H _ 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CONTENT_RENDERER_CREDENTIAL_MANAGER_CLIENT_H _
6 #define COMPONENTS_PASSWORD_MANAGER_CONTENT_RENDERER_CREDENTIAL_MANAGER_CLIENT_H _ 6 #define COMPONENTS_PASSWORD_MANAGER_CONTENT_RENDERER_CREDENTIAL_MANAGER_CLIENT_H _
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/id_map.h" 10 #include "base/id_map.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // routing is removed, the pointer is cleared, and any pending responses are 42 // routing is removed, the pointer is cleared, and any pending responses are
43 // rejected. 43 // rejected.
44 // 44 //
45 // Note that each RenderView's WebView holds a pointer to the 45 // Note that each RenderView's WebView holds a pointer to the
46 // CredentialManagerClient (set in 'OnRenderViewCreated()'). The client is 46 // CredentialManagerClient (set in 'OnRenderViewCreated()'). The client is
47 // guaranteed to outlive the views that point to it. 47 // guaranteed to outlive the views that point to it.
48 class CredentialManagerClient : public blink::WebCredentialManagerClient, 48 class CredentialManagerClient : public blink::WebCredentialManagerClient,
49 public content::RenderViewObserver { 49 public content::RenderViewObserver {
50 public: 50 public:
51 explicit CredentialManagerClient(content::RenderView* render_view); 51 explicit CredentialManagerClient(content::RenderView* render_view);
52 virtual ~CredentialManagerClient(); 52 ~CredentialManagerClient() override;
53 53
54 // RenderViewObserver: 54 // RenderViewObserver:
55 virtual bool OnMessageReceived(const IPC::Message& message) override; 55 bool OnMessageReceived(const IPC::Message& message) override;
56 56
57 // Message handlers for messages from the browser process: 57 // Message handlers for messages from the browser process:
58 virtual void OnAcknowledgeFailedSignIn(int request_id); 58 virtual void OnAcknowledgeFailedSignIn(int request_id);
59 virtual void OnAcknowledgeSignedIn(int request_id); 59 virtual void OnAcknowledgeSignedIn(int request_id);
60 virtual void OnAcknowledgeSignedOut(int request_id); 60 virtual void OnAcknowledgeSignedOut(int request_id);
61 virtual void OnSendCredential(int request_id, 61 virtual void OnSendCredential(int request_id,
62 const CredentialInfo& credential_info); 62 const CredentialInfo& credential_info);
63 virtual void OnRejectCredentialRequest( 63 virtual void OnRejectCredentialRequest(
64 int request_id, 64 int request_id,
65 blink::WebCredentialManagerError::ErrorType error_type); 65 blink::WebCredentialManagerError::ErrorType error_type);
(...skipping 26 matching lines...) Expand all
92 NotificationCallbacksMap signed_in_callbacks_; 92 NotificationCallbacksMap signed_in_callbacks_;
93 NotificationCallbacksMap signed_out_callbacks_; 93 NotificationCallbacksMap signed_out_callbacks_;
94 RequestCallbacksMap request_callbacks_; 94 RequestCallbacksMap request_callbacks_;
95 95
96 DISALLOW_COPY_AND_ASSIGN(CredentialManagerClient); 96 DISALLOW_COPY_AND_ASSIGN(CredentialManagerClient);
97 }; 97 };
98 98
99 } // namespace password_manager 99 } // namespace password_manager
100 100
101 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_RENDERER_CREDENTIAL_MANAGER_CLIEN T_H_ 101 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_RENDERER_CREDENTIAL_MANAGER_CLIEN T_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698