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

Side by Side Diff: chrome/browser/extensions/api/identity/gaia_web_auth_flow.h

Issue 624153002: replace OVERRIDE and FINAL with override and final in chrome/browser/extensions/ (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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_EXTENSIONS_API_IDENTITY_GAIA_WEB_AUTH_FLOW_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_IDENTITY_GAIA_WEB_AUTH_FLOW_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_IDENTITY_GAIA_WEB_AUTH_FLOW_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_IDENTITY_GAIA_WEB_AUTH_FLOW_H_
7 7
8 #include "chrome/browser/extensions/api/identity/extension_token_key.h" 8 #include "chrome/browser/extensions/api/identity/extension_token_key.h"
9 #include "chrome/browser/extensions/api/identity/web_auth_flow.h" 9 #include "chrome/browser/extensions/api/identity/web_auth_flow.h"
10 #include "chrome/browser/ui/host_desktop.h" 10 #include "chrome/browser/ui/host_desktop.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 Profile* profile, 63 Profile* profile,
64 const ExtensionTokenKey* token_key, 64 const ExtensionTokenKey* token_key,
65 const std::string& oauth2_client_id, 65 const std::string& oauth2_client_id,
66 const std::string& locale); 66 const std::string& locale);
67 virtual ~GaiaWebAuthFlow(); 67 virtual ~GaiaWebAuthFlow();
68 68
69 // Starts the flow by fetching an ubertoken. Can override for testing. 69 // Starts the flow by fetching an ubertoken. Can override for testing.
70 virtual void Start(); 70 virtual void Start();
71 71
72 // UbertokenConsumer implementation: 72 // UbertokenConsumer implementation:
73 virtual void OnUbertokenSuccess(const std::string& token) OVERRIDE; 73 virtual void OnUbertokenSuccess(const std::string& token) override;
74 virtual void OnUbertokenFailure(const GoogleServiceAuthError& error) OVERRIDE; 74 virtual void OnUbertokenFailure(const GoogleServiceAuthError& error) override;
75 75
76 // WebAuthFlow::Delegate implementation. 76 // WebAuthFlow::Delegate implementation.
77 virtual void OnAuthFlowFailure(WebAuthFlow::Failure failure) OVERRIDE; 77 virtual void OnAuthFlowFailure(WebAuthFlow::Failure failure) override;
78 virtual void OnAuthFlowURLChange(const GURL& redirect_url) OVERRIDE; 78 virtual void OnAuthFlowURLChange(const GURL& redirect_url) override;
79 virtual void OnAuthFlowTitleChange(const std::string& title) OVERRIDE; 79 virtual void OnAuthFlowTitleChange(const std::string& title) override;
80 80
81 private: 81 private:
82 // Creates a WebAuthFlow, which will navigate to |url|. Can override 82 // Creates a WebAuthFlow, which will navigate to |url|. Can override
83 // for testing. Used to kick off the MergeSession (step #2). 83 // for testing. Used to kick off the MergeSession (step #2).
84 virtual scoped_ptr<WebAuthFlow> CreateWebAuthFlow(GURL url); 84 virtual scoped_ptr<WebAuthFlow> CreateWebAuthFlow(GURL url);
85 85
86 Delegate* delegate_; 86 Delegate* delegate_;
87 Profile* profile_; 87 Profile* profile_;
88 std::string account_id_; 88 std::string account_id_;
89 chrome::HostDesktopType host_desktop_type_; 89 chrome::HostDesktopType host_desktop_type_;
90 std::string redirect_scheme_; 90 std::string redirect_scheme_;
91 std::string redirect_path_prefix_; 91 std::string redirect_path_prefix_;
92 GURL auth_url_; 92 GURL auth_url_;
93 scoped_ptr<UbertokenFetcher> ubertoken_fetcher_; 93 scoped_ptr<UbertokenFetcher> ubertoken_fetcher_;
94 scoped_ptr<WebAuthFlow> web_flow_; 94 scoped_ptr<WebAuthFlow> web_flow_;
95 95
96 DISALLOW_COPY_AND_ASSIGN(GaiaWebAuthFlow); 96 DISALLOW_COPY_AND_ASSIGN(GaiaWebAuthFlow);
97 }; 97 };
98 98
99 } // namespace extensions 99 } // namespace extensions
100 100
101 #endif // CHROME_BROWSER_EXTENSIONS_API_IDENTITY_GAIA_WEB_AUTH_FLOW_H_ 101 #endif // CHROME_BROWSER_EXTENSIONS_API_IDENTITY_GAIA_WEB_AUTH_FLOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/i18n/i18n_api.h ('k') | chrome/browser/extensions/api/identity/gaia_web_auth_flow_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698