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

Side by Side Diff: chrome/browser/extensions/api/image_writer_private/image_writer_utility_client.h

Issue 624153002: replace OVERRIDE and FINAL with override and final in chrome/browser/extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_IMAGE_WRITER_UTILITY_ CLIENT_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_IMAGE_WRITER_UTILITY_ CLIENT_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_IMAGE_WRITER_UTILITY_ CLIENT_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_IMAGE_WRITER_UTILITY_ CLIENT_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/threading/sequenced_worker_pool.h" 10 #include "base/threading/sequenced_worker_pool.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 protected: 55 protected:
56 // It's a reference-counted object, so destructor is not public. 56 // It's a reference-counted object, so destructor is not public.
57 virtual ~ImageWriterUtilityClient(); 57 virtual ~ImageWriterUtilityClient();
58 58
59 private: 59 private:
60 // Ensures the UtilityProcessHost has been created. 60 // Ensures the UtilityProcessHost has been created.
61 void StartHost(); 61 void StartHost();
62 62
63 // UtilityProcessHostClient implementation. 63 // UtilityProcessHostClient implementation.
64 virtual void OnProcessCrashed(int exit_code) OVERRIDE; 64 virtual void OnProcessCrashed(int exit_code) override;
65 virtual void OnProcessLaunchFailed() OVERRIDE; 65 virtual void OnProcessLaunchFailed() override;
66 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 66 virtual bool OnMessageReceived(const IPC::Message& message) override;
67 virtual bool Send(IPC::Message* msg); 67 virtual bool Send(IPC::Message* msg);
68 68
69 // IPC message handlers. 69 // IPC message handlers.
70 void OnWriteImageSucceeded(); 70 void OnWriteImageSucceeded();
71 void OnWriteImageCancelled(); 71 void OnWriteImageCancelled();
72 void OnWriteImageFailed(const std::string& message); 72 void OnWriteImageFailed(const std::string& message);
73 void OnWriteImageProgress(int64 progress); 73 void OnWriteImageProgress(int64 progress);
74 74
75 CancelCallback cancel_callback_; 75 CancelCallback cancel_callback_;
76 ProgressCallback progress_callback_; 76 ProgressCallback progress_callback_;
77 SuccessCallback success_callback_; 77 SuccessCallback success_callback_;
78 ErrorCallback error_callback_; 78 ErrorCallback error_callback_;
79 79
80 base::WeakPtr<content::UtilityProcessHost> utility_process_host_; 80 base::WeakPtr<content::UtilityProcessHost> utility_process_host_;
81 81
82 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_; 82 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_;
83 83
84 DISALLOW_COPY_AND_ASSIGN(ImageWriterUtilityClient); 84 DISALLOW_COPY_AND_ASSIGN(ImageWriterUtilityClient);
85 }; 85 };
86 86
87 #endif // CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_IMAGE_WRITER_UTILI TY_CLIENT_H_ 87 #endif // CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_IMAGE_WRITER_UTILI TY_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698