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

Side by Side Diff: Source/modules/credentialmanager/CredentialManagerClient.h

Issue 635233004: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/modules (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.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 CredentialManagerClient_h 5 #ifndef CredentialManagerClient_h
6 #define CredentialManagerClient_h 6 #define CredentialManagerClient_h
7 7
8 #include "platform/Supplementable.h" 8 #include "platform/Supplementable.h"
9 #include "public/platform/WebCredentialManagerClient.h" 9 #include "public/platform/WebCredentialManagerClient.h"
10 #include "public/platform/WebVector.h" 10 #include "public/platform/WebVector.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class ExecutionContext; 14 class ExecutionContext;
15 class KURL; 15 class KURL;
16 class Page; 16 class Page;
17 class WebCredential; 17 class WebCredential;
18 class WebURL; 18 class WebURL;
19 19
20 // CredentialManagerClient lives as a supplement to Page, and wraps the embedder -provided 20 // CredentialManagerClient lives as a supplement to Page, and wraps the embedder -provided
21 // WebCredentialManagerClient's methods to make them visible to the bindings cod e. 21 // WebCredentialManagerClient's methods to make them visible to the bindings cod e.
22 class CredentialManagerClient FINAL : public NoBaseWillBeGarbageCollectedFinaliz ed<CredentialManagerClient>, public WillBeHeapSupplement<Page> { 22 class CredentialManagerClient final : public NoBaseWillBeGarbageCollectedFinaliz ed<CredentialManagerClient>, public WillBeHeapSupplement<Page> {
23 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(CredentialManagerClient); 23 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(CredentialManagerClient);
24 public: 24 public:
25 explicit CredentialManagerClient(WebCredentialManagerClient*); 25 explicit CredentialManagerClient(WebCredentialManagerClient*);
26 virtual ~CredentialManagerClient(); 26 virtual ~CredentialManagerClient();
27 27
28 static const char* supplementName(); 28 static const char* supplementName();
29 static CredentialManagerClient* from(Page*); 29 static CredentialManagerClient* from(Page*);
30 static CredentialManagerClient* from(ExecutionContext*); 30 static CredentialManagerClient* from(ExecutionContext*);
31 31
32 // Ownership of the callback is transferred to the callee for each of 32 // Ownership of the callback is transferred to the callee for each of
33 // the following methods. 33 // the following methods.
34 virtual void dispatchFailedSignIn(const WebCredential&, WebCredentialManager Client::NotificationCallbacks*); 34 virtual void dispatchFailedSignIn(const WebCredential&, WebCredentialManager Client::NotificationCallbacks*);
35 virtual void dispatchSignedIn(const WebCredential&, WebCredentialManagerClie nt::NotificationCallbacks*); 35 virtual void dispatchSignedIn(const WebCredential&, WebCredentialManagerClie nt::NotificationCallbacks*);
36 virtual void dispatchSignedOut(WebCredentialManagerClient::NotificationCallb acks*); 36 virtual void dispatchSignedOut(WebCredentialManagerClient::NotificationCallb acks*);
37 virtual void dispatchRequest(bool zeroClickOnly, const WebVector<WebURL>& fe derations, WebCredentialManagerClient::RequestCallbacks*); 37 virtual void dispatchRequest(bool zeroClickOnly, const WebVector<WebURL>& fe derations, WebCredentialManagerClient::RequestCallbacks*);
38 38
39 private: 39 private:
40 WebCredentialManagerClient* m_client; 40 WebCredentialManagerClient* m_client;
41 }; 41 };
42 42
43 void provideCredentialManagerClientTo(Page&, CredentialManagerClient*); 43 void provideCredentialManagerClientTo(Page&, CredentialManagerClient*);
44 44
45 } // namespace blink 45 } // namespace blink
46 46
47 #endif // CredentialManagerClient_h 47 #endif // CredentialManagerClient_h
OLDNEW
« no previous file with comments | « Source/modules/beacon/NavigatorBeacon.h ('k') | Source/modules/credentialmanager/CredentialsContainer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698