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

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

Issue 11360151: Move common cloud print methods from service/cloud_print to common/cloud_print. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_BACKEND_H_ 5 #ifndef CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_BACKEND_H_
6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_BACKEND_H_ 6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_BACKEND_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
11 #include "base/threading/thread.h" 11 #include "base/threading/thread.h"
12 #include "chrome/service/cloud_print/connector_settings.h" 12 #include "chrome/service/cloud_print/connector_settings.h"
13 #include "printing/backend/print_backend.h" 13 #include "printing/backend/print_backend.h"
14 14
15 namespace base { 15 namespace base {
16 class DictionaryValue; 16 class DictionaryValue;
17 } 17 }
18 18
19 namespace gaia { 19 namespace gaia {
20 struct OAuthClientInfo; 20 struct OAuthClientInfo;
21 } 21 }
22 22
23 namespace cloud_print {
24
23 // CloudPrintProxyFrontend is the interface used by CloudPrintProxyBackend to 25 // CloudPrintProxyFrontend is the interface used by CloudPrintProxyBackend to
24 // communicate with the entity that created it and, presumably, is interested in 26 // communicate with the entity that created it and, presumably, is interested in
25 // cloud print proxy related activity. 27 // cloud print proxy related activity.
26 // NOTE: All methods will be invoked by a CloudPrintProxyBackend on the same 28 // NOTE: All methods will be invoked by a CloudPrintProxyBackend on the same
27 // thread used to create that CloudPrintProxyBackend. 29 // thread used to create that CloudPrintProxyBackend.
28 class CloudPrintProxyFrontend { 30 class CloudPrintProxyFrontend {
29 public: 31 public:
30 CloudPrintProxyFrontend() {} 32 CloudPrintProxyFrontend() {}
31 33
32 // We successfully authenticated with the cloud print server. This callback 34 // We successfully authenticated with the cloud print server. This callback
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // to safely talk back to the SyncFrontend. 97 // to safely talk back to the SyncFrontend.
96 MessageLoop* const frontend_loop_; 98 MessageLoop* const frontend_loop_;
97 // The frontend which is responsible for displaying UI and updating Prefs 99 // The frontend which is responsible for displaying UI and updating Prefs
98 CloudPrintProxyFrontend* frontend_; 100 CloudPrintProxyFrontend* frontend_;
99 101
100 friend class base::RefCountedThreadSafe<CloudPrintProxyBackend::Core>; 102 friend class base::RefCountedThreadSafe<CloudPrintProxyBackend::Core>;
101 103
102 DISALLOW_COPY_AND_ASSIGN(CloudPrintProxyBackend); 104 DISALLOW_COPY_AND_ASSIGN(CloudPrintProxyBackend);
103 }; 105 };
104 106
107 } // namespace cloud_print
108
105 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_BACKEND_H_ 109 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698