OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/thread.h" | 11 #include "base/thread.h" |
12 #include "chrome/common/net/url_fetcher.h" | |
13 #include "googleurl/src/gurl.h" | |
14 #include "printing/backend/print_backend.h" | 12 #include "printing/backend/print_backend.h" |
15 | 13 |
16 class CloudPrintProxyService; | 14 class CloudPrintProxyService; |
| 15 class GURL; |
17 class DictionaryValue; | 16 class DictionaryValue; |
18 | 17 |
19 // CloudPrintProxyFrontend is the interface used by CloudPrintProxyBackend to | 18 // CloudPrintProxyFrontend is the interface used by CloudPrintProxyBackend to |
20 // communicate with the entity that created it and, presumably, is interested in | 19 // communicate with the entity that created it and, presumably, is interested in |
21 // cloud print proxy related activity. | 20 // cloud print proxy related activity. |
22 // NOTE: All methods will be invoked by a CloudPrintProxyBackend on the same | 21 // NOTE: All methods will be invoked by a CloudPrintProxyBackend on the same |
23 // thread used to create that CloudPrintProxyBackend. | 22 // thread used to create that CloudPrintProxyBackend. |
24 class CloudPrintProxyFrontend { | 23 class CloudPrintProxyFrontend { |
25 public: | 24 public: |
26 CloudPrintProxyFrontend() {} | 25 CloudPrintProxyFrontend() {} |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 MessageLoop* const frontend_loop_; | 74 MessageLoop* const frontend_loop_; |
76 // The frontend which is responsible for displaying UI and updating Prefs | 75 // The frontend which is responsible for displaying UI and updating Prefs |
77 CloudPrintProxyFrontend* frontend_; | 76 CloudPrintProxyFrontend* frontend_; |
78 | 77 |
79 friend class base::RefCountedThreadSafe<CloudPrintProxyBackend::Core>; | 78 friend class base::RefCountedThreadSafe<CloudPrintProxyBackend::Core>; |
80 | 79 |
81 DISALLOW_COPY_AND_ASSIGN(CloudPrintProxyBackend); | 80 DISALLOW_COPY_AND_ASSIGN(CloudPrintProxyBackend); |
82 }; | 81 }; |
83 | 82 |
84 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_BACKEND_H_ | 83 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_BACKEND_H_ |
OLD | NEW |