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

Side by Side Diff: chrome/browser/local_discovery/pwg_raster_converter.cc

Issue 624173002: replace OVERRIDE and FINAL with override and final in chrome/browser/[j-q]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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
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 #include "chrome/browser/local_discovery/pwg_raster_converter.h" 5 #include "chrome/browser/local_discovery/pwg_raster_converter.h"
6 6
7 #include "base/bind_helpers.h" 7 #include "base/bind_helpers.h"
8 #include "base/cancelable_callback.h" 8 #include "base/cancelable_callback.h"
9 #include "base/files/file.h" 9 #include "base/files/file.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 class PwgUtilityProcessHostClient : public content::UtilityProcessHostClient { 102 class PwgUtilityProcessHostClient : public content::UtilityProcessHostClient {
103 public: 103 public:
104 explicit PwgUtilityProcessHostClient( 104 explicit PwgUtilityProcessHostClient(
105 const printing::PdfRenderSettings& settings, 105 const printing::PdfRenderSettings& settings,
106 const printing::PwgRasterSettings& bitmap_settings); 106 const printing::PwgRasterSettings& bitmap_settings);
107 107
108 void Convert(base::RefCountedMemory* data, 108 void Convert(base::RefCountedMemory* data,
109 const PWGRasterConverter::ResultCallback& callback); 109 const PWGRasterConverter::ResultCallback& callback);
110 110
111 // UtilityProcessHostClient implementation. 111 // UtilityProcessHostClient implementation.
112 virtual void OnProcessCrashed(int exit_code) OVERRIDE; 112 virtual void OnProcessCrashed(int exit_code) override;
113 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 113 virtual bool OnMessageReceived(const IPC::Message& message) override;
114 114
115 private: 115 private:
116 virtual ~PwgUtilityProcessHostClient(); 116 virtual ~PwgUtilityProcessHostClient();
117 117
118 // Message handlers. 118 // Message handlers.
119 void OnProcessStarted(); 119 void OnProcessStarted();
120 void OnSucceeded(); 120 void OnSucceeded();
121 void OnFailed(); 121 void OnFailed();
122 122
123 void RunCallback(bool success); 123 void RunCallback(bool success);
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 241
242 class PWGRasterConverterImpl : public PWGRasterConverter { 242 class PWGRasterConverterImpl : public PWGRasterConverter {
243 public: 243 public:
244 PWGRasterConverterImpl(); 244 PWGRasterConverterImpl();
245 245
246 virtual ~PWGRasterConverterImpl(); 246 virtual ~PWGRasterConverterImpl();
247 247
248 virtual void Start(base::RefCountedMemory* data, 248 virtual void Start(base::RefCountedMemory* data,
249 const printing::PdfRenderSettings& conversion_settings, 249 const printing::PdfRenderSettings& conversion_settings,
250 const printing::PwgRasterSettings& bitmap_settings, 250 const printing::PwgRasterSettings& bitmap_settings,
251 const ResultCallback& callback) OVERRIDE; 251 const ResultCallback& callback) override;
252 252
253 private: 253 private:
254 scoped_refptr<PwgUtilityProcessHostClient> utility_client_; 254 scoped_refptr<PwgUtilityProcessHostClient> utility_client_;
255 base::CancelableCallback<ResultCallback::RunType> callback_; 255 base::CancelableCallback<ResultCallback::RunType> callback_;
256 256
257 DISALLOW_COPY_AND_ASSIGN(PWGRasterConverterImpl); 257 DISALLOW_COPY_AND_ASSIGN(PWGRasterConverterImpl);
258 }; 258 };
259 259
260 PWGRasterConverterImpl::PWGRasterConverterImpl() { 260 PWGRasterConverterImpl::PWGRasterConverterImpl() {
261 } 261 }
(...skipping 15 matching lines...) Expand all
277 } 277 }
278 278
279 } // namespace 279 } // namespace
280 280
281 // static 281 // static
282 scoped_ptr<PWGRasterConverter> PWGRasterConverter::CreateDefault() { 282 scoped_ptr<PWGRasterConverter> PWGRasterConverter::CreateDefault() {
283 return scoped_ptr<PWGRasterConverter>(new PWGRasterConverterImpl()); 283 return scoped_ptr<PWGRasterConverter>(new PWGRasterConverterImpl());
284 } 284 }
285 285
286 } // namespace local_discovery 286 } // namespace local_discovery
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698