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

Side by Side Diff: chrome/browser/printing/cloud_print/cloud_print_proxy_service.h

Issue 12769009: Pass list of printers to chrome using file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
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_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_PROXY_SERVICE_H_ 5 #ifndef CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_PROXY_SERVICE_H_
6 #define CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_PROXY_SERVICE_H_ 6 #define CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_PROXY_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // Disable the service if the policy to do so is set, and once the 53 // Disable the service if the policy to do so is set, and once the
54 // disablement is verified, quit the browser. Returns true if the policy is 54 // disablement is verified, quit the browser. Returns true if the policy is
55 // not set or the connector was not enabled. 55 // not set or the connector was not enabled.
56 bool EnforceCloudPrintConnectorPolicyAndQuit(); 56 bool EnforceCloudPrintConnectorPolicyAndQuit();
57 57
58 std::string proxy_id() const { return proxy_id_; } 58 std::string proxy_id() const { return proxy_id_; }
59 59
60 // CloudPrintSetupHandler::Delegate implementation. 60 // CloudPrintSetupHandler::Delegate implementation.
61 virtual void OnCloudPrintSetupClosed() OVERRIDE; 61 virtual void OnCloudPrintSetupClosed() OVERRIDE;
62 62
63 // Returns list of printer names available for registration.
64 static void GetPrintersAvalibleForRegistration(
65 std::vector<std::string>* printers);
66
63 private: 67 private:
64 // NotificationDelegate implementation for the token expired notification. 68 // NotificationDelegate implementation for the token expired notification.
65 class TokenExpiredNotificationDelegate; 69 class TokenExpiredNotificationDelegate;
66 friend class TokenExpiredNotificationDelegate; 70 friend class TokenExpiredNotificationDelegate;
67 71
68 Profile* profile_; 72 Profile* profile_;
69 std::string proxy_id_; 73 std::string proxy_id_;
70 74
71 // Methods that send an IPC to the service. 75 // Methods that send an IPC to the service.
72 void RefreshCloudPrintProxyStatus(); 76 void RefreshCloudPrintProxyStatus();
(...skipping 28 matching lines...) Expand all
101 PrefChangeRegistrar pref_change_registrar_; 105 PrefChangeRegistrar pref_change_registrar_;
102 106
103 // If set, continue trying to disable the connector, and quit the process 107 // If set, continue trying to disable the connector, and quit the process
104 // once successful. 108 // once successful.
105 bool enforcing_connector_policy_; 109 bool enforcing_connector_policy_;
106 110
107 DISALLOW_COPY_AND_ASSIGN(CloudPrintProxyService); 111 DISALLOW_COPY_AND_ASSIGN(CloudPrintProxyService);
108 }; 112 };
109 113
110 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_PROXY_SERVICE_H_ 114 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_PROXY_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698