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

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

Issue 8491048: Fixed crash in the proxy. Reference has been passed between threads, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 const std::string& user_email); 45 const std::string& user_email);
46 void DisableForUser(); 46 void DisableForUser();
47 // Returns the proxy info. 47 // Returns the proxy info.
48 void GetProxyInfo(cloud_print::CloudPrintProxyInfo* info); 48 void GetProxyInfo(cloud_print::CloudPrintProxyInfo* info);
49 49
50 const std::string& user_email() const { 50 const std::string& user_email() const {
51 return user_email_; 51 return user_email_;
52 } 52 }
53 53
54 // CloudPrintProxyFrontend implementation. Called on UI thread. 54 // CloudPrintProxyFrontend implementation. Called on UI thread.
55 virtual void OnPrinterListAvailable(
56 const printing::PrinterList& printer_list);
57 virtual void OnAuthenticated(const std::string& robot_oauth_refresh_token, 55 virtual void OnAuthenticated(const std::string& robot_oauth_refresh_token,
58 const std::string& robot_email, 56 const std::string& robot_email,
59 const std::string& user_email); 57 const std::string& user_email);
60 virtual void OnAuthenticationFailed(); 58 virtual void OnAuthenticationFailed();
61 virtual void OnPrintSystemUnavailable(); 59 virtual void OnPrintSystemUnavailable();
62 60
63 protected: 61 protected:
64 void Shutdown(); 62 void Shutdown();
65 bool CreateBackend(); 63 bool CreateBackend();
66 64
(...skipping 13 matching lines...) Expand all
80 // successful authentication with the Cloud Print service. 78 // successful authentication with the Cloud Print service.
81 bool enabled_; 79 bool enabled_;
82 // This is initialized after a successful call to one of the Enable* methods. 80 // This is initialized after a successful call to one of the Enable* methods.
83 // It is not cleared in DisableUser. 81 // It is not cleared in DisableUser.
84 std::string proxy_id_; 82 std::string proxy_id_;
85 83
86 DISALLOW_COPY_AND_ASSIGN(CloudPrintProxy); 84 DISALLOW_COPY_AND_ASSIGN(CloudPrintProxy);
87 }; 85 };
88 86
89 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_ 87 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_
OLDNEW
« no previous file with comments | « chrome/service/cloud_print/cloud_print_connector.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