OLD | NEW |
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 void OnAuthFlowTitleChange(const std::string& title) override; | 79 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 ui::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_ |
OLD | NEW |