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

Side by Side Diff: chrome/browser/chromeos/login/helper.h

Issue 1779633002: Invoke createNetwork() callback with GUID, not service name (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix more trybot failures Created 4 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This file contains helper functions used by Chromium OS login. 5 // This file contains helper functions used by Chromium OS login.
6 6
7 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_HELPER_H_ 7 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_HELPER_H_
8 #define CHROME_BROWSER_CHROMEOS_LOGIN_HELPER_H_ 8 #define CHROME_BROWSER_CHROMEOS_LOGIN_HELPER_H_
9 9
10 #include <string> 10 #include <string>
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 // Returns true if the default network is in connected state. 80 // Returns true if the default network is in connected state.
81 virtual bool IsConnected() const; 81 virtual bool IsConnected() const;
82 82
83 // Returns true if the default network is in connecting state. 83 // Returns true if the default network is in connecting state.
84 virtual bool IsConnecting() const; 84 virtual bool IsConnecting() const;
85 85
86 private: 86 private:
87 void OnCreateConfiguration(const base::Closure& success_callback, 87 void OnCreateConfiguration(const base::Closure& success_callback,
88 const base::Closure& error_callback, 88 const base::Closure& error_callback,
89 const std::string& service_path) const; 89 const std::string& service_path,
90 const std::string& guid) const;
90 void OnCreateOrConnectNetworkFailed( 91 void OnCreateOrConnectNetworkFailed(
91 const base::Closure& error_callback, 92 const base::Closure& error_callback,
92 const std::string& error_name, 93 const std::string& error_name,
93 scoped_ptr<base::DictionaryValue> error_data) const; 94 scoped_ptr<base::DictionaryValue> error_data) const;
94 95
95 DISALLOW_COPY_AND_ASSIGN(NetworkStateHelper); 96 DISALLOW_COPY_AND_ASSIGN(NetworkStateHelper);
96 }; 97 };
97 98
98 // 99 //
99 // Webview based login helpers. 100 // Webview based login helpers.
100 // 101 //
101 102
102 // Returns the storage partition for the sign-in webview. Note the function gets 103 // Returns the storage partition for the sign-in webview. Note the function gets
103 // the partition via the sign-in WebContents thus returns nullptr if the sign-in 104 // the partition via the sign-in WebContents thus returns nullptr if the sign-in
104 // webui is torn down. 105 // webui is torn down.
105 content::StoragePartition* GetSigninPartition(); 106 content::StoragePartition* GetSigninPartition();
106 107
107 // Returns the request context that contains sign-in cookies. For old iframe 108 // Returns the request context that contains sign-in cookies. For old iframe
108 // based flow, the context of the sign-in profile is returned. For webview based 109 // based flow, the context of the sign-in profile is returned. For webview based
109 // flow, the context of the sign-in webview storage partition is returned. 110 // flow, the context of the sign-in webview storage partition is returned.
110 net::URLRequestContextGetter* GetSigninContext(); 111 net::URLRequestContextGetter* GetSigninContext();
111 112
112 } // namespace login 113 } // namespace login
113 114
114 } // namespace chromeos 115 } // namespace chromeos
115 116
116 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_HELPER_H_ 117 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_HELPER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698