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

Side by Side Diff: chrome/service/cloud_print/cloud_print_proxy.h

Issue 1078213004: Remove --check-cloud-print-connector-policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sat Apr 11 02:29:11 PDT 2015 Created 5 years, 8 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 | « chrome/common/chrome_switches.cc ('k') | chrome/service/cloud_print/cloud_print_proxy.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 #ifndef CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_ 5 #ifndef CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_
6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_ 6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 const std::string& robot_email, 47 const std::string& robot_email,
48 const std::string& user_email, 48 const std::string& user_email,
49 const base::DictionaryValue& user_settings); 49 const base::DictionaryValue& user_settings);
50 void UnregisterPrintersAndDisableForUser(); 50 void UnregisterPrintersAndDisableForUser();
51 void DisableForUser(); 51 void DisableForUser();
52 // Returns the proxy info. 52 // Returns the proxy info.
53 void GetProxyInfo(CloudPrintProxyInfo* info); 53 void GetProxyInfo(CloudPrintProxyInfo* info);
54 // Return accessible printers. 54 // Return accessible printers.
55 void GetPrinters(std::vector<std::string>* printers); 55 void GetPrinters(std::vector<std::string>* printers);
56 56
57 // Launches a browser to see if the proxy policy has been set.
58 void CheckCloudPrintProxyPolicy();
59
60 const std::string& user_email() const { 57 const std::string& user_email() const {
61 return user_email_; 58 return user_email_;
62 } 59 }
63 60
64 // CloudPrintProxyFrontend implementation. Called on UI thread. 61 // CloudPrintProxyFrontend implementation. Called on UI thread.
65 void OnAuthenticated(const std::string& robot_oauth_refresh_token, 62 void OnAuthenticated(const std::string& robot_oauth_refresh_token,
66 const std::string& robot_email, 63 const std::string& robot_email,
67 const std::string& user_email) override; 64 const std::string& user_email) override;
68 void OnAuthenticationFailed() override; 65 void OnAuthenticationFailed() override;
69 void OnPrintSystemUnavailable() override; 66 void OnPrintSystemUnavailable() override;
(...skipping 25 matching lines...) Expand all
95 bool enabled_; 92 bool enabled_;
96 // This is a cleanup class for unregistering printers on proxy disable. 93 // This is a cleanup class for unregistering printers on proxy disable.
97 scoped_ptr<CloudPrintWipeout> wipeout_; 94 scoped_ptr<CloudPrintWipeout> wipeout_;
98 95
99 DISALLOW_COPY_AND_ASSIGN(CloudPrintProxy); 96 DISALLOW_COPY_AND_ASSIGN(CloudPrintProxy);
100 }; 97 };
101 98
102 } // namespace cloud_print 99 } // namespace cloud_print
103 100
104 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_ 101 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | chrome/service/cloud_print/cloud_print_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698