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

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

Issue 2458833005: Move printing defines to buildflag system. (Closed)
Patch Set: Merge Created 4 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_PRIVET_HTTP_IMPL_H_ 5 #ifndef CHROME_BROWSER_PRINTING_CLOUD_PRINT_PRIVET_HTTP_IMPL_H_
6 #define CHROME_BROWSER_PRINTING_CLOUD_PRINT_PRIVET_HTTP_IMPL_H_ 6 #define CHROME_BROWSER_PRINTING_CLOUD_PRINT_PRIVET_HTTP_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
17 #include "chrome/browser/printing/cloud_print/privet_http.h" 17 #include "chrome/browser/printing/cloud_print/privet_http.h"
18 #include "components/cloud_devices/common/cloud_device_description.h" 18 #include "components/cloud_devices/common/cloud_device_description.h"
19 #include "printing/features/features.h"
19 #include "ui/gfx/geometry/size.h" 20 #include "ui/gfx/geometry/size.h"
20 21
21 namespace cloud_print { 22 namespace cloud_print {
22 23
23 class PrivetHTTPClient; 24 class PrivetHTTPClient;
24 25
25 class PrivetInfoOperationImpl : public PrivetJSONOperation, 26 class PrivetInfoOperationImpl : public PrivetJSONOperation,
26 public PrivetURLFetcher::Delegate { 27 public PrivetURLFetcher::Delegate {
27 public: 28 public:
28 PrivetInfoOperationImpl(PrivetHTTPClient* privet_client, 29 PrivetInfoOperationImpl(PrivetHTTPClient* privet_client,
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 142
142 private: 143 private:
143 PrivetHTTPClient* privet_client_; 144 PrivetHTTPClient* privet_client_;
144 std::string path_; 145 std::string path_;
145 std::string query_params_; 146 std::string query_params_;
146 PrivetJSONOperation::ResultCallback callback_; 147 PrivetJSONOperation::ResultCallback callback_;
147 148
148 std::unique_ptr<PrivetURLFetcher> url_fetcher_; 149 std::unique_ptr<PrivetURLFetcher> url_fetcher_;
149 }; 150 };
150 151
151 #if defined(ENABLE_PRINT_PREVIEW) 152 #if BUILDFLAG(ENABLE_PRINT_PREVIEW)
152 class PrivetLocalPrintOperationImpl 153 class PrivetLocalPrintOperationImpl
153 : public PrivetLocalPrintOperation, 154 : public PrivetLocalPrintOperation,
154 public PrivetURLFetcher::Delegate { 155 public PrivetURLFetcher::Delegate {
155 public: 156 public:
156 PrivetLocalPrintOperationImpl(PrivetHTTPClient* privet_client, 157 PrivetLocalPrintOperationImpl(PrivetHTTPClient* privet_client,
157 PrivetLocalPrintOperation::Delegate* delegate); 158 PrivetLocalPrintOperation::Delegate* delegate);
158 159
159 ~PrivetLocalPrintOperationImpl() override; 160 ~PrivetLocalPrintOperationImpl() override;
160 void Start() override; 161 void Start() override;
161 162
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 PrivetHTTPClient* info_client() { return info_client_.get(); } 294 PrivetHTTPClient* info_client() { return info_client_.get(); }
294 295
295 std::unique_ptr<PrivetHTTPClient> info_client_; 296 std::unique_ptr<PrivetHTTPClient> info_client_;
296 297
297 DISALLOW_COPY_AND_ASSIGN(PrivetV1HTTPClientImpl); 298 DISALLOW_COPY_AND_ASSIGN(PrivetV1HTTPClientImpl);
298 }; 299 };
299 300
300 } // namespace cloud_print 301 } // namespace cloud_print
301 302
302 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_PRIVET_HTTP_IMPL_H_ 303 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_PRIVET_HTTP_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/prefs/browser_prefs.cc ('k') | chrome/browser/printing/cloud_print/privet_http_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698